Interface SendMessageRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<SendMessageRequest.Builder,
,SendMessageRequest> QConnectRequest.Builder
,SdkBuilder<SendMessageRequest.Builder,
,SendMessageRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
SendMessageRequest
-
Method Summary
Modifier and TypeMethodDescriptionassistantId
(String assistantId) The identifier of the Amazon Q in Connect assistant.clientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.default SendMessageRequest.Builder
configuration
(Consumer<MessageConfiguration.Builder> configuration) The configuration of the SendMessage request.configuration
(MessageConfiguration configuration) The configuration of the SendMessage request.default SendMessageRequest.Builder
conversationContext
(Consumer<ConversationContext.Builder> conversationContext) The conversation context before the Amazon Q in Connect session.conversationContext
(ConversationContext conversationContext) The conversation context before the Amazon Q in Connect session.default SendMessageRequest.Builder
message
(Consumer<MessageInput.Builder> message) The message data to submit to the Amazon Q in Connect session.message
(MessageInput message) The message data to submit to the Amazon Q in Connect session.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.The identifier of the Amazon Q in Connect session.The message type.type
(MessageType type) The message type.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.qconnect.model.QConnectRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
assistantId
The identifier of the Amazon Q in Connect assistant.
- Parameters:
assistantId
- The identifier of the Amazon Q in Connect assistant.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the Amazon Q in Connect session.
- Parameters:
sessionId
- The identifier of the Amazon Q in Connect session.- 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:
-
message
The message data to submit to the Amazon Q in Connect session.
- Parameters:
message
- The message data to submit to the Amazon Q in Connect session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
message
The message data to submit to the Amazon Q in Connect session.
This is a convenience method that creates an instance of theMessageInput.Builder
avoiding the need to create one manually viaMessageInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tomessage(MessageInput)
.- Parameters:
message
- a consumer that will call methods onMessageInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conversationContext
The conversation context before the Amazon Q in Connect session.
- Parameters:
conversationContext
- The conversation context before the Amazon Q in Connect session.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conversationContext
default SendMessageRequest.Builder conversationContext(Consumer<ConversationContext.Builder> conversationContext) The conversation context before the Amazon Q in Connect session.
This is a convenience method that creates an instance of theConversationContext.Builder
avoiding the need to create one manually viaConversationContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconversationContext(ConversationContext)
.- Parameters:
conversationContext
- a consumer that will call methods onConversationContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
configuration
The configuration of the SendMessage request.
- Parameters:
configuration
- The configuration of the SendMessage request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
configuration
default SendMessageRequest.Builder configuration(Consumer<MessageConfiguration.Builder> configuration) The configuration of the SendMessage request.
This is a convenience method that creates an instance of theMessageConfiguration.Builder
avoiding the need to create one manually viaMessageConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfiguration(MessageConfiguration)
.- Parameters:
configuration
- a consumer that will call methods onMessageConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field.For more information about idempotency, see Making retries safe with idempotent APIs.
- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field.For more information about idempotency, see Making retries safe with idempotent APIs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
SendMessageRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SendMessageRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-