Class Group.CreateGroupBuilder
- Namespace
- Smartsheet.Api.Models
- Assembly
- smartsheet-csharp-sdk.dll
A convenience class for making a Group object with the appropriate fields for creating the group.
public class Group.CreateGroupBuilder
- Inheritance
-
Group.CreateGroupBuilder
- Inherited Members
Constructors
CreateGroupBuilder(string, string)
Sets the required attributes for creating a Group.
public CreateGroupBuilder(string name, string description)
Parameters
name
stringname of group, must be unique within the organization
description
stringdescription of group
Methods
Build()
Builds and returns the Group object
public Group Build()
Returns
- Group
the Group object built.
GetName()
Gets the name of the Group.
public string GetName()
Returns
- string
the name
SetDescription(string)
Sets the description of the Group.
public Group.CreateGroupBuilder SetDescription(string description)
Parameters
description
stringthe description of the group
Returns
- Group.CreateGroupBuilder
the create group builder
SetMembers(IList<GroupMember>)
Sets the members of the Group.
public Group.CreateGroupBuilder SetMembers(IList<GroupMember> members)
Parameters
members
IList<GroupMember>the members of the group
Returns
- Group.CreateGroupBuilder
the create group builder
SetName(string)
Sets the name of the Group.
public Group.CreateGroupBuilder SetName(string name)
Parameters
name
stringthe name of the group
Returns
- Group.CreateGroupBuilder
the create group builder
getDescription()
Gets the description of the Group.
public string getDescription()
Returns
- string
the description
getMembers()
Gets the members of the Group.
public IList<GroupMember> getMembers()
Returns
- IList<GroupMember>
the members