Package com.smartsheet.api.models
Class Group
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModel<T>
-
- com.smartsheet.api.models.NamedModel<java.lang.Long>
-
- com.smartsheet.api.models.Group
-
public class Group extends NamedModel<java.lang.Long>
Represents a Group Object.- See Also:
- Managing groups
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classGroup.CreateGroupBuilderA convenience class to make aGroupobject with the necessary fields to create the group by posting it to smartsheet.static classGroup.UpdateGroupBuilderA convenience class to update aGroupobject with the necessary fields to create the group by putting it to smartsheet.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetCreatedAt()java.lang.StringgetDescription()java.util.List<GroupMember>getMembers()java.util.DategetModifiedAt()java.lang.StringgetOwner()java.lang.LonggetOwnerId()GroupsetCreatedAt(java.util.Date createdAt)GroupsetDescription(java.lang.String description)GroupsetMembers(java.util.List<GroupMember> members)GroupsetModifiedAt(java.util.Date modifiedAt)GroupsetName(java.lang.String name)Provide an 'override' of setName (returns Group not NamedModel)GroupsetOwner(java.lang.String owner)GroupsetOwnerId(java.lang.Long ownerId)-
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 Group setName(java.lang.String name)
Provide an 'override' of setName (returns Group not NamedModel)- Overrides:
setNamein classNamedModel<java.lang.Long>- Parameters:
name- the new name
-
getDescription
public java.lang.String getDescription()
- Returns:
- the description of the group
-
setDescription
public Group setDescription(java.lang.String description)
- Parameters:
description- the description to set
-
getOwner
public java.lang.String getOwner()
- Returns:
- the email address of the owner
-
setOwner
public Group setOwner(java.lang.String owner)
- Parameters:
owner- the owner email address to set
-
getOwnerId
public java.lang.Long getOwnerId()
- Returns:
- the id of the owner of the group.
-
setOwnerId
public Group setOwnerId(java.lang.Long ownerId)
- Parameters:
ownerId- the owner Id to set
-
getCreatedAt
public java.util.Date getCreatedAt()
- Returns:
- the createdAt
Date
-
setCreatedAt
public Group setCreatedAt(java.util.Date createdAt)
- Parameters:
createdAt- the createdAtDateto set
-
getModifiedAt
public java.util.Date getModifiedAt()
- Returns:
- the modifiedAt
Date
-
setModifiedAt
public Group setModifiedAt(java.util.Date modifiedAt)
- Parameters:
modifiedAt- the modifiedAtDateto set
-
getMembers
public java.util.List<GroupMember> getMembers()
- Returns:
- the
ListofGroups
-
setMembers
public Group setMembers(java.util.List<GroupMember> members)
- Parameters:
members- theListofUsers to set
-
-