public class Attachment extends NamedModel<Long>
| Modifier and Type | Class and Description |
|---|---|
static class |
Attachment.CreateAttachmentBuilder
A convenience class for quickly creating a List of cells to update.
|
| Constructor and Description |
|---|
Attachment() |
| Modifier and Type | Method and Description |
|---|---|
AttachmentSubType |
getAttachmentSubType()
Gets the attachment sub type.
|
AttachmentType |
getAttachmentType()
Gets the attachment type.
|
Date |
getCreatedAt()
Gets the created at.
|
User |
getCreatedBy() |
String |
getDescription()
Gets the attachment description.
|
String |
getMimeType()
Gets the mime type.
|
Long |
getParentId()
Gets the parent id.
|
AttachmentParentType |
getParentType()
Gets the parent type.
|
Long |
getSizeInKb()
Gets the size in kb.
|
String |
getUrl()
Gets the URL.
|
Long |
getUrlExpiresInMillis()
Gets the url expires in millis.
|
Attachment |
setAttachmentSubType(AttachmentSubType attachmentSubType)
Sets the attachment sub type.
|
Attachment |
setAttachmentType(AttachmentType attachmentType)
Sets the attachment type.
|
Attachment |
setCreatedAt(Date createdAt)
Sets the created at.
|
Attachment |
setCreatedBy(User createdBy) |
Attachment |
setDescription(String description)
Sets the attachment description.
|
Attachment |
setMimeType(String mimeType)
Sets the mime type.
|
Attachment |
setParentId(Long parentId)
Sets the parent id.
|
Attachment |
setParentType(AttachmentParentType parentType)
Sets the parent type.
|
Attachment |
setSizeInKb(Long sizeInKb)
Sets the size in kb.
|
Attachment |
setUrl(String url)
Sets the URL.
|
Attachment |
setUrlExpiresInMillis(Long urlExpiresInMillis)
Sets the url expires in millis.
|
getName, setNameequals, getId, hashCode, setIdpublic String getUrl()
public Attachment setUrl(String url)
url - the new urlpublic Long getUrlExpiresInMillis()
public Attachment setUrlExpiresInMillis(Long urlExpiresInMillis)
urlExpiresInMillis - the new url expires in millispublic AttachmentType getAttachmentType()
public Attachment setAttachmentType(AttachmentType attachmentType)
attachmentType - the new attachment typepublic AttachmentSubType getAttachmentSubType()
public Attachment setAttachmentSubType(AttachmentSubType attachmentSubType)
attachmentSubType - the new attachment sub typepublic Date getCreatedAt()
public Attachment setCreatedAt(Date createdAt)
createdAt - the new created atpublic String getMimeType()
public Attachment setMimeType(String mimeType)
mimeType - the new mime typepublic AttachmentParentType getParentType()
public Attachment setParentType(AttachmentParentType parentType)
parentType - the new parent typepublic Long getParentId()
public Attachment setParentId(Long parentId)
parentId - the new parent idpublic Long getSizeInKb()
public Attachment setSizeInKb(Long sizeInKb)
sizeInKb - the new size in kbpublic User getCreatedBy()
public Attachment setCreatedBy(User createdBy)
createdBy - the createdBy to setpublic String getDescription()
public Attachment setDescription(String description)
description - the descriptionCopyright © 2014–2017 Smartsheet. All rights reserved.