@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3BucketConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Proposed access control configuration for an Amazon S3 bucket. You can propose a configuration for a new Amazon S3 bucket or an existing Amazon S3 bucket that you own by specifying the Amazon S3 bucket policy, bucket ACLs, bucket BPA settings, Amazon S3 access points, and multi-region access points attached to the bucket. If the configuration is for an existing Amazon S3 bucket and you do not specify the Amazon S3 bucket policy, the access preview uses the existing policy attached to the bucket. If the access preview is for a new resource and you do not specify the Amazon S3 bucket policy, the access preview assumes a bucket without a policy. To propose deletion of an existing bucket policy, you can specify an empty string. For more information about bucket policy limits, see Bucket Policy Examples.
Constructor and Description |
---|
S3BucketConfiguration() |
Modifier and Type | Method and Description |
---|---|
S3BucketConfiguration |
addAccessPointsEntry(String key,
S3AccessPointConfiguration value)
Add a single AccessPoints entry
|
S3BucketConfiguration |
clearAccessPointsEntries()
Removes all the entries added into AccessPoints.
|
S3BucketConfiguration |
clone() |
boolean |
equals(Object obj) |
Map<String,S3AccessPointConfiguration> |
getAccessPoints()
The configuration of Amazon S3 access points or multi-region access points for the bucket.
|
List<S3BucketAclGrantConfiguration> |
getBucketAclGrants()
The proposed list of ACL grants for the Amazon S3 bucket.
|
String |
getBucketPolicy()
The proposed bucket policy for the Amazon S3 bucket.
|
S3PublicAccessBlockConfiguration |
getBucketPublicAccessBlock()
The proposed block public access configuration for the Amazon S3 bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccessPoints(Map<String,S3AccessPointConfiguration> accessPoints)
The configuration of Amazon S3 access points or multi-region access points for the bucket.
|
void |
setBucketAclGrants(Collection<S3BucketAclGrantConfiguration> bucketAclGrants)
The proposed list of ACL grants for the Amazon S3 bucket.
|
void |
setBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 bucket.
|
void |
setBucketPublicAccessBlock(S3PublicAccessBlockConfiguration bucketPublicAccessBlock)
The proposed block public access configuration for the Amazon S3 bucket.
|
String |
toString()
Returns a string representation of this object.
|
S3BucketConfiguration |
withAccessPoints(Map<String,S3AccessPointConfiguration> accessPoints)
The configuration of Amazon S3 access points or multi-region access points for the bucket.
|
S3BucketConfiguration |
withBucketAclGrants(Collection<S3BucketAclGrantConfiguration> bucketAclGrants)
The proposed list of ACL grants for the Amazon S3 bucket.
|
S3BucketConfiguration |
withBucketAclGrants(S3BucketAclGrantConfiguration... bucketAclGrants)
The proposed list of ACL grants for the Amazon S3 bucket.
|
S3BucketConfiguration |
withBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 bucket.
|
S3BucketConfiguration |
withBucketPublicAccessBlock(S3PublicAccessBlockConfiguration bucketPublicAccessBlock)
The proposed block public access configuration for the Amazon S3 bucket.
|
public void setBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 bucket.
bucketPolicy
- The proposed bucket policy for the Amazon S3 bucket.public String getBucketPolicy()
The proposed bucket policy for the Amazon S3 bucket.
public S3BucketConfiguration withBucketPolicy(String bucketPolicy)
The proposed bucket policy for the Amazon S3 bucket.
bucketPolicy
- The proposed bucket policy for the Amazon S3 bucket.public List<S3BucketAclGrantConfiguration> getBucketAclGrants()
The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
public void setBucketAclGrants(Collection<S3BucketAclGrantConfiguration> bucketAclGrants)
The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
bucketAclGrants
- The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket.
If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list
of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing
grants for the bucket.public S3BucketConfiguration withBucketAclGrants(S3BucketAclGrantConfiguration... bucketAclGrants)
The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
NOTE: This method appends the values to the existing list (if any). Use
setBucketAclGrants(java.util.Collection)
or withBucketAclGrants(java.util.Collection)
if you
want to override the existing values.
bucketAclGrants
- The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket.
If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list
of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing
grants for the bucket.public S3BucketConfiguration withBucketAclGrants(Collection<S3BucketAclGrantConfiguration> bucketAclGrants)
The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket. If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing grants for the bucket.
bucketAclGrants
- The proposed list of ACL grants for the Amazon S3 bucket. You can propose up to 100 ACL grants per bucket.
If the proposed grant configuration is for an existing bucket, the access preview uses the proposed list
of grant configurations in place of the existing grants. Otherwise, the access preview uses the existing
grants for the bucket.public void setBucketPublicAccessBlock(S3PublicAccessBlockConfiguration bucketPublicAccessBlock)
The proposed block public access configuration for the Amazon S3 bucket.
bucketPublicAccessBlock
- The proposed block public access configuration for the Amazon S3 bucket.public S3PublicAccessBlockConfiguration getBucketPublicAccessBlock()
The proposed block public access configuration for the Amazon S3 bucket.
public S3BucketConfiguration withBucketPublicAccessBlock(S3PublicAccessBlockConfiguration bucketPublicAccessBlock)
The proposed block public access configuration for the Amazon S3 bucket.
bucketPublicAccessBlock
- The proposed block public access configuration for the Amazon S3 bucket.public Map<String,S3AccessPointConfiguration> getAccessPoints()
The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.
public void setAccessPoints(Map<String,S3AccessPointConfiguration> accessPoints)
The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.
accessPoints
- The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose
up to 10 new access points per bucket.public S3BucketConfiguration withAccessPoints(Map<String,S3AccessPointConfiguration> accessPoints)
The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose up to 10 new access points per bucket.
accessPoints
- The configuration of Amazon S3 access points or multi-region access points for the bucket. You can propose
up to 10 new access points per bucket.public S3BucketConfiguration addAccessPointsEntry(String key, S3AccessPointConfiguration value)
public S3BucketConfiguration clearAccessPointsEntries()
public String toString()
toString
in class Object
Object.toString()
public S3BucketConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.