Package com.smartsheet.api.models
Class Attachment.CreateAttachmentBuilder
- java.lang.Object
-
- com.smartsheet.api.models.Attachment.CreateAttachmentBuilder
-
- Enclosing class:
- Attachment
public static class Attachment.CreateAttachmentBuilder extends java.lang.Object
A convenience class for quickly creating a List of cells to update.
-
-
Constructor Summary
Constructors Constructor Description CreateAttachmentBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Attachment
build()
Returns the list of cells.AttachmentSubType
getAttachmentSubType()
Gets the attachment sub type.AttachmentType
getAttachmentType()
Gets the attachment type.java.lang.String
getDescription()
Gets the attachment description.java.lang.String
getName()
Gets the name.java.lang.String
getUrl()
Gets the URL.Attachment.CreateAttachmentBuilder
setAttachmentSubType(AttachmentSubType attachmentSubType)
Sets the attachment sub type.Attachment.CreateAttachmentBuilder
setAttachmentType(AttachmentType attachmentType)
Sets the attachment type.Attachment.CreateAttachmentBuilder
setDescription(java.lang.String description)
Sets the attachment description.Attachment.CreateAttachmentBuilder
setName(java.lang.String name)
Sets the name.Attachment.CreateAttachmentBuilder
setUrl(java.lang.String url)
Sets the URL.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name.- Returns:
- The name.
-
setName
public Attachment.CreateAttachmentBuilder setName(java.lang.String name)
Sets the name.- Parameters:
name
- the new name- Returns:
- the builder object
-
getUrl
public java.lang.String getUrl()
Gets the URL.- Returns:
- The url.
-
setUrl
public Attachment.CreateAttachmentBuilder setUrl(java.lang.String url)
Sets the URL.- Parameters:
url
- the new url- Returns:
- the builder object
-
getAttachmentType
public AttachmentType getAttachmentType()
Gets the attachment type.- Returns:
- the attachment type
-
setAttachmentType
public Attachment.CreateAttachmentBuilder setAttachmentType(AttachmentType attachmentType)
Sets the attachment type.- Parameters:
attachmentType
- the new attachment type- Returns:
- the builder object
-
getAttachmentSubType
public AttachmentSubType getAttachmentSubType()
Gets the attachment sub type.- Returns:
- the attachment sub type
-
setAttachmentSubType
public Attachment.CreateAttachmentBuilder setAttachmentSubType(AttachmentSubType attachmentSubType)
Sets the attachment sub type.- Parameters:
attachmentSubType
- the new attachment sub type- Returns:
- the builder object
-
getDescription
public java.lang.String getDescription()
Gets the attachment description.- Returns:
- the attachment description.
-
setDescription
public Attachment.CreateAttachmentBuilder setDescription(java.lang.String description)
Sets the attachment description.- Parameters:
description
- the description- Returns:
- the builder object
-
build
public Attachment build()
Returns the list of cells.- Returns:
- the list
-
-