public class Attachments
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Attachments.Builder
A helper object to construct usable attachments.
|
Constructor and Description |
---|
Attachments() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getContent()
Get the attachment's content.
|
java.lang.String |
getContentId()
Get the attachment content ID.
|
java.lang.String |
getDisposition()
Get the content-disposition of the attachment specifying
how you would like the attachment to be displayed.
|
java.lang.String |
getFilename()
Get the filename for this attachment.
|
java.lang.String |
getType()
Get the mime type of the content you are attaching.
|
int |
hashCode() |
void |
setContent(java.lang.String content)
Set the attachment's content.
|
void |
setContentId(java.lang.String contentId)
Set the content ID.
|
void |
setDisposition(java.lang.String disposition)
Set the content-disposition of the attachment.
|
void |
setFilename(java.lang.String filename)
Set the filename for this attachment.
|
void |
setType(java.lang.String type)
Set the mime type of the content.
|
public java.lang.String getContent()
public void setContent(java.lang.String content)
content
- the content.public java.lang.String getType()
public void setType(java.lang.String type)
type
- the mime type.public java.lang.String getFilename()
public void setFilename(java.lang.String filename)
filename
- the filename.public java.lang.String getDisposition()
public void setDisposition(java.lang.String disposition)
disposition
- the disposition.public java.lang.String getContentId()
public void setContentId(java.lang.String contentId)
contentId
- the content ID.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object