public static interface ChannelMessageSummary.Builder extends SdkPojo, CopyableBuilder<ChannelMessageSummary.Builder,ChannelMessageSummary>
| Modifier and Type | Method and Description |
|---|---|
ChannelMessageSummary.Builder |
content(String content)
The content of the channel message.
|
ChannelMessageSummary.Builder |
contentType(String contentType)
The content type of the channel message listed in the summary.
|
ChannelMessageSummary.Builder |
createdTimestamp(Instant createdTimestamp)
The time at which the message summary was created.
|
ChannelMessageSummary.Builder |
lastEditedTimestamp(Instant lastEditedTimestamp)
The time at which a message was last edited.
|
ChannelMessageSummary.Builder |
lastUpdatedTimestamp(Instant lastUpdatedTimestamp)
The time at which a message was last updated.
|
ChannelMessageSummary.Builder |
messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the channel message.
|
ChannelMessageSummary.Builder |
messageId(String messageId)
The ID of the message.
|
ChannelMessageSummary.Builder |
metadata(String metadata)
The metadata of the message.
|
ChannelMessageSummary.Builder |
redacted(Boolean redacted)
Indicates whether a message was redacted.
|
default ChannelMessageSummary.Builder |
sender(Consumer<Identity.Builder> sender)
The message sender.
|
ChannelMessageSummary.Builder |
sender(Identity sender)
The message sender.
|
ChannelMessageSummary.Builder |
status(ChannelMessageStatusStructure status)
The message status.
|
default ChannelMessageSummary.Builder |
status(Consumer<ChannelMessageStatusStructure.Builder> status)
The message status.
|
ChannelMessageSummary.Builder |
target(Collection<Target> target)
The target of a message, a sender, a user, or a bot.
|
ChannelMessageSummary.Builder |
target(Consumer<Target.Builder>... target)
The target of a message, a sender, a user, or a bot.
|
ChannelMessageSummary.Builder |
target(Target... target)
The target of a message, a sender, a user, or a bot.
|
ChannelMessageSummary.Builder |
type(ChannelMessageType type)
The type of message.
|
ChannelMessageSummary.Builder |
type(String type)
The type of message.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildChannelMessageSummary.Builder messageId(String messageId)
The ID of the message.
messageId - The ID of the message.ChannelMessageSummary.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.ChannelMessageSummary.Builder metadata(String metadata)
The metadata of the message.
metadata - The metadata of the message.ChannelMessageSummary.Builder type(String type)
The type of message.
type - The type of message.ChannelMessageType,
ChannelMessageTypeChannelMessageSummary.Builder type(ChannelMessageType type)
The type of message.
type - The type of message.ChannelMessageType,
ChannelMessageTypeChannelMessageSummary.Builder createdTimestamp(Instant createdTimestamp)
The time at which the message summary was created.
createdTimestamp - The time at which the message summary was created.ChannelMessageSummary.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)
The time at which a message was last updated.
lastUpdatedTimestamp - The time at which a message was last updated.ChannelMessageSummary.Builder lastEditedTimestamp(Instant lastEditedTimestamp)
The time at which a message was last edited.
lastEditedTimestamp - The time at which a message was last edited.ChannelMessageSummary.Builder sender(Identity sender)
The message sender.
sender - The message sender.default ChannelMessageSummary.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)ChannelMessageSummary.Builder redacted(Boolean redacted)
Indicates whether a message was redacted.
redacted - Indicates whether a message was redacted.ChannelMessageSummary.Builder status(ChannelMessageStatusStructure status)
The message status. The status value is SENT for messages sent to a channel without a channel
flow. For channels associated with channel flow, the value determines the processing stage.
status - The message status. The status value is SENT for messages sent to a channel without a
channel flow. For channels associated with channel flow, the value determines the processing stage.default ChannelMessageSummary.Builder status(Consumer<ChannelMessageStatusStructure.Builder> status)
The message status. The status value is SENT for messages sent to a channel without a channel
flow. For channels associated with channel flow, the value determines the processing stage.
ChannelMessageStatusStructure.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)ChannelMessageSummary.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.ChannelMessageSummary.Builder contentType(String contentType)
The content type of the channel message listed in the summary. 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 listed in the summary. 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.ChannelMessageSummary.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.ChannelMessageSummary.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.ChannelMessageSummary.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.