Interface ChannelMessageSummary.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<ChannelMessageSummary.Builder,ChannelMessageSummary>,SdkBuilder<ChannelMessageSummary.Builder,ChannelMessageSummary>,SdkPojo
- Enclosing class:
- ChannelMessageSummary
public static interface ChannelMessageSummary.Builder extends SdkPojo, CopyableBuilder<ChannelMessageSummary.Builder,ChannelMessageSummary>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description ChannelMessageSummary.Buildercontent(String content)The content of the channel message.ChannelMessageSummary.BuildercontentType(String contentType)The content type of the channel message listed in the summary.ChannelMessageSummary.BuildercreatedTimestamp(Instant createdTimestamp)The time at which the message summary was created.ChannelMessageSummary.BuilderlastEditedTimestamp(Instant lastEditedTimestamp)The time at which a message was last edited.ChannelMessageSummary.BuilderlastUpdatedTimestamp(Instant lastUpdatedTimestamp)The time at which a message was last updated.ChannelMessageSummary.BuildermessageAttributes(Map<String,MessageAttributeValue> messageAttributes)The attributes for the channel message.ChannelMessageSummary.BuildermessageId(String messageId)The ID of the message.ChannelMessageSummary.Buildermetadata(String metadata)The metadata of the message.ChannelMessageSummary.Builderredacted(Boolean redacted)Indicates whether a message was redacted.default ChannelMessageSummary.Buildersender(Consumer<Identity.Builder> sender)The message sender.ChannelMessageSummary.Buildersender(Identity sender)The message sender.default ChannelMessageSummary.Builderstatus(Consumer<ChannelMessageStatusStructure.Builder> status)The message status.ChannelMessageSummary.Builderstatus(ChannelMessageStatusStructure status)The message status.ChannelMessageSummary.Buildertarget(Collection<Target> target)The target of a message, a sender, a user, or a bot.ChannelMessageSummary.Buildertarget(Consumer<Target.Builder>... target)The target of a message, a sender, a user, or a bot.ChannelMessageSummary.Buildertarget(Target... target)The target of a message, a sender, a user, or a bot.ChannelMessageSummary.Buildertype(String type)The type of message.ChannelMessageSummary.Buildertype(ChannelMessageType type)The type of message.-
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 Detail
-
messageId
ChannelMessageSummary.Builder messageId(String messageId)
The ID of the message.
- Parameters:
messageId- The ID of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
content
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
metadata
ChannelMessageSummary.Builder metadata(String metadata)
The metadata of the message.
- Parameters:
metadata- The metadata of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
ChannelMessageSummary.Builder type(String type)
The type of message.
- Parameters:
type- The type of message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChannelMessageType,ChannelMessageType
-
type
ChannelMessageSummary.Builder type(ChannelMessageType type)
The type of message.
- Parameters:
type- The type of message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChannelMessageType,ChannelMessageType
-
createdTimestamp
ChannelMessageSummary.Builder createdTimestamp(Instant createdTimestamp)
The time at which the message summary was created.
- Parameters:
createdTimestamp- The time at which the message summary was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedTimestamp
ChannelMessageSummary.Builder lastUpdatedTimestamp(Instant lastUpdatedTimestamp)
The time at which a message was last updated.
- Parameters:
lastUpdatedTimestamp- The time at which a message was last updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastEditedTimestamp
ChannelMessageSummary.Builder lastEditedTimestamp(Instant lastEditedTimestamp)
The time at which a message was last edited.
- Parameters:
lastEditedTimestamp- The time at which a message was last edited.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sender
ChannelMessageSummary.Builder sender(Identity sender)
The message sender.
- Parameters:
sender- The message sender.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sender
default ChannelMessageSummary.Builder sender(Consumer<Identity.Builder> sender)
The message sender.
This is a convenience method that creates an instance of theIdentity.Builderavoiding the need to create one manually viaIdentity.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosender(Identity).- Parameters:
sender- a consumer that will call methods onIdentity.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
sender(Identity)
-
redacted
ChannelMessageSummary.Builder redacted(Boolean redacted)
Indicates whether a message was redacted.
- Parameters:
redacted- Indicates whether a message was redacted.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
ChannelMessageSummary.Builder status(ChannelMessageStatusStructure status)
The message status. The status value is
SENTfor messages sent to a channel without a channel flow. For channels associated with channel flow, the value determines the processing stage.- Parameters:
status- The message status. The status value isSENTfor messages sent to a channel without a channel flow. For channels associated with channel flow, the value determines the processing stage.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
status
default ChannelMessageSummary.Builder status(Consumer<ChannelMessageStatusStructure.Builder> status)
The message status. The status value is
This is a convenience method that creates an instance of theSENTfor messages sent to a channel without a channel flow. For channels associated with channel flow, the value determines the processing stage.ChannelMessageStatusStructure.Builderavoiding the need to create one manually viaChannelMessageStatusStructure.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tostatus(ChannelMessageStatusStructure).- Parameters:
status- a consumer that will call methods onChannelMessageStatusStructure.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
status(ChannelMessageStatusStructure)
-
messageAttributes
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
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-msgsfor success responses andapplication/amz-chime-lex-errorfor failure responses. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.- Parameters:
contentType- The content type of the channel message listed in the summary. For Amazon Lex V2 bot responses, the content type isapplication/amz-chime-lex-msgsfor success responses andapplication/amz-chime-lex-errorfor failure responses. For more information, refer to Processing responses from an AppInstanceBot in the Amazon Chime SDK Messaging Developer Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
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.
- Parameters:
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.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
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.Builderavoiding the need to create one manually viaTarget.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#target(List.) - 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:
#target(java.util.Collection)
-
-