@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Bucket extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an S3 bucket that a finding applies to.
| Constructor and Description |
|---|
S3Bucket() |
| Modifier and Type | Method and Description |
|---|---|
S3Bucket |
clone() |
boolean |
equals(Object obj) |
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 server-side encryption settings for the bucket.
|
String |
getName()
The name of the bucket.
|
S3BucketOwner |
getOwner()
The display name and account identifier for the user who 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) |
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 server-side encryption settings for the bucket.
|
void |
setName(String name)
The name of the bucket.
|
void |
setOwner(S3BucketOwner owner)
The display name and account identifier for the user who 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 |
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 server-side encryption settings for the bucket.
|
S3Bucket |
withName(String name)
The name of the bucket.
|
S3Bucket |
withOwner(S3BucketOwner owner)
The display name and account identifier for the user who 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 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 server-side encryption settings for the bucket.
defaultServerSideEncryption - The server-side encryption settings for the bucket.public ServerSideEncryption getDefaultServerSideEncryption()
The server-side encryption settings for the bucket.
public S3Bucket withDefaultServerSideEncryption(ServerSideEncryption defaultServerSideEncryption)
The server-side encryption settings for the bucket.
defaultServerSideEncryption - The 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 account identifier for the user who owns the bucket.
owner - The display name and account identifier for the user who owns the bucket.public S3BucketOwner getOwner()
The display name and account identifier for the user who owns the bucket.
public S3Bucket withOwner(S3BucketOwner owner)
The display name and account identifier for the user who owns the bucket.
owner - The display name and account identifier for the user who 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 ObjectObject.toString()public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2020. All rights reserved.