@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Bucket extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the S3 bucket that a finding applies to.
Constructor and Description |
---|
S3Bucket() |
Modifier and Type | Method and Description |
---|---|
S3Bucket |
clone() |
boolean |
equals(Object obj) |
String |
getAllowsUnencryptedObjectUploads()
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are
added to the bucket.
|
String |
getArn()
The Amazon Resource Name (ARN) of the bucket.
|
Date |
getCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
ServerSideEncryption |
getDefaultServerSideEncryption()
The default server-side encryption settings for the bucket.
|
String |
getName()
The name of the bucket.
|
S3BucketOwner |
getOwner()
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
|
BucketPublicAccess |
getPublicAccess()
The permissions settings that determine whether the bucket is publicly accessible.
|
List<KeyValuePair> |
getTags()
The tags that are associated with the bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAllowsUnencryptedObjectUploads(String allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are
added to the bucket.
|
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the bucket.
|
void |
setCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
void |
setDefaultServerSideEncryption(ServerSideEncryption defaultServerSideEncryption)
The default server-side encryption settings for the bucket.
|
void |
setName(String name)
The name of the bucket.
|
void |
setOwner(S3BucketOwner owner)
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
|
void |
setPublicAccess(BucketPublicAccess publicAccess)
The permissions settings that determine whether the bucket is publicly accessible.
|
void |
setTags(Collection<KeyValuePair> tags)
The tags that are associated with the bucket.
|
String |
toString()
Returns a string representation of this object.
|
S3Bucket |
withAllowsUnencryptedObjectUploads(AllowsUnencryptedObjectUploads allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are
added to the bucket.
|
S3Bucket |
withAllowsUnencryptedObjectUploads(String allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are
added to the bucket.
|
S3Bucket |
withArn(String arn)
The Amazon Resource Name (ARN) of the bucket.
|
S3Bucket |
withCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
S3Bucket |
withDefaultServerSideEncryption(ServerSideEncryption defaultServerSideEncryption)
The default server-side encryption settings for the bucket.
|
S3Bucket |
withName(String name)
The name of the bucket.
|
S3Bucket |
withOwner(S3BucketOwner owner)
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
|
S3Bucket |
withPublicAccess(BucketPublicAccess publicAccess)
The permissions settings that determine whether the bucket is publicly accessible.
|
S3Bucket |
withTags(Collection<KeyValuePair> tags)
The tags that are associated with the bucket.
|
S3Bucket |
withTags(KeyValuePair... tags)
The tags that are associated with the bucket.
|
public void setAllowsUnencryptedObjectUploads(String allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
allowsUnencryptedObjectUploads
- Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects
are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
AllowsUnencryptedObjectUploads
public String getAllowsUnencryptedObjectUploads()
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
AllowsUnencryptedObjectUploads
public S3Bucket withAllowsUnencryptedObjectUploads(String allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
allowsUnencryptedObjectUploads
- Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects
are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
AllowsUnencryptedObjectUploads
public S3Bucket withAllowsUnencryptedObjectUploads(AllowsUnencryptedObjectUploads allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
allowsUnencryptedObjectUploads
- Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects
are added to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include a valid server-side encryption header.
TRUE - The bucket doesn't have a bucket policy or it has a bucket policy that doesn't require server-side encryption of new objects. If a bucket policy exists, it doesn't require PutObject requests to include a valid server-side encryption header.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of new objects.
Valid server-side encryption headers are: x-amz-server-side-encryption with a value of AES256 or aws:kms, and x-amz-server-side-encryption-customer-algorithm with a value of AES256.
AllowsUnencryptedObjectUploads
public void setArn(String arn)
The Amazon Resource Name (ARN) of the bucket.
arn
- The Amazon Resource Name (ARN) of the bucket.public String getArn()
The Amazon Resource Name (ARN) of the bucket.
public S3Bucket withArn(String arn)
The Amazon Resource Name (ARN) of the bucket.
arn
- The Amazon Resource Name (ARN) of the bucket.public void setCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created. This value can also indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative to when the finding was created or last updated.
createdAt
- The date and time, in UTC and extended ISO 8601 format, when the bucket was created. This value can also
indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative
to when the finding was created or last updated.public Date getCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created. This value can also indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative to when the finding was created or last updated.
public S3Bucket withCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created. This value can also indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative to when the finding was created or last updated.
createdAt
- The date and time, in UTC and extended ISO 8601 format, when the bucket was created. This value can also
indicate when changes such as edits to the bucket's policy were most recently made to the bucket, relative
to when the finding was created or last updated.public void setDefaultServerSideEncryption(ServerSideEncryption defaultServerSideEncryption)
The default server-side encryption settings for the bucket.
defaultServerSideEncryption
- The default server-side encryption settings for the bucket.public ServerSideEncryption getDefaultServerSideEncryption()
The default server-side encryption settings for the bucket.
public S3Bucket withDefaultServerSideEncryption(ServerSideEncryption defaultServerSideEncryption)
The default server-side encryption settings for the bucket.
defaultServerSideEncryption
- The default server-side encryption settings for the bucket.public void setName(String name)
The name of the bucket.
name
- The name of the bucket.public String getName()
The name of the bucket.
public S3Bucket withName(String name)
The name of the bucket.
name
- The name of the bucket.public void setOwner(S3BucketOwner owner)
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
owner
- The display name and canonical user ID for the Amazon Web Services account that owns the bucket.public S3BucketOwner getOwner()
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
public S3Bucket withOwner(S3BucketOwner owner)
The display name and canonical user ID for the Amazon Web Services account that owns the bucket.
owner
- The display name and canonical user ID for the Amazon Web Services account that owns the bucket.public void setPublicAccess(BucketPublicAccess publicAccess)
The permissions settings that determine whether the bucket is publicly accessible.
publicAccess
- The permissions settings that determine whether the bucket is publicly accessible.public BucketPublicAccess getPublicAccess()
The permissions settings that determine whether the bucket is publicly accessible.
public S3Bucket withPublicAccess(BucketPublicAccess publicAccess)
The permissions settings that determine whether the bucket is publicly accessible.
publicAccess
- The permissions settings that determine whether the bucket is publicly accessible.public List<KeyValuePair> getTags()
The tags that are associated with the bucket.
public void setTags(Collection<KeyValuePair> tags)
The tags that are associated with the bucket.
tags
- The tags that are associated with the bucket.public S3Bucket withTags(KeyValuePair... tags)
The tags that are associated with the bucket.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- The tags that are associated with the bucket.public S3Bucket withTags(Collection<KeyValuePair> tags)
The tags that are associated with the bucket.
tags
- The tags that are associated with the bucket.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.