@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3ExpressDirectoryBucketConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Proposed access control configuration for an Amazon S3 directory bucket. You can propose a configuration for a new Amazon S3 directory bucket or an existing Amazon S3 directory bucket that you own by specifying the Amazon S3 bucket policy. If the configuration is for an existing Amazon S3 directory bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the directory bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes an directory bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about Amazon S3 directory bucket policies, see Example directory bucket policies for S3 Express One Zone.
Constructor and Description |
---|
S3ExpressDirectoryBucketConfiguration() |
Modifier and Type | Method and Description |
---|---|
S3ExpressDirectoryBucketConfiguration |
clone() |
boolean |
equals(Object obj) |
String |
getBucketPolicy()
The proposed bucket policy for the Amazon S3 directory bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 directory bucket.
|
String |
toString()
Returns a string representation of this object.
|
S3ExpressDirectoryBucketConfiguration |
withBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 directory bucket.
|
public S3ExpressDirectoryBucketConfiguration()
public void setBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 directory bucket.
bucketPolicy
- The proposed bucket policy for the Amazon S3 directory bucket.public String getBucketPolicy()
The proposed bucket policy for the Amazon S3 directory bucket.
public S3ExpressDirectoryBucketConfiguration withBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 directory bucket.
bucketPolicy
- The proposed bucket policy for the Amazon S3 directory bucket.public String toString()
toString
in class Object
Object.toString()
public S3ExpressDirectoryBucketConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.