Class Group.CreateGroupBuilder

  • Enclosing class:
    Group

    public static class Group.CreateGroupBuilder
    extends java.lang.Object
    A convenience class to make a Group object with the necessary fields to create the group by posting it to smartsheet.
    • Constructor Detail

      • CreateGroupBuilder

        public CreateGroupBuilder()
    • Method Detail

      • setMembers

        public Group.CreateGroupBuilder setMembers​(java.util.List<GroupMember> members)
        Sets the members for the group being created.
        Parameters:
        members - The List of Groups to add as members of this group.
        Returns:
        the creates the builder
      • setName

        public Group.CreateGroupBuilder setName​(java.lang.String name)
        Sets the name for the Group being created.
        Parameters:
        name - The name for the Group being created.
        Returns:
        the creates the builder
      • getMembers

        public java.util.List<GroupMember> getMembers()
        Returns the list of members.
        Returns:
        the columns
      • getName

        public java.lang.String getName()
        Returns the name for the group.
        Returns:
        the name
      • build

        public Group build()
        Creates a user by using the values from setters in this builder.
        Returns:
        the sheet
      • getDescription

        public java.lang.String getDescription()
        Returns:
        the description of the group
      • setDescription

        public Group.CreateGroupBuilder setDescription​(java.lang.String description)
        Parameters:
        description - the description to set
        Returns:
        the builder