Package com.smartsheet.api.models
Class NamedModel<T>
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<T>
-
- com.smartsheet.api.models.NamedModel<T>
-
- Direct Known Subclasses:
AbstractSheet,Account,Attachment,AutomationRule,Contact,CrossSheetReference,Folder,Group,Share,SheetFilter,Sight,SortCriterion,Template,Webhook
public abstract class NamedModel<T> extends IdentifiableModel<T>
Represents an object with a name and an id. The id is of type T.
-
-
Constructor Summary
Constructors Constructor Description NamedModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetName()Gets the name.NamedModel<T>setName(java.lang.String name)Sets the name.-
Methods inherited from class com.smartsheet.api.models.IdentifiableModel
equals, getId, hashCode, setId
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Gets the name.- Returns:
- the name
-
setName
public NamedModel<T> setName(java.lang.String name)
Sets the name.- Parameters:
name- the new name
-
-