@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AttachmentContent extends Object implements Serializable, Cloneable, StructuredPojo
A structure that includes attributes that describe a document attachment.
Constructor and Description |
---|
AttachmentContent() |
Modifier and Type | Method and Description |
---|---|
AttachmentContent |
clone() |
boolean |
equals(Object obj) |
String |
getHash()
The cryptographic hash value of the document content.
|
String |
getHashType()
The hash algorithm used to calculate the hash value.
|
String |
getName()
The name of an attachment.
|
Long |
getSize()
The size of an attachment in bytes.
|
String |
getUrl()
The URL location of the attachment content.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHash(String hash)
The cryptographic hash value of the document content.
|
void |
setHashType(String hashType)
The hash algorithm used to calculate the hash value.
|
void |
setName(String name)
The name of an attachment.
|
void |
setSize(Long size)
The size of an attachment in bytes.
|
void |
setUrl(String url)
The URL location of the attachment content.
|
String |
toString()
Returns a string representation of this object.
|
AttachmentContent |
withHash(String hash)
The cryptographic hash value of the document content.
|
AttachmentContent |
withHashType(AttachmentHashType hashType)
The hash algorithm used to calculate the hash value.
|
AttachmentContent |
withHashType(String hashType)
The hash algorithm used to calculate the hash value.
|
AttachmentContent |
withName(String name)
The name of an attachment.
|
AttachmentContent |
withSize(Long size)
The size of an attachment in bytes.
|
AttachmentContent |
withUrl(String url)
The URL location of the attachment content.
|
public void setName(String name)
The name of an attachment.
name
- The name of an attachment.public String getName()
The name of an attachment.
public AttachmentContent withName(String name)
The name of an attachment.
name
- The name of an attachment.public void setSize(Long size)
The size of an attachment in bytes.
size
- The size of an attachment in bytes.public Long getSize()
The size of an attachment in bytes.
public AttachmentContent withSize(Long size)
The size of an attachment in bytes.
size
- The size of an attachment in bytes.public void setHash(String hash)
The cryptographic hash value of the document content.
hash
- The cryptographic hash value of the document content.public String getHash()
The cryptographic hash value of the document content.
public AttachmentContent withHash(String hash)
The cryptographic hash value of the document content.
hash
- The cryptographic hash value of the document content.public void setHashType(String hashType)
The hash algorithm used to calculate the hash value.
hashType
- The hash algorithm used to calculate the hash value.AttachmentHashType
public String getHashType()
The hash algorithm used to calculate the hash value.
AttachmentHashType
public AttachmentContent withHashType(String hashType)
The hash algorithm used to calculate the hash value.
hashType
- The hash algorithm used to calculate the hash value.AttachmentHashType
public AttachmentContent withHashType(AttachmentHashType hashType)
The hash algorithm used to calculate the hash value.
hashType
- The hash algorithm used to calculate the hash value.AttachmentHashType
public void setUrl(String url)
The URL location of the attachment content.
url
- The URL location of the attachment content.public String getUrl()
The URL location of the attachment content.
public AttachmentContent withUrl(String url)
The URL location of the attachment content.
url
- The URL location of the attachment content.public String toString()
toString
in class Object
Object.toString()
public AttachmentContent clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.