public static interface ChannelMessage.Builder extends SdkPojo, CopyableBuilder<ChannelMessage.Builder,ChannelMessage>
| Modifier and Type | Method and Description |
|---|---|
ChannelMessage.Builder |
channelArn(String channelArn)
The ARN of the channel.
|
ChannelMessage.Builder |
content(String content)
The content of the channel message.
|
ChannelMessage.Builder |
contentType(String contentType)
The content type of the channel message.
|
ChannelMessage.Builder |
createdTimestamp(Instant createdTimestamp)
The time at which the message was created.
|
ChannelMessage.Builder |
lastEditedTimestamp(Instant lastEditedTimestamp)
The time at which a message was edited.
|
ChannelMessage.Builder |
lastUpdatedTimestamp(Instant lastUpdatedTimestamp)
The time at which a message was updated.
|
ChannelMessage.Builder |
messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the channel message.
|
ChannelMessage.Builder |
messageId(String messageId)
The ID of a message.
|
ChannelMessage.Builder |
metadata(String metadata)
The message metadata.
|
ChannelMessage.Builder |
persistence(ChannelMessagePersistenceType persistence)
The persistence setting for a channel message.
|
ChannelMessage.Builder |
persistence(String persistence)
The persistence setting for a channel message.
|
ChannelMessage.Builder |
redacted(Boolean redacted)
Hides the content of a message.
|
default ChannelMessage.Builder |
sender(Consumer<Identity.Builder> sender)
The message sender.
|
ChannelMessage.Builder |
sender(Identity sender)
The message sender.
|
ChannelMessage.Builder |
status(ChannelMessageStatusStructure status)
The status of the channel message.
|
default ChannelMessage.Builder |
status(Consumer<ChannelMessageStatusStructure.Builder> status)
The status of the channel message.
|
ChannelMessage.Builder |
subChannelId(String subChannelId)
The ID of the SubChannel.
|
ChannelMessage.Builder |
target(Collection<Target> target)
The target of a message, a sender, a user, or a bot.
|
ChannelMessage.Builder |
target(Consumer<Target.Builder>... target)
The target of a message, a sender, a user, or a bot.
|
ChannelMessage.Builder |
target(Target... target)
The target of a message, a sender, a user, or a bot.
|
ChannelMessage.Builder |
type(ChannelMessageType type)
The message type.
|
ChannelMessage.Builder |
type(String type)
The message type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildChannelMessage.Builder channelArn(String channelArn)
The ARN of the channel.
channelArn - The ARN of the channel.ChannelMessage.Builder messageId(String messageId)
The ID of a message.
messageId - The ID of a message.ChannelMessage.Builder content(String content)
The content of the channel message. 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 content of the channel message. 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.ChannelMessage.Builder metadata(String metadata)
The message metadata.
metadata - The message metadata.ChannelMessage.Builder type(String type)
The message type.
type - The message type.ChannelMessageType,
ChannelMessageTypeChannelMessage.Builder type(ChannelMessageType type)
The message type.
type - The message type.ChannelMessageType,
ChannelMessageTypeChannelMessage.Builder createdTimestamp(Instant createdTimestamp)
The time at which the message was created.
createdTimestamp - The time at which the message was created.ChannelMessage.Builder lastEditedTimestamp(Instant lastEditedTimestamp)
The time at which a message was edited.
lastEditedTimestamp - The time at which a message was edited.ChannelMessage.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)
The time at which a message was updated.
lastUpdatedTimestamp - The time at which a message was updated.ChannelMessage.Builder sender(Identity sender)
The message sender.
sender - The message sender.default ChannelMessage.Builder sender(Consumer<Identity.Builder> sender)
The message sender.
This is a convenience method that creates an instance of theIdentity.Builder avoiding the need to
create one manually via Identity.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to sender(Identity).
sender - a consumer that will call methods on Identity.Buildersender(Identity)ChannelMessage.Builder redacted(Boolean redacted)
Hides the content of a message.
redacted - Hides the content of a message.ChannelMessage.Builder persistence(String persistence)
The persistence setting for a channel message.
persistence - The persistence setting for a channel message.ChannelMessagePersistenceType,
ChannelMessagePersistenceTypeChannelMessage.Builder persistence(ChannelMessagePersistenceType persistence)
The persistence setting for a channel message.
persistence - The persistence setting for a channel message.ChannelMessagePersistenceType,
ChannelMessagePersistenceTypeChannelMessage.Builder status(ChannelMessageStatusStructure status)
The status of the channel message.
status - The status of the channel message.default ChannelMessage.Builder status(Consumer<ChannelMessageStatusStructure.Builder> status)
The status of the channel message.
This is a convenience method that creates an instance of theChannelMessageStatusStructure.Builder
avoiding the need to create one manually via ChannelMessageStatusStructure.builder().
When the Consumer completes, SdkBuilder.build() is called
immediately and its result is passed to status(ChannelMessageStatusStructure).
status - a consumer that will call methods on ChannelMessageStatusStructure.Builderstatus(ChannelMessageStatusStructure)ChannelMessage.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.ChannelMessage.Builder subChannelId(String subChannelId)
The ID of the SubChannel.
subChannelId - The ID of the SubChannel.ChannelMessage.Builder contentType(String contentType)
The content type of the channel 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 channel 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.ChannelMessage.Builder target(Collection<Target> target)
The target of a message, a sender, a user, or a bot. 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.
target - The target of a message, a sender, a user, or a bot. 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.ChannelMessage.Builder target(Target... target)
The target of a message, a sender, a user, or a bot. 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.
target - The target of a message, a sender, a user, or a bot. 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.ChannelMessage.Builder target(Consumer<Target.Builder>... target)
The target of a message, a sender, a user, or a bot. 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 via Target.builder().
When the Consumer completes,
SdkBuilder.build() is called immediately
and its result is passed to #target(List.
target - a consumer that will call methods on
Target.Builder#target(java.util.Collection) Copyright © 2023. All rights reserved.