public static enum UpdateBucketDetails.Versioning extends Enum<UpdateBucketDetails.Versioning>
The versioning status on the bucket. If in state Enabled, multiple versions of the same object can be kept in the bucket.
When the object is overwritten or deleted, previous versions will still be available. When versioning is Suspended, the previous versions will still remain but new versions will no longer be created when overwitten or deleted.
Versioning cannot be disabled on a bucket once enabled.
| Modifier and Type | Method and Description |
|---|---|
static UpdateBucketDetails.Versioning |
create(String key) |
String |
getValue() |
static UpdateBucketDetails.Versioning |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UpdateBucketDetails.Versioning[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UpdateBucketDetails.Versioning Enabled
public static final UpdateBucketDetails.Versioning Suspended
public static UpdateBucketDetails.Versioning[] values()
for (UpdateBucketDetails.Versioning c : UpdateBucketDetails.Versioning.values()) System.out.println(c);
public static UpdateBucketDetails.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 UpdateBucketDetails.Versioning create(String key)
Copyright © 2016–2021. All rights reserved.