@Generated(value="software.amazon.awssdk:codegen") public final class BucketMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BucketMetadata.Builder,BucketMetadata>
Provides information about an S3 bucket that Amazon Macie monitors and analyzes.
| Modifier and Type | Class and Description |
|---|---|
static interface |
BucketMetadata.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountId()
The unique identifier for the AWS account that's associated with the bucket.
|
String |
bucketArn()
The Amazon Resource Name (ARN) of the bucket.
|
Instant |
bucketCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
|
String |
bucketName()
The name of the bucket.
|
static BucketMetadata.Builder |
builder() |
Long |
classifiableObjectCount()
The total number of objects that Amazon Macie can analyze in the bucket.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
Instant |
lastUpdated()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last analyzed the bucket.
|
Long |
objectCount()
The total number of objects in the bucket.
|
ObjectCountByEncryptionType |
objectCountByEncryptionType()
The total number of objects that are in the bucket, grouped by server-side encryption type.
|
BucketPublicAccess |
publicAccess()
Specifies whether the bucket is publicly accessible.
|
String |
region()
The AWS Region that hosts the bucket.
|
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.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends BucketMetadata.Builder> |
serializableBuilderClass() |
SharedAccess |
sharedAccess()
Specifies whether the bucket is shared with another AWS account.
|
String |
sharedAccessAsString()
Specifies whether the bucket is shared with another AWS account.
|
Long |
sizeInBytes()
The total storage size, in bytes, of the bucket.
|
Long |
sizeInBytesCompressed()
The total compressed storage size, in bytes, of the bucket.
|
List<KeyValuePair> |
tags()
An array that specifies the tags (keys and values) that are associated with the bucket.
|
BucketMetadata.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Boolean |
versioning()
Specifies whether versioning is enabled for the bucket.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic String accountId()
The unique identifier for the AWS account that's associated with the bucket.
public String bucketArn()
The Amazon Resource Name (ARN) of the bucket.
public Instant bucketCreatedAt()
The date and time, in UTC and extended ISO 8601 format, when the bucket was created.
public String bucketName()
The name of the bucket.
public Long classifiableObjectCount()
The total number of objects that Amazon Macie can analyze in the bucket. These objects use a file format, file extension, or content type that Amazon Macie supports.
public Instant lastUpdated()
The date and time, in UTC and extended ISO 8601 format, when Amazon Macie last analyzed the bucket.
public Long objectCount()
The total number of objects in the bucket.
public 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.
public 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.
public String region()
The AWS Region that hosts the bucket.
public 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.
public SharedAccess sharedAccess()
Specifies whether the bucket is shared with another AWS account. Valid 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.
If the service returns an enum value that is not available in the current SDK version, sharedAccess will
return SharedAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sharedAccessAsString().
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.
SharedAccesspublic String sharedAccessAsString()
Specifies whether the bucket is shared with another AWS account. Valid 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.
If the service returns an enum value that is not available in the current SDK version, sharedAccess will
return SharedAccess.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available from
sharedAccessAsString().
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.
SharedAccesspublic Long sizeInBytes()
The total storage size, in bytes, of the bucket.
public Long sizeInBytesCompressed()
The total compressed storage size, in bytes, of the bucket.
public boolean hasTags()
public List<KeyValuePair> tags()
An array that specifies the tags (keys and values) that are associated with the bucket.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasTags() to see if a value was sent in this field.
public Boolean versioning()
Specifies whether versioning is enabled for the bucket.
public BucketMetadata.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<BucketMetadata.Builder,BucketMetadata>public static BucketMetadata.Builder builder()
public static Class<? extends BucketMetadata.Builder> serializableBuilderClass()
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic String toString()
Copyright © 2020. All rights reserved.