@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BucketMetadata extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an S3 bucket that Amazon Macie monitors and analyzes.
Constructor and Description |
---|
BucketMetadata() |
Modifier and Type | Method and Description |
---|---|
BucketMetadata |
clone() |
boolean |
equals(Object obj) |
String |
getAccountId()
The unique identifier for the AWS account that owns the bucket.
|
String |
getBucketArn()
The Amazon Resource Name (ARN) of the bucket.
|
Date |
getBucketCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
String |
getBucketName()
The name of the bucket.
|
Long |
getClassifiableObjectCount()
The total number of objects that Amazon Macie can analyze in the bucket.
|
Long |
getClassifiableSizeInBytes()
The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket.
|
Date |
getLastUpdated()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the
bucket from Amazon S3.
|
Long |
getObjectCount()
The total number of objects in the bucket.
|
ObjectCountByEncryptionType |
getObjectCountByEncryptionType()
The total number of objects that are in the bucket, grouped by server-side encryption type.
|
BucketPublicAccess |
getPublicAccess()
Specifies whether the bucket is publicly accessible.
|
String |
getRegion()
The AWS Region that hosts the bucket.
|
ReplicationDetails |
getReplicationDetails()
Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS accounts
and, if so, which accounts.
|
String |
getSharedAccess()
Specifies whether the bucket is shared with another AWS account.
|
Long |
getSizeInBytes()
The total storage size, in bytes, of the bucket.
|
Long |
getSizeInBytesCompressed()
The total compressed storage size, in bytes, of the bucket.
|
List<KeyValuePair> |
getTags()
An array that specifies the tags (keys and values) that are associated with the bucket.
|
ObjectLevelStatistics |
getUnclassifiableObjectCount()
The total number of objects that Amazon Macie can't analyze in the bucket.
|
ObjectLevelStatistics |
getUnclassifiableObjectSizeInBytes()
The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket.
|
Boolean |
getVersioning()
Specifies whether versioning is enabled for the bucket.
|
int |
hashCode() |
Boolean |
isVersioning()
Specifies whether versioning is enabled for the bucket.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccountId(String accountId)
The unique identifier for the AWS account that owns the bucket.
|
void |
setBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket.
|
void |
setBucketCreatedAt(Date bucketCreatedAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
void |
setBucketName(String bucketName)
The name of the bucket.
|
void |
setClassifiableObjectCount(Long classifiableObjectCount)
The total number of objects that Amazon Macie can analyze in the bucket.
|
void |
setClassifiableSizeInBytes(Long classifiableSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket.
|
void |
setLastUpdated(Date lastUpdated)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the
bucket from Amazon S3.
|
void |
setObjectCount(Long objectCount)
The total number of objects in the bucket.
|
void |
setObjectCountByEncryptionType(ObjectCountByEncryptionType objectCountByEncryptionType)
The total number of objects that are in the bucket, grouped by server-side encryption type.
|
void |
setPublicAccess(BucketPublicAccess publicAccess)
Specifies whether the bucket is publicly accessible.
|
void |
setRegion(String region)
The AWS Region that hosts the bucket.
|
void |
setReplicationDetails(ReplicationDetails replicationDetails)
Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS accounts
and, if so, which accounts.
|
void |
setSharedAccess(String sharedAccess)
Specifies whether the bucket is shared with another AWS account.
|
void |
setSizeInBytes(Long sizeInBytes)
The total storage size, in bytes, of the bucket.
|
void |
setSizeInBytesCompressed(Long sizeInBytesCompressed)
The total compressed storage size, in bytes, of the bucket.
|
void |
setTags(Collection<KeyValuePair> tags)
An array that specifies the tags (keys and values) that are associated with the bucket.
|
void |
setUnclassifiableObjectCount(ObjectLevelStatistics unclassifiableObjectCount)
The total number of objects that Amazon Macie can't analyze in the bucket.
|
void |
setUnclassifiableObjectSizeInBytes(ObjectLevelStatistics unclassifiableObjectSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket.
|
void |
setVersioning(Boolean versioning)
Specifies whether versioning is enabled for the bucket.
|
String |
toString()
Returns a string representation of this object.
|
BucketMetadata |
withAccountId(String accountId)
The unique identifier for the AWS account that owns the bucket.
|
BucketMetadata |
withBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket.
|
BucketMetadata |
withBucketCreatedAt(Date bucketCreatedAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
BucketMetadata |
withBucketName(String bucketName)
The name of the bucket.
|
BucketMetadata |
withClassifiableObjectCount(Long classifiableObjectCount)
The total number of objects that Amazon Macie can analyze in the bucket.
|
BucketMetadata |
withClassifiableSizeInBytes(Long classifiableSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket.
|
BucketMetadata |
withLastUpdated(Date lastUpdated)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the
bucket from Amazon S3.
|
BucketMetadata |
withObjectCount(Long objectCount)
The total number of objects in the bucket.
|
BucketMetadata |
withObjectCountByEncryptionType(ObjectCountByEncryptionType objectCountByEncryptionType)
The total number of objects that are in the bucket, grouped by server-side encryption type.
|
BucketMetadata |
withPublicAccess(BucketPublicAccess publicAccess)
Specifies whether the bucket is publicly accessible.
|
BucketMetadata |
withRegion(String region)
The AWS Region that hosts the bucket.
|
BucketMetadata |
withReplicationDetails(ReplicationDetails replicationDetails)
Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS accounts
and, if so, which accounts.
|
BucketMetadata |
withSharedAccess(SharedAccess sharedAccess)
Specifies whether the bucket is shared with another AWS account.
|
BucketMetadata |
withSharedAccess(String sharedAccess)
Specifies whether the bucket is shared with another AWS account.
|
BucketMetadata |
withSizeInBytes(Long sizeInBytes)
The total storage size, in bytes, of the bucket.
|
BucketMetadata |
withSizeInBytesCompressed(Long sizeInBytesCompressed)
The total compressed storage size, in bytes, of the bucket.
|
BucketMetadata |
withTags(Collection<KeyValuePair> tags)
An array that specifies the tags (keys and values) that are associated with the bucket.
|
BucketMetadata |
withTags(KeyValuePair... tags)
An array that specifies the tags (keys and values) that are associated with the bucket.
|
BucketMetadata |
withUnclassifiableObjectCount(ObjectLevelStatistics unclassifiableObjectCount)
The total number of objects that Amazon Macie can't analyze in the bucket.
|
BucketMetadata |
withUnclassifiableObjectSizeInBytes(ObjectLevelStatistics unclassifiableObjectSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket.
|
BucketMetadata |
withVersioning(Boolean versioning)
Specifies whether versioning is enabled for the bucket.
|
public void setAccountId(String accountId)
The unique identifier for the AWS account that owns the bucket.
accountId
- The unique identifier for the AWS account that owns the bucket.public String getAccountId()
The unique identifier for the AWS account that owns the bucket.
public BucketMetadata withAccountId(String accountId)
The unique identifier for the AWS account that owns the bucket.
accountId
- The unique identifier for the AWS account that owns the bucket.public void setBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket.
bucketArn
- The Amazon Resource Name (ARN) of the bucket.public String getBucketArn()
The Amazon Resource Name (ARN) of the bucket.
public BucketMetadata withBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket.
bucketArn
- The Amazon Resource Name (ARN) of the bucket.public void setBucketCreatedAt(Date bucketCreatedAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
bucketCreatedAt
- The date and time, in UTC and extended ISO 8601 format, when the bucket was created.public Date getBucketCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
public BucketMetadata withBucketCreatedAt(Date bucketCreatedAt)
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
bucketCreatedAt
- The date and time, in UTC and extended ISO 8601 format, when the bucket was created.public void setBucketName(String bucketName)
The name of the bucket.
bucketName
- The name of the bucket.public String getBucketName()
The name of the bucket.
public BucketMetadata withBucketName(String bucketName)
The name of the bucket.
bucketName
- The name of the bucket.public void setClassifiableObjectCount(Long classifiableObjectCount)
The total number of objects that Amazon Macie can analyze in the bucket. These objects use a supported file or storage format and storage class.
classifiableObjectCount
- The total number of objects that Amazon Macie can analyze in the bucket. These objects use a supported
file or storage format and storage class.public Long getClassifiableObjectCount()
The total number of objects that Amazon Macie can analyze in the bucket. These objects use a supported file or storage format and storage class.
public BucketMetadata withClassifiableObjectCount(Long classifiableObjectCount)
The total number of objects that Amazon Macie can analyze in the bucket. These objects use a supported file or storage format and storage class.
classifiableObjectCount
- The total number of objects that Amazon Macie can analyze in the bucket. These objects use a supported
file or storage format and storage class.public void setClassifiableSizeInBytes(Long classifiableSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket. These objects use a supported file or storage format and storage class.
classifiableSizeInBytes
- The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket. These
objects use a supported file or storage format and storage class.public Long getClassifiableSizeInBytes()
The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket. These objects use a supported file or storage format and storage class.
public BucketMetadata withClassifiableSizeInBytes(Long classifiableSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket. These objects use a supported file or storage format and storage class.
classifiableSizeInBytes
- The total storage size, in bytes, of the objects that Amazon Macie can analyze in the bucket. These
objects use a supported file or storage format and storage class.public void setLastUpdated(Date lastUpdated)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the bucket from Amazon S3.
lastUpdated
- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data
about the bucket from Amazon S3.public Date getLastUpdated()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the bucket from Amazon S3.
public BucketMetadata withLastUpdated(Date lastUpdated)
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data about the bucket from Amazon S3.
lastUpdated
- The date and time, in UTC and extended ISO 8601 format, when Amazon Macie most recently retrieved data
about the bucket from Amazon S3.public void setObjectCount(Long objectCount)
The total number of objects in the bucket.
objectCount
- The total number of objects in the bucket.public Long getObjectCount()
The total number of objects in the bucket.
public BucketMetadata withObjectCount(Long objectCount)
The total number of objects in the bucket.
objectCount
- The total number of objects in the bucket.public void setObjectCountByEncryptionType(ObjectCountByEncryptionType objectCountByEncryptionType)
The total number of objects that are in the bucket, grouped by server-side encryption type. This includes a grouping that reports the total number of objects that aren't encrypted or use client-side encryption.
objectCountByEncryptionType
- The total number of objects that are in the bucket, grouped by server-side encryption type. This includes
a grouping that reports the total number of objects that aren't encrypted or use client-side encryption.public ObjectCountByEncryptionType getObjectCountByEncryptionType()
The total number of objects that are in the bucket, grouped by server-side encryption type. This includes a grouping that reports the total number of objects that aren't encrypted or use client-side encryption.
public BucketMetadata withObjectCountByEncryptionType(ObjectCountByEncryptionType objectCountByEncryptionType)
The total number of objects that are in the bucket, grouped by server-side encryption type. This includes a grouping that reports the total number of objects that aren't encrypted or use client-side encryption.
objectCountByEncryptionType
- The total number of objects that are in the bucket, grouped by server-side encryption type. This includes
a grouping that reports the total number of objects that aren't encrypted or use client-side encryption.public void setPublicAccess(BucketPublicAccess publicAccess)
Specifies whether the bucket is publicly accessible. If this value is true, an access control list (ACL), bucket policy, or block public access settings allow the bucket to be accessed by the general public.
publicAccess
- Specifies whether the bucket is publicly accessible. If this value is true, an access control list (ACL),
bucket policy, or block public access settings allow the bucket to be accessed by the general public.public BucketPublicAccess getPublicAccess()
Specifies whether the bucket is publicly accessible. If this value is true, an access control list (ACL), bucket policy, or block public access settings allow the bucket to be accessed by the general public.
public BucketMetadata withPublicAccess(BucketPublicAccess publicAccess)
Specifies whether the bucket is publicly accessible. If this value is true, an access control list (ACL), bucket policy, or block public access settings allow the bucket to be accessed by the general public.
publicAccess
- Specifies whether the bucket is publicly accessible. If this value is true, an access control list (ACL),
bucket policy, or block public access settings allow the bucket to be accessed by the general public.public void setRegion(String region)
The AWS Region that hosts the bucket.
region
- The AWS Region that hosts the bucket.public String getRegion()
The AWS Region that hosts the bucket.
public BucketMetadata withRegion(String region)
The AWS Region that hosts the bucket.
region
- The AWS Region that hosts the bucket.public void setReplicationDetails(ReplicationDetails replicationDetails)
Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS accounts and, if so, which accounts.
replicationDetails
- Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS
accounts and, if so, which accounts.public ReplicationDetails getReplicationDetails()
Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS accounts and, if so, which accounts.
public BucketMetadata withReplicationDetails(ReplicationDetails replicationDetails)
Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS accounts and, if so, which accounts.
replicationDetails
- Specifies whether the bucket is configured to replicate one or more objects to buckets for other AWS
accounts and, if so, which accounts.public void setSharedAccess(String sharedAccess)
Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
sharedAccess
- Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
SharedAccess
public String getSharedAccess()
Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
SharedAccess
public BucketMetadata withSharedAccess(String sharedAccess)
Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
sharedAccess
- Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
SharedAccess
public BucketMetadata withSharedAccess(SharedAccess sharedAccess)
Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
sharedAccess
- Specifies whether the bucket is shared with another AWS account. Possible values are:
EXTERNAL - The bucket is shared with an AWS account that isn’t part of the same Amazon Macie organization.
INTERNAL - The bucket is shared with an AWS account that's part of the same Amazon Macie organization.
NOT_SHARED - The bucket isn't shared with other AWS accounts.
UNKNOWN - Amazon Macie wasn't able to evaluate the shared access settings for the bucket.
SharedAccess
public void setSizeInBytes(Long sizeInBytes)
The total storage size, in bytes, of the bucket.
sizeInBytes
- The total storage size, in bytes, of the bucket.public Long getSizeInBytes()
The total storage size, in bytes, of the bucket.
public BucketMetadata withSizeInBytes(Long sizeInBytes)
The total storage size, in bytes, of the bucket.
sizeInBytes
- The total storage size, in bytes, of the bucket.public void setSizeInBytesCompressed(Long sizeInBytesCompressed)
The total compressed storage size, in bytes, of the bucket.
sizeInBytesCompressed
- The total compressed storage size, in bytes, of the bucket.public Long getSizeInBytesCompressed()
The total compressed storage size, in bytes, of the bucket.
public BucketMetadata withSizeInBytesCompressed(Long sizeInBytesCompressed)
The total compressed storage size, in bytes, of the bucket.
sizeInBytesCompressed
- The total compressed storage size, in bytes, of the bucket.public List<KeyValuePair> getTags()
An array that specifies the tags (keys and values) that are associated with the bucket.
public void setTags(Collection<KeyValuePair> tags)
An array that specifies the tags (keys and values) that are associated with the bucket.
tags
- An array that specifies the tags (keys and values) that are associated with the bucket.public BucketMetadata withTags(KeyValuePair... tags)
An array that specifies the tags (keys and values) 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
- An array that specifies the tags (keys and values) that are associated with the bucket.public BucketMetadata withTags(Collection<KeyValuePair> tags)
An array that specifies the tags (keys and values) that are associated with the bucket.
tags
- An array that specifies the tags (keys and values) that are associated with the bucket.public void setUnclassifiableObjectCount(ObjectLevelStatistics unclassifiableObjectCount)
The total number of objects that Amazon Macie can't analyze in the bucket. These objects use an unsupported file or storage format or storage class.
unclassifiableObjectCount
- The total number of objects that Amazon Macie can't analyze in the bucket. These objects use an
unsupported file or storage format or storage class.public ObjectLevelStatistics getUnclassifiableObjectCount()
The total number of objects that Amazon Macie can't analyze in the bucket. These objects use an unsupported file or storage format or storage class.
public BucketMetadata withUnclassifiableObjectCount(ObjectLevelStatistics unclassifiableObjectCount)
The total number of objects that Amazon Macie can't analyze in the bucket. These objects use an unsupported file or storage format or storage class.
unclassifiableObjectCount
- The total number of objects that Amazon Macie can't analyze in the bucket. These objects use an
unsupported file or storage format or storage class.public void setUnclassifiableObjectSizeInBytes(ObjectLevelStatistics unclassifiableObjectSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket. These objects use an unsupported file or storage format or storage class.
unclassifiableObjectSizeInBytes
- The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket. These
objects use an unsupported file or storage format or storage class.public ObjectLevelStatistics getUnclassifiableObjectSizeInBytes()
The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket. These objects use an unsupported file or storage format or storage class.
public BucketMetadata withUnclassifiableObjectSizeInBytes(ObjectLevelStatistics unclassifiableObjectSizeInBytes)
The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket. These objects use an unsupported file or storage format or storage class.
unclassifiableObjectSizeInBytes
- The total storage size, in bytes, of the objects that Amazon Macie can't analyze in the bucket. These
objects use an unsupported file or storage format or storage class.public void setVersioning(Boolean versioning)
Specifies whether versioning is enabled for the bucket.
versioning
- Specifies whether versioning is enabled for the bucket.public Boolean getVersioning()
Specifies whether versioning is enabled for the bucket.
public BucketMetadata withVersioning(Boolean versioning)
Specifies whether versioning is enabled for the bucket.
versioning
- Specifies whether versioning is enabled for the bucket.public Boolean isVersioning()
Specifies whether versioning is enabled for the bucket.
public String toString()
toString
in class Object
Object.toString()
public BucketMetadata clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.