@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
uploaded 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 type of server-side encryption that's used by default to encrypt objects in 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
uploaded 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 type of server-side encryption that's used by default to encrypt objects in 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
uploaded to the bucket.
|
S3Bucket |
withAllowsUnencryptedObjectUploads(String allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are
uploaded 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 type of server-side encryption that's used by default to encrypt objects in 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 uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
allowsUnencryptedObjectUploads
- Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects
are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
AllowsUnencryptedObjectUploads
public String getAllowsUnencryptedObjectUploads()
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
AllowsUnencryptedObjectUploads
public S3Bucket withAllowsUnencryptedObjectUploads(String allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
allowsUnencryptedObjectUploads
- Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects
are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
AllowsUnencryptedObjectUploads
public S3Bucket withAllowsUnencryptedObjectUploads(AllowsUnencryptedObjectUploads allowsUnencryptedObjectUploads)
Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
allowsUnencryptedObjectUploads
- Specifies whether the bucket policy for the bucket requires server-side encryption of objects when objects
are uploaded to the bucket. Possible values are:
FALSE - The bucket policy requires server-side encryption of new objects. PutObject requests must include the x-amz-server-side-encryption header and the value for that header must be AES256 or aws:kms.
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 the x-amz-server-side-encryption header and it doesn't require the value for that header to be AES256 or aws:kms.
UNKNOWN - Amazon Macie can't determine whether the bucket policy requires server-side encryption of objects.
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.
createdAt
- The date and time, in UTC and extended ISO 8601 format, when the bucket was created.public Date getCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
public S3Bucket withCreatedAt(Date createdAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
createdAt
- The date and time, in UTC and extended ISO 8601 format, when the bucket was created.public void setDefaultServerSideEncryption(ServerSideEncryption defaultServerSideEncryption)
The type of server-side encryption that's used by default to encrypt objects in the bucket.
defaultServerSideEncryption
- The type of server-side encryption that's used by default to encrypt objects in the bucket.public ServerSideEncryption getDefaultServerSideEncryption()
The type of server-side encryption that's used by default to encrypt objects in the bucket.
public S3Bucket withDefaultServerSideEncryption(ServerSideEncryption defaultServerSideEncryption)
The type of server-side encryption that's used by default to encrypt objects in the bucket.
defaultServerSideEncryption
- The type of server-side encryption that's used by default to encrypt objects in 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.