@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class S3Object extends Object implements Serializable, Cloneable, StructuredPojo
Provides information about the 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 name extension of the object.
|
String |
getKey()
The full name (key) of the object, including the object's prefix if applicable.
|
Date |
getLastModified()
The date and time, in UTC and extended ISO 8601 format, when the object was last modified.
|
String |
getPath()
The full path to the affected object, including the name of the affected bucket and the object's name (key).
|
Boolean |
getPublicAccess()
Specifies whether the object is publicly accessible due to the combination of permissions settings that apply to
the object.
|
ServerSideEncryption |
getServerSideEncryption()
The type of server-side encryption that was used to encrypt 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 name extension of the object.
|
void |
setKey(String key)
The full name (key) of the object, including the object's prefix if applicable.
|
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 full path to the affected object, including the name of the affected bucket and the object's name (key).
|
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 type of server-side encryption that was used to encrypt 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 name extension of the object.
|
S3Object |
withKey(String key)
The full name (key) of the object, including the object's prefix if applicable.
|
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 full path to the affected object, including the name of the affected bucket and the object's name (key).
|
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 type of server-side encryption that was used to encrypt 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 name extension of the object. If the object doesn't have a file name extension, this value is "".
extension
- The file name extension of the object. If the object doesn't have a file name extension, this value is "".public String getExtension()
The file name extension of the object. If the object doesn't have a file name extension, this value is "".
public S3Object withExtension(String extension)
The file name extension of the object. If the object doesn't have a file name extension, this value is "".
extension
- The file name extension of the object. If the object doesn't have a file name extension, this value is "".public void setKey(String key)
The full name (key) of the object, including the object's prefix if applicable.
key
- The full name (key) of the object, including the object's prefix if applicable.public String getKey()
The full name (key) of the object, including the object's prefix if applicable.
public S3Object withKey(String key)
The full name (key) of the object, including the object's prefix if applicable.
key
- The full name (key) of the object, including the object's prefix if applicable.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 full path to the affected object, including the name of the affected bucket and the object's name (key).
path
- The full path to the affected object, including the name of the affected bucket and the object's name
(key).public String getPath()
The full path to the affected object, including the name of the affected bucket and the object's name (key).
public S3Object withPath(String path)
The full path to the affected object, including the name of the affected bucket and the object's name (key).
path
- The full path to the affected object, including the name of the affected bucket and the object's name
(key).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 type of server-side encryption that was used to encrypt the object.
serverSideEncryption
- The type of server-side encryption that was used to encrypt the object.public ServerSideEncryption getServerSideEncryption()
The type of server-side encryption that was used to encrypt the object.
public S3Object withServerSideEncryption(ServerSideEncryption serverSideEncryption)
The type of server-side encryption that was used to encrypt the object.
serverSideEncryption
- The type of server-side encryption that was used to encrypt 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.