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 class
Group.CreateGroupBuilder
A convenience class to make aGroup
object with the necessary fields to create the group by posting it to smartsheet.static class
Group.UpdateGroupBuilder
A convenience class to update aGroup
object 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.Date
getCreatedAt()
java.lang.String
getDescription()
java.util.List<GroupMember>
getMembers()
java.util.Date
getModifiedAt()
java.lang.String
getOwner()
java.lang.Long
getOwnerId()
Group
setCreatedAt(java.util.Date createdAt)
Group
setDescription(java.lang.String description)
Group
setMembers(java.util.List<GroupMember> members)
Group
setModifiedAt(java.util.Date modifiedAt)
Group
setName(java.lang.String name)
Provide an 'override' of setName (returns Group not NamedModel)Group
setOwner(java.lang.String owner)
Group
setOwnerId(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:
setName
in 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 createdAtDate
to set
-
getModifiedAt
public java.util.Date getModifiedAt()
- Returns:
- the modifiedAt
Date
-
setModifiedAt
public Group setModifiedAt(java.util.Date modifiedAt)
- Parameters:
modifiedAt
- the modifiedAtDate
to set
-
getMembers
public java.util.List<GroupMember> getMembers()
- Returns:
- the
List
ofGroup
s
-
setMembers
public Group setMembers(java.util.List<GroupMember> members)
- Parameters:
members
- theList
ofUser
s to set
-
-