Interface Channel.Builder

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

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

    • name

      Channel.Builder name(String name)

      The name of the channel.

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

      Channel.Builder channelArn(String channelArn)

      The ARN of the channel.

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

      Channel.Builder mode(String mode)

      The mode of the channel.

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

      The mode of the channel.

      Parameters:
      mode - The mode of the channel.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • privacy

      Channel.Builder privacy(String privacy)

      The channel's privacy setting.

      Parameters:
      privacy - The channel's privacy setting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • privacy

      Channel.Builder privacy(ChannelPrivacy privacy)

      The channel's privacy setting.

      Parameters:
      privacy - The channel's privacy setting.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metadata

      Channel.Builder metadata(String metadata)

      The channel's metadata.

      Parameters:
      metadata - The channel's metadata.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      Channel.Builder createdBy(Identity createdBy)

      The AppInstanceUser who created the channel.

      Parameters:
      createdBy - The AppInstanceUser who created the channel.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • createdBy

      default Channel.Builder createdBy(Consumer<Identity.Builder> createdBy)

      The AppInstanceUser who created the channel.

      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 createdBy(Identity).

      Parameters:
      createdBy - 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:
    • createdTimestamp

      Channel.Builder createdTimestamp(Instant createdTimestamp)

      The time at which the AppInstanceUser created the channel.

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

      Channel.Builder lastMessageTimestamp(Instant lastMessageTimestamp)

      The time at which a member sent the last message in the channel.

      Parameters:
      lastMessageTimestamp - The time at which a member sent the last message in the channel.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • lastUpdatedTimestamp

      Channel.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)

      The time at which a channel was last updated.

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