public static enum Bucket.Versioning extends Enum<Bucket.Versioning>
The versioning status on the bucket. A bucket is created with versioning Disabled by default.
For versioning Enabled, objects are protected from overwrites and deletes, by maintaining their version history. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.
| Enum Constant and Description |
|---|
Disabled |
Enabled |
Suspended |
UnknownEnumValue
This value is used if a service returns a value for this enum that is not recognized by this
version of the SDK.
|
| Modifier and Type | Method and Description |
|---|---|
static Bucket.Versioning |
create(String key) |
String |
getValue() |
static Bucket.Versioning |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Bucket.Versioning[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Bucket.Versioning Enabled
public static final Bucket.Versioning Suspended
public static final Bucket.Versioning Disabled
public static final Bucket.Versioning UnknownEnumValue
public static Bucket.Versioning[] values()
for (Bucket.Versioning c : Bucket.Versioning.values()) System.out.println(c);
public static Bucket.Versioning valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getValue()
public static Bucket.Versioning create(String key)
Copyright © 2016–2021. All rights reserved.