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 theAppInstanceUserorAppInstanceBotthat makes the API call.clientRequestToken(String clientRequestToken) TheIdempotencytoken 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 aFilterRuledefined 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,STANDARDorCONTROL.type(ChannelMessageType type) The type of message,STANDARDorCONTROL.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods 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,
STANDARDorCONTROL.STANDARDmessages 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.CONTROLmessages are limited to 30 bytes and do not contain metadata.- Parameters:
type- The type of message,STANDARDorCONTROL.STANDARDmessages 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.CONTROLmessages 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,
STANDARDorCONTROL.STANDARDmessages 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.CONTROLmessages are limited to 30 bytes and do not contain metadata.- Parameters:
type- The type of message,STANDARDorCONTROL.STANDARDmessages 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.CONTROLmessages 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
Idempotencytoken for each client request.- Parameters:
clientRequestToken- TheIdempotencytoken for each client request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chimeBearer
The ARN of the
AppInstanceUserorAppInstanceBotthat makes the API call.- Parameters:
chimeBearer- The ARN of theAppInstanceUserorAppInstanceBotthat 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.Builderavoiding the need to create one manually viaPushNotificationConfiguration.builder().When the
Consumercompletes,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
FilterRuledefined in thePushNotificationPreferences.- Parameters:
messageAttributes- The attributes for the message, used for message filtering along with aFilterRuledefined 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.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-