Interface ChannelMessage.Builder

    • Method Detail

      • channelArn

        ChannelMessage.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.
      • messageId

        ChannelMessage.Builder messageId​(String messageId)

        The ID of a message.

        Parameters:
        messageId - The ID of a message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • content

        ChannelMessage.Builder content​(String content)

        The message content.

        Parameters:
        content - The message content.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • metadata

        ChannelMessage.Builder metadata​(String metadata)

        The message metadata.

        Parameters:
        metadata - The message metadata.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • createdTimestamp

        ChannelMessage.Builder createdTimestamp​(Instant createdTimestamp)

        The time at which the message was created.

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

        ChannelMessage.Builder lastEditedTimestamp​(Instant lastEditedTimestamp)

        The time at which a message was edited.

        Parameters:
        lastEditedTimestamp - The time at which a message was edited.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • lastUpdatedTimestamp

        ChannelMessage.Builder lastUpdatedTimestamp​(Instant lastUpdatedTimestamp)

        The time at which a message was updated.

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

        ChannelMessage.Builder sender​(Identity sender)

        The message sender.

        Parameters:
        sender - The message sender.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • redacted

        ChannelMessage.Builder redacted​(Boolean redacted)

        Hides the content of a message.

        Parameters:
        redacted - Hides the content of a message.
        Returns:
        Returns a reference to this object so that method calls can be chained together.