@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Object extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about an S3 object that a finding applies to.
Constructor and Description |
---|
S3Object() |
Modifier and Type | Method and Description |
---|---|
S3Object |
clone() |
boolean |
equals(Object obj) |
String |
getBucketArn()
The Amazon Resource Name (ARN) of the bucket that contains the object.
|
String |
getETag()
The entity tag (ETag) that identifies the affected version of the object.
|
String |
getExtension()
The file extension of the object.
|
String |
getKey()
The full key (name) that's assigned to the object.
|
Date |
getLastModified()
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
|
String |
getPath()
The path to the object, including the full key (name).
|
Boolean |
getPublicAccess()
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to
the object.
|
ServerSideEncryption |
getServerSideEncryption()
The server-side encryption settings for the object.
|
Long |
getSize()
The total storage size, in bytes, of the object.
|
String |
getStorageClass()
The storage class of the object.
|
List<KeyValuePair> |
getTags()
The tags that are associated with the object.
|
String |
getVersionId()
The identifier for the affected version of the object.
|
int |
hashCode() |
Boolean |
isPublicAccess()
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to
the object.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket that contains the object.
|
void |
setETag(String eTag)
The entity tag (ETag) that identifies the affected version of the object.
|
void |
setExtension(String extension)
The file extension of the object.
|
void |
setKey(String key)
The full key (name) that's assigned to the object.
|
void |
setLastModified(Date lastModified)
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
|
void |
setPath(String path)
The path to the object, including the full key (name).
|
void |
setPublicAccess(Boolean publicAccess)
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to
the object.
|
void |
setServerSideEncryption(ServerSideEncryption serverSideEncryption)
The server-side encryption settings for the object.
|
void |
setSize(Long size)
The total storage size, in bytes, of the object.
|
void |
setStorageClass(String storageClass)
The storage class of the object.
|
void |
setTags(Collection<KeyValuePair> tags)
The tags that are associated with the object.
|
void |
setVersionId(String versionId)
The identifier for the affected version of the object.
|
String |
toString()
Returns a string representation of this object.
|
S3Object |
withBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket that contains the object.
|
S3Object |
withETag(String eTag)
The entity tag (ETag) that identifies the affected version of the object.
|
S3Object |
withExtension(String extension)
The file extension of the object.
|
S3Object |
withKey(String key)
The full key (name) that's assigned to the object.
|
S3Object |
withLastModified(Date lastModified)
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
|
S3Object |
withPath(String path)
The path to the object, including the full key (name).
|
S3Object |
withPublicAccess(Boolean publicAccess)
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to
the object.
|
S3Object |
withServerSideEncryption(ServerSideEncryption serverSideEncryption)
The server-side encryption settings for the object.
|
S3Object |
withSize(Long size)
The total storage size, in bytes, of the object.
|
S3Object |
withStorageClass(StorageClass storageClass)
The storage class of the object.
|
S3Object |
withStorageClass(String storageClass)
The storage class of the object.
|
S3Object |
withTags(Collection<KeyValuePair> tags)
The tags that are associated with the object.
|
S3Object |
withTags(KeyValuePair... tags)
The tags that are associated with the object.
|
S3Object |
withVersionId(String versionId)
The identifier for the affected version of the object.
|
public void setBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket that contains the object.
bucketArn
- The Amazon Resource Name (ARN) of the bucket that contains the object.public String getBucketArn()
The Amazon Resource Name (ARN) of the bucket that contains the object.
public S3Object withBucketArn(String bucketArn)
The Amazon Resource Name (ARN) of the bucket that contains the object.
bucketArn
- The Amazon Resource Name (ARN) of the bucket that contains the object.public void setETag(String eTag)
The entity tag (ETag) that identifies the affected version of the object. If the object was overwritten or changed after Amazon Macie produced the finding, this value might be different from the current ETag for the object.
eTag
- The entity tag (ETag) that identifies the affected version of the object. If the object was overwritten or
changed after Amazon Macie produced the finding, this value might be different from the current ETag for
the object.public String getETag()
The entity tag (ETag) that identifies the affected version of the object. If the object was overwritten or changed after Amazon Macie produced the finding, this value might be different from the current ETag for the object.
public S3Object withETag(String eTag)
The entity tag (ETag) that identifies the affected version of the object. If the object was overwritten or changed after Amazon Macie produced the finding, this value might be different from the current ETag for the object.
eTag
- The entity tag (ETag) that identifies the affected version of the object. If the object was overwritten or
changed after Amazon Macie produced the finding, this value might be different from the current ETag for
the object.public void setExtension(String extension)
The file extension of the object. If the object doesn't have a file extension, this value is "".
extension
- The file extension of the object. If the object doesn't have a file extension, this value is "".public String getExtension()
The file extension of the object. If the object doesn't have a file extension, this value is "".
public S3Object withExtension(String extension)
The file extension of the object. If the object doesn't have a file extension, this value is "".
extension
- The file extension of the object. If the object doesn't have a file extension, this value is "".public void setKey(String key)
The full key (name) that's assigned to the object.
key
- The full key (name) that's assigned to the object.public String getKey()
The full key (name) that's assigned to the object.
public S3Object withKey(String key)
The full key (name) that's assigned to the object.
key
- The full key (name) that's assigned to the object.public void setLastModified(Date lastModified)
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
lastModified
- The date and time, in UTC and extended ISO 8601 format, when the object was last modified.public Date getLastModified()
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
public S3Object withLastModified(Date lastModified)
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
lastModified
- The date and time, in UTC and extended ISO 8601 format, when the object was last modified.public void setPath(String path)
The path to the object, including the full key (name).
path
- The path to the object, including the full key (name).public String getPath()
The path to the object, including the full key (name).
public S3Object withPath(String path)
The path to the object, including the full key (name).
path
- The path to the object, including the full key (name).public void setPublicAccess(Boolean publicAccess)
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to the object.
publicAccess
- Specifies whether the object is publicly accessible due to the combination of permissions settings that
apply to the object.public Boolean getPublicAccess()
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to the object.
public S3Object withPublicAccess(Boolean publicAccess)
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to the object.
publicAccess
- Specifies whether the object is publicly accessible due to the combination of permissions settings that
apply to the object.public Boolean isPublicAccess()
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to the object.
public void setServerSideEncryption(ServerSideEncryption serverSideEncryption)
The server-side encryption settings for the object.
serverSideEncryption
- The server-side encryption settings for the object.public ServerSideEncryption getServerSideEncryption()
The server-side encryption settings for the object.
public S3Object withServerSideEncryption(ServerSideEncryption serverSideEncryption)
The server-side encryption settings for the object.
serverSideEncryption
- The server-side encryption settings for the object.public void setSize(Long size)
The total storage size, in bytes, of the object.
size
- The total storage size, in bytes, of the object.public Long getSize()
The total storage size, in bytes, of the object.
public S3Object withSize(Long size)
The total storage size, in bytes, of the object.
size
- The total storage size, in bytes, of the object.public void setStorageClass(String storageClass)
The storage class of the object.
storageClass
- The storage class of the object.StorageClass
public String getStorageClass()
The storage class of the object.
StorageClass
public S3Object withStorageClass(String storageClass)
The storage class of the object.
storageClass
- The storage class of the object.StorageClass
public S3Object withStorageClass(StorageClass storageClass)
The storage class of the object.
storageClass
- The storage class of the object.StorageClass
public List<KeyValuePair> getTags()
The tags that are associated with the object.
public void setTags(Collection<KeyValuePair> tags)
The tags that are associated with the object.
tags
- The tags that are associated with the object.public S3Object withTags(KeyValuePair... tags)
The tags that are associated with the object.
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 object.public S3Object withTags(Collection<KeyValuePair> tags)
The tags that are associated with the object.
tags
- The tags that are associated with the object.public void setVersionId(String versionId)
The identifier for the affected version of the object.
versionId
- The identifier for the affected version of the object.public String getVersionId()
The identifier for the affected version of the object.
public S3Object withVersionId(String versionId)
The identifier for the affected version of the object.
versionId
- The identifier for the affected version of the object.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.