Enum ObjectOwnership
- All Implemented Interfaces:
Serializable
,Comparable<ObjectOwnership>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:37.711Z")
@Stability(Stable)
public enum ObjectOwnership
extends Enum<ObjectOwnership>
The ObjectOwnership of the bucket.
Example:
Bucket.Builder.create(this, "MyBucket") .objectOwnership(ObjectOwnership.OBJECT_WRITER) .build();
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket.Objects uploaded to the bucket change ownership to the bucket owner .The uploading account will own the object. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObjectOwnership
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.
-
Enum Constant Details
-
BUCKET_OWNER_ENFORCED
ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket.ACLs no longer affect permissions to data in the S3 bucket. The bucket uses policies to define access control.
-
BUCKET_OWNER_PREFERRED
Objects uploaded to the bucket change ownership to the bucket owner . -
OBJECT_WRITER
The uploading account will own the object.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-