Package com.smartsheet.api.models
Class Folder
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<T>
-
- com.smartsheet.api.models.NamedModel<java.lang.Long>
-
- com.smartsheet.api.models.Folder
-
- Direct Known Subclasses:
Workspace
public class Folder extends NamedModel<java.lang.Long>
Represents a folder.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Folder.CreateFolderBuilder
A convenience class for setting up a folder with the appropriate fields for updating the folder.static class
Folder.UpdateFolderBuilder
A convenience class for setting up a folder with the appropriate fields for updating the folder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Boolean
getFavorite()
Gets the favorite boolean value of folder in Home.java.util.List<Folder>
getFolders()
Gets the folders contained in this folder.java.lang.String
getPermalink()
Gets the Direct URL to Folder.java.util.List<Report>
getReports()
Gets the reports.java.util.List<Sheet>
getSheets()
Gets the sheets in the folder.java.util.List<Sight>
getSights()
Get the sights contained in this folderjava.util.List<Template>
getTemplates()
Gets the templates contained in this folder.Folder
setFavorite(java.lang.Boolean favorite)
Sets the favorite boolean value of folder in Home.Folder
setFolders(java.util.List<Folder> folders)
Sets the folders contained in this folder.Folder
setName(java.lang.String name)
Provide an 'override' of setName (returns Folder not NamedModel)Folder
setPermalink(java.lang.String permalink)
Sets the Direct URL to Folder.Folder
setReports(java.util.List<Report> reports)
Sets the reports.Folder
setSheets(java.util.List<Sheet> sheets)
Sets the sheets contained in the folder.Folder
setSights(java.util.List<Sight> sights)
Sets the sights contained in this folder.Folder
setTemplates(java.util.List<Template> templates)
Sets the templates contained in this folder.-
Methods inherited from class com.smartsheet.api.models.NamedModel
getName
-
Methods inherited from class com.smartsheet.api.models.IdentifiableModel
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
setName
public Folder setName(java.lang.String name)
Provide an 'override' of setName (returns Folder not NamedModel)- Overrides:
setName
in classNamedModel<java.lang.Long>
- Parameters:
name
- the new name
-
getPermalink
public java.lang.String getPermalink()
Gets the Direct URL to Folder.- Returns:
- the sheets
-
setPermalink
public Folder setPermalink(java.lang.String permalink)
Sets the Direct URL to Folder.- Parameters:
permalink
- the new sheets
-
getFavorite
public java.lang.Boolean getFavorite()
Gets the favorite boolean value of folder in Home.- Returns:
- the sheets
-
setFavorite
public Folder setFavorite(java.lang.Boolean favorite)
Sets the favorite boolean value of folder in Home.- Parameters:
favorite
- the new sheets
-
getSheets
public java.util.List<Sheet> getSheets()
Gets the sheets in the folder.- Returns:
- the sheets
-
setSheets
public Folder setSheets(java.util.List<Sheet> sheets)
Sets the sheets contained in the folder.- Parameters:
sheets
- the new sheets
-
getFolders
public java.util.List<Folder> getFolders()
Gets the folders contained in this folder.- Returns:
- the folders
-
setFolders
public Folder setFolders(java.util.List<Folder> folders)
Sets the folders contained in this folder.- Parameters:
folders
- the new folders
-
getReports
public java.util.List<Report> getReports()
Gets the reports.- Returns:
- the reports
-
setReports
public Folder setReports(java.util.List<Report> reports)
Sets the reports.- Parameters:
reports
- the new reports
-
getTemplates
public java.util.List<Template> getTemplates()
Gets the templates contained in this folder.- Returns:
- the templates
-
setTemplates
public Folder setTemplates(java.util.List<Template> templates)
Sets the templates contained in this folder.- Parameters:
templates
- the new templates
-
getSights
public java.util.List<Sight> getSights()
Get the sights contained in this folder- Returns:
- the sights
-
-