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