Interface GroupMembers.Builder

All Superinterfaces:
Buildable, CopyableBuilder<GroupMembers.Builder,GroupMembers>, SdkBuilder<GroupMembers.Builder,GroupMembers>, SdkPojo
Enclosing class:
GroupMembers

public static interface GroupMembers.Builder extends SdkPojo, CopyableBuilder<GroupMembers.Builder,GroupMembers>
  • Method Details

    • memberGroups

      GroupMembers.Builder memberGroups(Collection<MemberGroup> memberGroups)

      A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and "Sales and Marketing" all belong to the group "Company".

      Parameters:
      memberGroups - A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and "Sales and Marketing" all belong to the group "Company".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberGroups

      GroupMembers.Builder memberGroups(MemberGroup... memberGroups)

      A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and "Sales and Marketing" all belong to the group "Company".

      Parameters:
      memberGroups - A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and "Sales and Marketing" all belong to the group "Company".
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberGroups

      GroupMembers.Builder memberGroups(Consumer<MemberGroup.Builder>... memberGroups)

      A list of sub groups that belong to a group. For example, the sub groups "Research", "Engineering", and "Sales and Marketing" all belong to the group "Company".

      This is a convenience method that creates an instance of the MemberGroup.Builder avoiding the need to create one manually via MemberGroup.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to memberGroups(List<MemberGroup>).

      Parameters:
      memberGroups - a consumer that will call methods on MemberGroup.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • memberUsers

      GroupMembers.Builder memberUsers(Collection<MemberUser> memberUsers)

      A list of users that belong to a group. For example, a list of interns all belong to the "Interns" group.

      Parameters:
      memberUsers - A list of users that belong to a group. For example, a list of interns all belong to the "Interns" group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberUsers

      GroupMembers.Builder memberUsers(MemberUser... memberUsers)

      A list of users that belong to a group. For example, a list of interns all belong to the "Interns" group.

      Parameters:
      memberUsers - A list of users that belong to a group. For example, a list of interns all belong to the "Interns" group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberUsers

      GroupMembers.Builder memberUsers(Consumer<MemberUser.Builder>... memberUsers)

      A list of users that belong to a group. For example, a list of interns all belong to the "Interns" group.

      This is a convenience method that creates an instance of the MemberUser.Builder avoiding the need to create one manually via MemberUser.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to memberUsers(List<MemberUser>).

      Parameters:
      memberUsers - a consumer that will call methods on MemberUser.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: