Interface ChannelMembership.Builder

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

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

    • invitedBy

      ChannelMembership.Builder invitedBy(Identity invitedBy)

      The identifier of the member who invited another member.

      Parameters:
      invitedBy - The identifier of the member who invited another member.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • invitedBy

      default ChannelMembership.Builder invitedBy(Consumer<Identity.Builder> invitedBy)

      The identifier of the member who invited another member.

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

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

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

      The membership type set for the channel member.

      Parameters:
      type - The membership type set for the channel member.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The membership type set for the channel member.

      Parameters:
      type - The membership type set for the channel member.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • member

      The data of the channel member.

      Parameters:
      member - The data of the channel member.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • member

      The data of the channel member.

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

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

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

      ChannelMembership.Builder channelArn(String channelArn)

      The ARN of the member's channel.

      Parameters:
      channelArn - The ARN of the member's channel.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdTimestamp

      ChannelMembership.Builder createdTimestamp(Instant createdTimestamp)

      The time at which the channel membership was created.

      Parameters:
      createdTimestamp - The time at which the channel membership was created.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedTimestamp

      ChannelMembership.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)

      The time at which a channel membership was last updated.

      Parameters:
      lastUpdatedTimestamp - The time at which a channel membership was last updated.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subChannelId

      ChannelMembership.Builder subChannelId(String subChannelId)

      The ID of the SubChannel that a user belongs to.

      Parameters:
      subChannelId - The ID of the SubChannel that a user belongs to.
      Returns:
      Returns a reference to this object so that method calls can be chained together.