Interface SendChannelMessageRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,ChimeSdkMessagingRequest.Builder,CopyableBuilder<SendChannelMessageRequest.Builder,SendChannelMessageRequest>,SdkBuilder<SendChannelMessageRequest.Builder,SendChannelMessageRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- SendChannelMessageRequest
public static interface SendChannelMessageRequest.Builder extends ChimeSdkMessagingRequest.Builder, SdkPojo, CopyableBuilder<SendChannelMessageRequest.Builder,SendChannelMessageRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SendChannelMessageRequest.BuilderchannelArn(String channelArn)The ARN of the channel.SendChannelMessageRequest.BuilderchimeBearer(String chimeBearer)The ARN of theAppInstanceUserorAppInstanceBotthat makes the API call.SendChannelMessageRequest.BuilderclientRequestToken(String clientRequestToken)TheIdempotencytoken for each client request.SendChannelMessageRequest.Buildercontent(String content)The content of the channel message.SendChannelMessageRequest.BuildercontentType(String contentType)The content type of the channel message.SendChannelMessageRequest.BuildermessageAttributes(Map<String,MessageAttributeValue> messageAttributes)The attributes for the message, used for message filtering along with aFilterRuledefined in thePushNotificationPreferences.SendChannelMessageRequest.Buildermetadata(String metadata)The optional metadata for each message.SendChannelMessageRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)SendChannelMessageRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)SendChannelMessageRequest.Builderpersistence(String persistence)Boolean that controls whether the message is persisted on the back end.SendChannelMessageRequest.Builderpersistence(ChannelMessagePersistenceType persistence)Boolean that controls whether the message is persisted on the back end.default SendChannelMessageRequest.BuilderpushNotification(Consumer<PushNotificationConfiguration.Builder> pushNotification)The push notification configuration of the message.SendChannelMessageRequest.BuilderpushNotification(PushNotificationConfiguration pushNotification)The push notification configuration of the message.SendChannelMessageRequest.BuildersubChannelId(String subChannelId)The ID of the SubChannel in the request.SendChannelMessageRequest.Buildertarget(Collection<Target> target)The target of a message.SendChannelMessageRequest.Buildertarget(Consumer<Target.Builder>... target)The target of a message.SendChannelMessageRequest.Buildertarget(Target... target)The target of a message.SendChannelMessageRequest.Buildertype(String type)The type of message,STANDARDorCONTROL.SendChannelMessageRequest.Buildertype(ChannelMessageType type)The type of message,STANDARDorCONTROL.-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.services.chimesdkmessaging.model.ChimeSdkMessagingRequest.Builder
build
-
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
-
channelArn
SendChannelMessageRequest.Builder channelArn(String 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.
-
content
SendChannelMessageRequest.Builder content(String content)
The content of the channel message.
- Parameters:
content- The content of the channel message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
type
SendChannelMessageRequest.Builder type(String type)
The type of message,
STANDARDorCONTROL.STANDARDmessages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.CONTROLmessages are limited to 30 bytes and do not contain metadata.- Parameters:
type- The type of message,STANDARDorCONTROL.STANDARDmessages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.CONTROLmessages are limited to 30 bytes and do not contain metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChannelMessageType,ChannelMessageType
-
type
SendChannelMessageRequest.Builder type(ChannelMessageType type)
The type of message,
STANDARDorCONTROL.STANDARDmessages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.CONTROLmessages are limited to 30 bytes and do not contain metadata.- Parameters:
type- The type of message,STANDARDorCONTROL.STANDARDmessages can be up to 4KB in size and contain metadata. Metadata is arbitrary, and you can use it in a variety of ways, such as containing a link to an attachment.CONTROLmessages are limited to 30 bytes and do not contain metadata.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChannelMessageType,ChannelMessageType
-
persistence
SendChannelMessageRequest.Builder persistence(String persistence)
Boolean that controls whether the message is persisted on the back end. Required.
- Parameters:
persistence- Boolean that controls whether the message is persisted on the back end. Required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChannelMessagePersistenceType,ChannelMessagePersistenceType
-
persistence
SendChannelMessageRequest.Builder persistence(ChannelMessagePersistenceType persistence)
Boolean that controls whether the message is persisted on the back end. Required.
- Parameters:
persistence- Boolean that controls whether the message is persisted on the back end. Required.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ChannelMessagePersistenceType,ChannelMessagePersistenceType
-
metadata
SendChannelMessageRequest.Builder metadata(String metadata)
The optional metadata for each message.
- Parameters:
metadata- The optional metadata for each message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientRequestToken
SendChannelMessageRequest.Builder clientRequestToken(String clientRequestToken)
The
Idempotencytoken for each client request.- Parameters:
clientRequestToken- TheIdempotencytoken for each client request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chimeBearer
SendChannelMessageRequest.Builder chimeBearer(String chimeBearer)
The ARN of the
AppInstanceUserorAppInstanceBotthat makes the API call.- Parameters:
chimeBearer- The ARN of theAppInstanceUserorAppInstanceBotthat makes the API call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pushNotification
SendChannelMessageRequest.Builder pushNotification(PushNotificationConfiguration pushNotification)
The push notification configuration of the message.
- Parameters:
pushNotification- The push notification configuration of the message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
pushNotification
default SendChannelMessageRequest.Builder pushNotification(Consumer<PushNotificationConfiguration.Builder> pushNotification)
The push notification configuration of the message.
This is a convenience method that creates an instance of thePushNotificationConfiguration.Builderavoiding the need to create one manually viaPushNotificationConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topushNotification(PushNotificationConfiguration).- Parameters:
pushNotification- a consumer that will call methods onPushNotificationConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
pushNotification(PushNotificationConfiguration)
-
messageAttributes
SendChannelMessageRequest.Builder messageAttributes(Map<String,MessageAttributeValue> messageAttributes)
The attributes for the message, used for message filtering along with a
FilterRuledefined in thePushNotificationPreferences.- Parameters:
messageAttributes- The attributes for the message, used for message filtering along with aFilterRuledefined in thePushNotificationPreferences.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
subChannelId
SendChannelMessageRequest.Builder subChannelId(String subChannelId)
The ID of the SubChannel in the request.
- Parameters:
subChannelId- The ID of the SubChannel in the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
contentType
SendChannelMessageRequest.Builder contentType(String contentType)
The content type of the channel message.
- Parameters:
contentType- The content type of the channel message.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
target
SendChannelMessageRequest.Builder target(Collection<Target> target)
The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. 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. Must be a member of the channel, such as another user, a bot, or the sender. 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
SendChannelMessageRequest.Builder target(Target... target)
The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. 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. Must be a member of the channel, such as another user, a bot, or the sender. 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
SendChannelMessageRequest.Builder target(Consumer<Target.Builder>... target)
The target of a message. Must be a member of the channel, such as another user, a bot, or the sender. 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)
-
overrideConfiguration
SendChannelMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
SendChannelMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-