public enum ObjectOwnership extends Enum<ObjectOwnership>
The container element for object ownership for a bucket's ownership controls.
BucketOwnerPreferred - Objects uploaded to the bucket change ownership to the bucket owner if
the objects are uploaded with the bucket-owner-full-control
canned ACL.
ObjectWriter - The uploading account will own the object if the object is uploaded with
the bucket-owner-full-control
canned ACL.
Enum Constant and Description |
---|
BucketOwnerPreferred |
ObjectWriter |
Modifier and Type | Method and Description |
---|---|
static ObjectOwnership |
fromValue(String s3OwnershipString) |
String |
toString() |
static ObjectOwnership |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ObjectOwnership[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectOwnership BucketOwnerPreferred
public static final ObjectOwnership ObjectWriter
public static ObjectOwnership[] values()
for (ObjectOwnership c : ObjectOwnership.values()) System.out.println(c);
public static ObjectOwnership 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 static ObjectOwnership fromValue(String s3OwnershipString) throws IllegalArgumentException
IllegalArgumentException
public String toString()
toString
in class Enum<ObjectOwnership>