Interface ChatSyncRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<ChatSyncRequest.Builder,
,ChatSyncRequest> QBusinessRequest.Builder
,SdkBuilder<ChatSyncRequest.Builder,
,ChatSyncRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
ChatSyncRequest
-
Method Summary
Modifier and TypeMethodDescriptiondefault ChatSyncRequest.Builder
actionExecution
(Consumer<ActionExecution.Builder> actionExecution) A request from an end user to perform an Amazon Q Business plugin action.actionExecution
(ActionExecution actionExecution) A request from an end user to perform an Amazon Q Business plugin action.applicationId
(String applicationId) The identifier of the Amazon Q Business application linked to the Amazon Q Business conversation.attachments
(Collection<AttachmentInput> attachments) A list of files uploaded directly during chat.attachments
(Consumer<AttachmentInput.Builder>... attachments) A list of files uploaded directly during chat.attachments
(AttachmentInput... attachments) A list of files uploaded directly during chat.default ChatSyncRequest.Builder
attributeFilter
(Consumer<AttributeFilter.Builder> attributeFilter) Enables filtering of Amazon Q Business web experience responses based on document attributes or metadata fields.attributeFilter
(AttributeFilter attributeFilter) Enables filtering of Amazon Q Business web experience responses based on document attributes or metadata fields.default ChatSyncRequest.Builder
authChallengeResponse
(Consumer<AuthChallengeResponse.Builder> authChallengeResponse) An authentication verification event response by a third party authentication server to Amazon Q Business.authChallengeResponse
(AuthChallengeResponse authChallengeResponse) An authentication verification event response by a third party authentication server to Amazon Q Business.The chat modes available to an Amazon Q Business end user.The chat modes available to an Amazon Q Business end user.default ChatSyncRequest.Builder
chatModeConfiguration
(Consumer<ChatModeConfiguration.Builder> chatModeConfiguration) The chat mode configuration for an Amazon Q Business application.chatModeConfiguration
(ChatModeConfiguration chatModeConfiguration) The chat mode configuration for an Amazon Q Business application.clientToken
(String clientToken) A token that you provide to identify a chat request.conversationId
(String conversationId) The identifier of the Amazon Q Business conversation.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.parentMessageId
(String parentMessageId) The identifier of the previous system message in a conversation.userGroups
(String... userGroups) The groups that a user associated with the chat input belongs to.userGroups
(Collection<String> userGroups) The groups that a user associated with the chat input belongs to.The identifier of the user attached to the chat input.userMessage
(String userMessage) A end user message in a conversation.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.qbusiness.model.QBusinessRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
applicationId
The identifier of the Amazon Q Business application linked to the Amazon Q Business conversation.
- Parameters:
applicationId
- The identifier of the Amazon Q Business application linked to the Amazon Q Business conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userId
The identifier of the user attached to the chat input.
- Parameters:
userId
- The identifier of the user attached to the chat input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userGroups
The groups that a user associated with the chat input belongs to.
- Parameters:
userGroups
- The groups that a user associated with the chat input belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userGroups
The groups that a user associated with the chat input belongs to.
- Parameters:
userGroups
- The groups that a user associated with the chat input belongs to.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
userMessage
A end user message in a conversation.
- Parameters:
userMessage
- A end user message in a conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
A list of files uploaded directly during chat. You can upload a maximum of 5 files of upto 10 MB each.
- Parameters:
attachments
- A list of files uploaded directly during chat. You can upload a maximum of 5 files of upto 10 MB each.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
A list of files uploaded directly during chat. You can upload a maximum of 5 files of upto 10 MB each.
- Parameters:
attachments
- A list of files uploaded directly during chat. You can upload a maximum of 5 files of upto 10 MB each.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attachments
A list of files uploaded directly during chat. You can upload a maximum of 5 files of upto 10 MB each.
This is a convenience method that creates an instance of theAttachmentInput.Builder
avoiding the need to create one manually viaAttachmentInput.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattachments(List<AttachmentInput>)
.- Parameters:
attachments
- a consumer that will call methods onAttachmentInput.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
actionExecution
A request from an end user to perform an Amazon Q Business plugin action.
- Parameters:
actionExecution
- A request from an end user to perform an Amazon Q Business plugin action.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
actionExecution
A request from an end user to perform an Amazon Q Business plugin action.
This is a convenience method that creates an instance of theActionExecution.Builder
avoiding the need to create one manually viaActionExecution.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toactionExecution(ActionExecution)
.- Parameters:
actionExecution
- a consumer that will call methods onActionExecution.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
authChallengeResponse
An authentication verification event response by a third party authentication server to Amazon Q Business.
- Parameters:
authChallengeResponse
- An authentication verification event response by a third party authentication server to Amazon Q Business.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
authChallengeResponse
default ChatSyncRequest.Builder authChallengeResponse(Consumer<AuthChallengeResponse.Builder> authChallengeResponse) An authentication verification event response by a third party authentication server to Amazon Q Business.
This is a convenience method that creates an instance of theAuthChallengeResponse.Builder
avoiding the need to create one manually viaAuthChallengeResponse.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toauthChallengeResponse(AuthChallengeResponse)
.- Parameters:
authChallengeResponse
- a consumer that will call methods onAuthChallengeResponse.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conversationId
The identifier of the Amazon Q Business conversation.
- Parameters:
conversationId
- The identifier of the Amazon Q Business conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
parentMessageId
The identifier of the previous system message in a conversation.
- Parameters:
parentMessageId
- The identifier of the previous system message in a conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilter
Enables filtering of Amazon Q Business web experience responses based on document attributes or metadata fields.
- Parameters:
attributeFilter
- Enables filtering of Amazon Q Business web experience responses based on document attributes or metadata fields.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
attributeFilter
Enables filtering of Amazon Q Business web experience responses based on document attributes or metadata fields.
This is a convenience method that creates an instance of theAttributeFilter.Builder
avoiding the need to create one manually viaAttributeFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toattributeFilter(AttributeFilter)
.- Parameters:
attributeFilter
- a consumer that will call methods onAttributeFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
chatMode
The chat modes available to an Amazon Q Business end user.
-
RETRIEVAL_MODE
- The default chat mode for an Amazon Q Business application. When this mode is enabled, Amazon Q Business generates responses only from data sources connected to an Amazon Q Business application. -
CREATOR_MODE
- By selecting this mode, users can choose to generate responses only from the LLM knowledge, without consulting connected data sources, for a chat request. -
PLUGIN_MODE
- By selecting this mode, users can choose to use plugins in chat.
For more information, see Admin controls and guardrails, Plugins, and Conversation settings.
- Parameters:
chatMode
- The chat modes available to an Amazon Q Business end user.-
RETRIEVAL_MODE
- The default chat mode for an Amazon Q Business application. When this mode is enabled, Amazon Q Business generates responses only from data sources connected to an Amazon Q Business application. -
CREATOR_MODE
- By selecting this mode, users can choose to generate responses only from the LLM knowledge, without consulting connected data sources, for a chat request. -
PLUGIN_MODE
- By selecting this mode, users can choose to use plugins in chat.
For more information, see Admin controls and guardrails, Plugins, and Conversation settings.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
chatMode
The chat modes available to an Amazon Q Business end user.
-
RETRIEVAL_MODE
- The default chat mode for an Amazon Q Business application. When this mode is enabled, Amazon Q Business generates responses only from data sources connected to an Amazon Q Business application. -
CREATOR_MODE
- By selecting this mode, users can choose to generate responses only from the LLM knowledge, without consulting connected data sources, for a chat request. -
PLUGIN_MODE
- By selecting this mode, users can choose to use plugins in chat.
For more information, see Admin controls and guardrails, Plugins, and Conversation settings.
- Parameters:
chatMode
- The chat modes available to an Amazon Q Business end user.-
RETRIEVAL_MODE
- The default chat mode for an Amazon Q Business application. When this mode is enabled, Amazon Q Business generates responses only from data sources connected to an Amazon Q Business application. -
CREATOR_MODE
- By selecting this mode, users can choose to generate responses only from the LLM knowledge, without consulting connected data sources, for a chat request. -
PLUGIN_MODE
- By selecting this mode, users can choose to use plugins in chat.
For more information, see Admin controls and guardrails, Plugins, and Conversation settings.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
chatModeConfiguration
The chat mode configuration for an Amazon Q Business application.
- Parameters:
chatModeConfiguration
- The chat mode configuration for an Amazon Q Business application.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
chatModeConfiguration
default ChatSyncRequest.Builder chatModeConfiguration(Consumer<ChatModeConfiguration.Builder> chatModeConfiguration) The chat mode configuration for an Amazon Q Business application.
This is a convenience method that creates an instance of theChatModeConfiguration.Builder
avoiding the need to create one manually viaChatModeConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tochatModeConfiguration(ChatModeConfiguration)
.- Parameters:
chatModeConfiguration
- a consumer that will call methods onChatModeConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
clientToken
A token that you provide to identify a chat request.
- Parameters:
clientToken
- A token that you provide to identify a chat request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
ChatSyncRequest.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
ChatSyncRequest.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.
-