public static interface ChannelMessageCallback.Builder extends SdkPojo, CopyableBuilder<ChannelMessageCallback.Builder,ChannelMessageCallback>
| Modifier and Type | Method and Description |
|---|---|
ChannelMessageCallback.Builder |
content(String content)
The message content.
|
ChannelMessageCallback.Builder |
contentType(String contentType)
The content type of the call-back message.
|
ChannelMessageCallback.Builder |
messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the channel message.
|
ChannelMessageCallback.Builder |
messageId(String messageId)
The message ID.
|
ChannelMessageCallback.Builder |
metadata(String metadata)
The message metadata.
|
default ChannelMessageCallback.Builder |
pushNotification(Consumer<PushNotificationConfiguration.Builder> pushNotification)
The push notification configuration of the message.
|
ChannelMessageCallback.Builder |
pushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
|
ChannelMessageCallback.Builder |
subChannelId(String subChannelId)
The ID of the SubChannel.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildChannelMessageCallback.Builder messageId(String messageId)
The message ID.
messageId - The message ID.ChannelMessageCallback.Builder content(String content)
The message content. For Amazon Lex V2 bot responses, this field holds a list of messages originating from the bot. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.
content - The message content. For Amazon Lex V2 bot responses, this field holds a list of messages originating
from the bot. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer
Guide.ChannelMessageCallback.Builder metadata(String metadata)
The message metadata.
metadata - The message metadata.ChannelMessageCallback.Builder pushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
pushNotification - The push notification configuration of the message.default ChannelMessageCallback.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 via PushNotificationConfiguration.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to pushNotification(PushNotificationConfiguration).
pushNotification - a consumer that will call methods on PushNotificationConfiguration.BuilderpushNotification(PushNotificationConfiguration)ChannelMessageCallback.Builder messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the channel message. For Amazon Lex V2 bot responses, the attributes are mapped to specific fields from the bot. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.
messageAttributes - The attributes for the channel message. For Amazon Lex V2 bot responses, the attributes are mapped to
specific fields from the bot. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer
Guide.ChannelMessageCallback.Builder subChannelId(String subChannelId)
The ID of the SubChannel.
subChannelId - The ID of the SubChannel.ChannelMessageCallback.Builder contentType(String contentType)
The content type of the call-back message. For Amazon Lex V2 bot responses, the content type is
application/amz-chime-lex-msgs for success responses and
application/amz-chime-lex-error for failure responses. For more information, refer to Processing
responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.
contentType - The content type of the call-back message. For Amazon Lex V2 bot responses, the content type is
application/amz-chime-lex-msgs for success responses and
application/amz-chime-lex-error for failure responses. For more information, refer to Processing
responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.Copyright © 2023. All rights reserved.