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 Summary
Modifier and TypeMethodDescriptionchannelArn
(String channelArn) The ARN of the channel.chimeBearer
(String chimeBearer) The ARN of theAppInstanceUser
orAppInstanceBot
that makes the API call.clientRequestToken
(String clientRequestToken) TheIdempotency
token for each client request.The content of the channel message.contentType
(String contentType) The content type of the channel message.messageAttributes
(Map<String, MessageAttributeValue> messageAttributes) The attributes for the message, used for message filtering along with aFilterRule
defined in thePushNotificationPreferences
.The optional metadata for each message.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.persistence
(String persistence) Boolean that controls whether the message is persisted on the back end.persistence
(ChannelMessagePersistenceType persistence) Boolean that controls whether the message is persisted on the back end.pushNotification
(Consumer<PushNotificationConfiguration.Builder> pushNotification) The push notification configuration of the message.pushNotification
(PushNotificationConfiguration pushNotification) The push notification configuration of the message.subChannelId
(String subChannelId) The ID of the SubChannel in the request.target
(Collection<Target> target) The target of a message.target
(Consumer<Target.Builder>... target) The target of a message.The target of a message.The type of message,STANDARD
orCONTROL
.type
(ChannelMessageType type) The type of message,STANDARD
orCONTROL
.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
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
orCONTROL
.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
orCONTROL
.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
orCONTROL
.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
orCONTROL
.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
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
The
Idempotency
token for each client request.- Parameters:
clientRequestToken
- TheIdempotency
token for each client request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chimeBearer
The ARN of the
AppInstanceUser
orAppInstanceBot
that makes the API call.- Parameters:
chimeBearer
- The ARN of theAppInstanceUser
orAppInstanceBot
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
default SendChannelMessageRequest.Builder pushNotification(Consumer<PushNotificationConfiguration.Builder> pushNotification) The push notification configuration of the message.
This is a convenience method that creates an instance of thePushNotificationConfiguration.Builder
avoiding the need to create one manually viaPushNotificationConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed topushNotification(PushNotificationConfiguration)
.- Parameters:
pushNotification
- a consumer that will call methods onPushNotificationConfiguration.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 thePushNotificationPreferences
.- Parameters:
messageAttributes
- The attributes for the message, used for message filtering along with aFilterRule
defined in thePushNotificationPreferences
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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
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 theTarget.Builder
avoiding the need to create one manually viaTarget.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totarget(List<Target>)
.- Parameters:
target
- a consumer that will call methods onTarget.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 interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendChannelMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-