Package com.smartsheet.api.models
Class ContainerDestination.AddContainerDestinationBuilder
- java.lang.Object
-
- com.smartsheet.api.models.ContainerDestination.AddContainerDestinationBuilder
-
- Enclosing class:
- ContainerDestination
public static class ContainerDestination.AddContainerDestinationBuilder extends java.lang.Object
A convenience class to generate a comment with the appropriate fields for adding it to a sheet.
-
-
Constructor Summary
Constructors Constructor Description AddContainerDestinationBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ContainerDestination
build()
Builds the comment.java.lang.Long
getDestinationId()
Gets the destination id when copying or moving a Sheet or a Folder.DestinationType
getDestinationType()
Gets the destination type when copying or moving a Sheet or a Folder.java.lang.String
getNewName()
Gets the destination name when copying or moving a Sheet or a Folder.ContainerDestination.AddContainerDestinationBuilder
setDestinationId(java.lang.Long destinationId)
Sets the id for the folderContainerDestination.AddContainerDestinationBuilder
setDestinationType(DestinationType destinationType)
Sets the type for the folderContainerDestination.AddContainerDestinationBuilder
setNewName(java.lang.String newName)
Sets the name for the folder
-
-
-
Method Detail
-
getDestinationType
public DestinationType getDestinationType()
Gets the destination type when copying or moving a Sheet or a Folder.- Returns:
- the destination type
-
setDestinationType
public ContainerDestination.AddContainerDestinationBuilder setDestinationType(DestinationType destinationType)
Sets the type for the folder- Parameters:
destinationType
- the destination type- Returns:
- the builder
-
getDestinationId
public java.lang.Long getDestinationId()
Gets the destination id when copying or moving a Sheet or a Folder.- Returns:
- the destination id
-
setDestinationId
public ContainerDestination.AddContainerDestinationBuilder setDestinationId(java.lang.Long destinationId)
Sets the id for the folder- Parameters:
destinationId
- the destination id- Returns:
- the builder
-
getNewName
public java.lang.String getNewName()
Gets the destination name when copying or moving a Sheet or a Folder.- Returns:
- the new name
-
setNewName
public ContainerDestination.AddContainerDestinationBuilder setNewName(java.lang.String newName)
Sets the name for the folder- Parameters:
newName
- the new name for destination- Returns:
- the builder
-
build
public ContainerDestination build()
Builds the comment.- Returns:
- the comment
-
-