public abstract class Attachment
extends java.lang.Object
| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
AttachmentId |
getAttachmentId()
Gets the attachment ID.
|
java.lang.String |
getContentId()
Gets an identifier for the contents of an attachment.
|
java.lang.String |
getContentLocation()
Gets the Uniform Resource Identifier (URI) that corresponds to the location of the content of the attachment.
|
java.lang.String |
getContentType()
Gets the Multipurpose Internet Mail Extensions (MIME) type of the attachment content.
|
java.util.Date |
getLastModifiedTime()
Gets when the file attachment was last modified.
|
java.lang.String |
getName()
Gest the name of the attachment.
|
int |
getSize()
Gets the size in bytes of the file attachment.
|
boolean |
isInline()
Gets whether the attachment appears inline within an item.
|
void |
setAttachmentId(AttachmentId attachmentId)
Sets the attachment ID.
|
void |
setContentId(java.lang.String contentId)
Sets an identifier for the contents of an attachment.
|
void |
setContentLocation(java.lang.String contentLocation)
Sets the Uniform Resource Identifier (URI) that corresponds to the location of the content of the attachment.
|
void |
setContentType(java.lang.String contentType)
Sets the Multipurpose Internet Mail Extensions (MIME) type of the attachment content.
|
void |
setInline(boolean isInline)
Sets whether the attachment appears inline within an item.
|
void |
setLastModifiedTime(java.util.Date lastModifiedTime)
Sets when the file attachment was last modified.
|
void |
setName(java.lang.String name)
Sets the name of the attachment.
|
void |
setSize(int size)
Sets the size in bytes of the file attachment.
|
public AttachmentId getAttachmentId()
public void setAttachmentId(AttachmentId attachmentId)
attachmentId - the new attachment idpublic java.lang.String getName()
public void setName(java.lang.String name)
name - the new namepublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType - the new content typepublic java.lang.String getContentId()
public void setContentId(java.lang.String contentId)
contentId - the new content idpublic java.lang.String getContentLocation()
public void setContentLocation(java.lang.String contentLocation)
contentLocation - the new content locationpublic int getSize()
public void setSize(int size)
size - the new sizepublic java.util.Date getLastModifiedTime()
public void setLastModifiedTime(java.util.Date lastModifiedTime)
lastModifiedTime - the new last modified timepublic boolean isInline()
public void setInline(boolean isInline)
isInline - the new inline