Interface SendChannelMessageRequest.Builder

All Superinterfaces:
AwsRequest.Builder, Buildable, ChimeSdkMessagingRequest.Builder, CopyableBuilder<SendChannelMessageRequest.Builder,SendChannelMessageRequest>, SdkBuilder<SendChannelMessageRequest.Builder,SendChannelMessageRequest>, SdkPojo, SdkRequest.Builder
Enclosing class:
SendChannelMessageRequest

  • Method Details

    • channelArn

      SendChannelMessageRequest.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.
    • content

      The content of the channel message.

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

      The type of message, STANDARD or CONTROL.

      STANDARD messages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.

      CONTROL messages are limited to 30 bytes and do not contain metadata.

      Parameters:
      type - The type of message, STANDARD or CONTROL.

      STANDARD messages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.

      CONTROL messages are limited to 30 bytes and do not contain metadata.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The type of message, STANDARD or CONTROL.

      STANDARD messages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.

      CONTROL messages are limited to 30 bytes and do not contain metadata.

      Parameters:
      type - The type of message, STANDARD or CONTROL.

      STANDARD messages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.

      CONTROL messages are limited to 30 bytes and do not contain metadata.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • persistence

      SendChannelMessageRequest.Builder persistence(String persistence)

      Boolean that controls whether the message is persisted on the back end. Required.

      Parameters:
      persistence - Boolean that controls whether the message is persisted on the back end. Required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • persistence

      Boolean that controls whether the message is persisted on the back end. Required.

      Parameters:
      persistence - Boolean that controls whether the message is persisted on the back end. Required.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • metadata

      The optional metadata for each message.

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

      SendChannelMessageRequest.Builder clientRequestToken(String clientRequestToken)

      The Idempotency token for each client request.

      Parameters:
      clientRequestToken - The Idempotency token for each client request.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • chimeBearer

      SendChannelMessageRequest.Builder chimeBearer(String chimeBearer)

      The ARN of the AppInstanceUser or AppInstanceBot that makes the API call.

      Parameters:
      chimeBearer - The ARN of the AppInstanceUser or AppInstanceBot that makes the API call.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pushNotification

      The push notification configuration of the message.

      Parameters:
      pushNotification - The push notification configuration of the message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • pushNotification

      The push notification configuration of the message.

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

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

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

      SendChannelMessageRequest.Builder messageAttributes(Map<String,MessageAttributeValue> messageAttributes)

      The attributes for the message, used for message filtering along with a FilterRule defined in the PushNotificationPreferences.

      Parameters:
      messageAttributes - The attributes for the message, used for message filtering along with a FilterRule defined in the PushNotificationPreferences.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • subChannelId

      SendChannelMessageRequest.Builder subChannelId(String subChannelId)

      The ID of the SubChannel in the request.

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

      SendChannelMessageRequest.Builder contentType(String contentType)

      The content type of the channel message.

      Parameters:
      contentType - The content type of the channel message.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. Only the target and the sender can view targeted messages. Only users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see.

      Parameters:
      target - The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. Only the target and the sender can view targeted messages. Only users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. Only the target and the sender can view targeted messages. Only users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see.

      Parameters:
      target - The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. Only the target and the sender can view targeted messages. Only users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • target

      The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. Only the target and the sender can view targeted messages. Only users who can see targeted messages can take actions on them. However, administrators can delete targeted messages that they can’t see.

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

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

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

      SendChannelMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.