Interface GroupMembership.Builder

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

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

    • identityStoreId

      GroupMembership.Builder identityStoreId(String identityStoreId)

      The globally unique identifier for the identity store.

      Parameters:
      identityStoreId - The globally unique identifier for the identity store.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • membershipId

      GroupMembership.Builder membershipId(String membershipId)

      The identifier for a GroupMembership object in an identity store.

      Parameters:
      membershipId - The identifier for a GroupMembership object in an identity store.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • groupId

      GroupMembership.Builder groupId(String groupId)

      The identifier for a group in the identity store.

      Parameters:
      groupId - The identifier for a group in the identity store.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberId

      GroupMembership.Builder memberId(MemberId memberId)

      An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

      Parameters:
      memberId - An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • memberId

      default GroupMembership.Builder memberId(Consumer<MemberId.Builder> memberId)

      An object that contains the identifier of a group member. Setting the UserID field to the specific identifier for a user indicates that the user is a member of the group.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to memberId(MemberId).

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