@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3BucketDetail extends Object implements Serializable, Cloneable, StructuredPojo
Contains information on the S3 bucket.
Constructor and Description |
---|
S3BucketDetail() |
Modifier and Type | Method and Description |
---|---|
S3BucketDetail |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the S3 bucket.
|
Date |
getCreatedAt()
The date and time the bucket was created at.
|
DefaultServerSideEncryption |
getDefaultServerSideEncryption()
Describes the server side encryption method used in the S3 bucket.
|
String |
getName()
The name of the S3 bucket.
|
Owner |
getOwner()
The owner of the S3 bucket.
|
PublicAccess |
getPublicAccess()
Describes the public access policies that apply to the S3 bucket.
|
List<S3ObjectDetail> |
getS3ObjectDetails()
Information about the S3 object that was scanned.
|
List<Tag> |
getTags()
All tags attached to the S3 bucket
|
String |
getType()
Describes whether the bucket is a source or destination bucket.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the S3 bucket.
|
void |
setCreatedAt(Date createdAt)
The date and time the bucket was created at.
|
void |
setDefaultServerSideEncryption(DefaultServerSideEncryption defaultServerSideEncryption)
Describes the server side encryption method used in the S3 bucket.
|
void |
setName(String name)
The name of the S3 bucket.
|
void |
setOwner(Owner owner)
The owner of the S3 bucket.
|
void |
setPublicAccess(PublicAccess publicAccess)
Describes the public access policies that apply to the S3 bucket.
|
void |
setS3ObjectDetails(Collection<S3ObjectDetail> s3ObjectDetails)
Information about the S3 object that was scanned.
|
void |
setTags(Collection<Tag> tags)
All tags attached to the S3 bucket
|
void |
setType(String type)
Describes whether the bucket is a source or destination bucket.
|
String |
toString()
Returns a string representation of this object.
|
S3BucketDetail |
withArn(String arn)
The Amazon Resource Name (ARN) of the S3 bucket.
|
S3BucketDetail |
withCreatedAt(Date createdAt)
The date and time the bucket was created at.
|
S3BucketDetail |
withDefaultServerSideEncryption(DefaultServerSideEncryption defaultServerSideEncryption)
Describes the server side encryption method used in the S3 bucket.
|
S3BucketDetail |
withName(String name)
The name of the S3 bucket.
|
S3BucketDetail |
withOwner(Owner owner)
The owner of the S3 bucket.
|
S3BucketDetail |
withPublicAccess(PublicAccess publicAccess)
Describes the public access policies that apply to the S3 bucket.
|
S3BucketDetail |
withS3ObjectDetails(Collection<S3ObjectDetail> s3ObjectDetails)
Information about the S3 object that was scanned.
|
S3BucketDetail |
withS3ObjectDetails(S3ObjectDetail... s3ObjectDetails)
Information about the S3 object that was scanned.
|
S3BucketDetail |
withTags(Collection<Tag> tags)
All tags attached to the S3 bucket
|
S3BucketDetail |
withTags(Tag... tags)
All tags attached to the S3 bucket
|
S3BucketDetail |
withType(String type)
Describes whether the bucket is a source or destination bucket.
|
public void setArn(String arn)
The Amazon Resource Name (ARN) of the S3 bucket.
arn
- The Amazon Resource Name (ARN) of the S3 bucket.public String getArn()
The Amazon Resource Name (ARN) of the S3 bucket.
public S3BucketDetail withArn(String arn)
The Amazon Resource Name (ARN) of the S3 bucket.
arn
- The Amazon Resource Name (ARN) of the S3 bucket.public void setName(String name)
The name of the S3 bucket.
name
- The name of the S3 bucket.public String getName()
The name of the S3 bucket.
public S3BucketDetail withName(String name)
The name of the S3 bucket.
name
- The name of the S3 bucket.public void setType(String type)
Describes whether the bucket is a source or destination bucket.
type
- Describes whether the bucket is a source or destination bucket.public String getType()
Describes whether the bucket is a source or destination bucket.
public S3BucketDetail withType(String type)
Describes whether the bucket is a source or destination bucket.
type
- Describes whether the bucket is a source or destination bucket.public void setCreatedAt(Date createdAt)
The date and time the bucket was created at.
createdAt
- The date and time the bucket was created at.public Date getCreatedAt()
The date and time the bucket was created at.
public S3BucketDetail withCreatedAt(Date createdAt)
The date and time the bucket was created at.
createdAt
- The date and time the bucket was created at.public void setOwner(Owner owner)
The owner of the S3 bucket.
owner
- The owner of the S3 bucket.public Owner getOwner()
The owner of the S3 bucket.
public S3BucketDetail withOwner(Owner owner)
The owner of the S3 bucket.
owner
- The owner of the S3 bucket.public List<Tag> getTags()
All tags attached to the S3 bucket
public void setTags(Collection<Tag> tags)
All tags attached to the S3 bucket
tags
- All tags attached to the S3 bucketpublic S3BucketDetail withTags(Tag... tags)
All tags attached to the S3 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
- All tags attached to the S3 bucketpublic S3BucketDetail withTags(Collection<Tag> tags)
All tags attached to the S3 bucket
tags
- All tags attached to the S3 bucketpublic void setDefaultServerSideEncryption(DefaultServerSideEncryption defaultServerSideEncryption)
Describes the server side encryption method used in the S3 bucket.
defaultServerSideEncryption
- Describes the server side encryption method used in the S3 bucket.public DefaultServerSideEncryption getDefaultServerSideEncryption()
Describes the server side encryption method used in the S3 bucket.
public S3BucketDetail withDefaultServerSideEncryption(DefaultServerSideEncryption defaultServerSideEncryption)
Describes the server side encryption method used in the S3 bucket.
defaultServerSideEncryption
- Describes the server side encryption method used in the S3 bucket.public void setPublicAccess(PublicAccess publicAccess)
Describes the public access policies that apply to the S3 bucket.
publicAccess
- Describes the public access policies that apply to the S3 bucket.public PublicAccess getPublicAccess()
Describes the public access policies that apply to the S3 bucket.
public S3BucketDetail withPublicAccess(PublicAccess publicAccess)
Describes the public access policies that apply to the S3 bucket.
publicAccess
- Describes the public access policies that apply to the S3 bucket.public List<S3ObjectDetail> getS3ObjectDetails()
Information about the S3 object that was scanned.
public void setS3ObjectDetails(Collection<S3ObjectDetail> s3ObjectDetails)
Information about the S3 object that was scanned.
s3ObjectDetails
- Information about the S3 object that was scanned.public S3BucketDetail withS3ObjectDetails(S3ObjectDetail... s3ObjectDetails)
Information about the S3 object that was scanned.
NOTE: This method appends the values to the existing list (if any). Use
setS3ObjectDetails(java.util.Collection)
or withS3ObjectDetails(java.util.Collection)
if you
want to override the existing values.
s3ObjectDetails
- Information about the S3 object that was scanned.public S3BucketDetail withS3ObjectDetails(Collection<S3ObjectDetail> s3ObjectDetails)
Information about the S3 object that was scanned.
s3ObjectDetails
- Information about the S3 object that was scanned.public String toString()
toString
in class Object
Object.toString()
public S3BucketDetail clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.