Interface ChannelMessage.Builder
- All Superinterfaces:
 Buildable,CopyableBuilder<ChannelMessage.Builder,,ChannelMessage> SdkBuilder<ChannelMessage.Builder,,ChannelMessage> SdkPojo
- Enclosing class:
 ChannelMessage
public static interface ChannelMessage.Builder
extends SdkPojo, CopyableBuilder<ChannelMessage.Builder,ChannelMessage> 
- 
Method Summary
Modifier and TypeMethodDescriptionchannelArn(String channelArn) The ARN of the channel.The message content.createdTimestamp(Instant createdTimestamp) The time at which the message was created.lastEditedTimestamp(Instant lastEditedTimestamp) The time at which a message was edited.lastUpdatedTimestamp(Instant lastUpdatedTimestamp) The time at which a message was updated.The ID of a message.The message metadata.persistence(String persistence) The persistence setting for a channel message.persistence(ChannelMessagePersistenceType persistence) The persistence setting for a channel message.Hides the content of a message.default ChannelMessage.Buildersender(Consumer<Identity.Builder> sender) The message sender.The message sender.The message type.type(ChannelMessageType type) The message type.Methods 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.
 
 - 
messageId
The ID of a message.
- Parameters:
 messageId- The ID of a message.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
content
The message content.
- Parameters:
 content- The message content.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
metadata
The message metadata.
- Parameters:
 metadata- The message metadata.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
type
The message type.
- Parameters:
 type- The message type.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
type
The message type.
- Parameters:
 type- The message type.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
createdTimestamp
The time at which the message was created.
- Parameters:
 createdTimestamp- The time at which the message was created.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
lastEditedTimestamp
The time at which a message was edited.
- Parameters:
 lastEditedTimestamp- The time at which a message was edited.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
lastUpdatedTimestamp
The time at which a message was updated.
- Parameters:
 lastUpdatedTimestamp- The time at which a message was updated.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
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
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:
 
 - 
redacted
Hides the content of a message.
- Parameters:
 redacted- Hides the content of a message.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 
 - 
persistence
The persistence setting for a channel message.
- Parameters:
 persistence- The persistence setting for a channel message.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 - 
persistence
The persistence setting for a channel message.
- Parameters:
 persistence- The persistence setting for a channel message.- Returns:
 - Returns a reference to this object so that method calls can be chained together.
 - See Also:
 
 
 -