public class Attachment
extends java.lang.Object
| Constructor and Description |
|---|
Attachment()
Instantiates a new Attachment with no ID, content, or MIME type.
|
Attachment(java.lang.String id,
byte[] content,
java.lang.String type)
Instantiates a new Attachment.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAttachmentId()
Returns the unique replacement token for the attachment.
|
byte[] |
getContent()
Returns the content of the attachment as a byte array.
|
java.lang.String |
getId()
Returns the unique ID for the attachment.
|
java.lang.String |
getType()
Returns the MIME type of the attachment.
|
void |
setContent(byte[] content)
Sets the content of the attachment.
|
void |
setId(java.lang.String id)
Sets the unique ID for the attachment.
|
void |
setType(java.lang.String type)
Sets the MIME type for the attachment.
|
public Attachment()
public Attachment(java.lang.String id,
byte[] content,
java.lang.String type)
id - The unique ID of the attachment.content - The content (byte array) to store for the attachment.type - The MIME type of the attachment.public java.lang.String getAttachmentId()
public java.lang.String getId()
public void setId(java.lang.String id)
id - The unique ID to use for the attachment.public byte[] getContent()
public void setContent(byte[] content)
content - The content (byte array) to use for the attachment.public java.lang.String getType()
public void setType(java.lang.String type)
type - The MIME type to set for the attachment.