Interface RecognizeTextRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<RecognizeTextRequest.Builder,
,RecognizeTextRequest> LexRuntimeV2Request.Builder
,SdkBuilder<RecognizeTextRequest.Builder,
,RecognizeTextRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
RecognizeTextRequest
-
Method Summary
Modifier and TypeMethodDescriptionbotAliasId
(String botAliasId) The alias identifier in use for the bot that processes the request.The identifier of the bot that processes the request.The locale where the session is in use.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.requestAttributes
(Map<String, String> requestAttributes) Request-specific information passed between the client application and Amazon Lex V2The identifier of the user session that is having the conversation.default RecognizeTextRequest.Builder
sessionState
(Consumer<SessionState.Builder> sessionState) The current state of the dialog between the user and the bot.sessionState
(SessionState sessionState) The current state of the dialog between the user and the bot.The text that the user entered.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.lexruntimev2.model.LexRuntimeV2Request.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
-
botId
The identifier of the bot that processes the request.
- Parameters:
botId
- The identifier of the bot that processes the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
botAliasId
The alias identifier in use for the bot that processes the request.
- Parameters:
botAliasId
- The alias identifier in use for the bot that processes the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
localeId
The locale where the session is in use.
- Parameters:
localeId
- The locale where the session is in use.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionId
The identifier of the user session that is having the conversation.
- Parameters:
sessionId
- The identifier of the user session that is having the conversation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
text
The text that the user entered. Amazon Lex V2 interprets this text.
- Parameters:
text
- The text that the user entered. Amazon Lex V2 interprets this text.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
The current state of the dialog between the user and the bot.
- Parameters:
sessionState
- The current state of the dialog between the user and the bot.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sessionState
The current state of the dialog between the user and the bot.
This is a convenience method that creates an instance of theSessionState.Builder
avoiding the need to create one manually viaSessionState.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tosessionState(SessionState)
.- Parameters:
sessionState
- a consumer that will call methods onSessionState.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
requestAttributes
Request-specific information passed between the client application and Amazon Lex V2
The namespace
x-amz-lex:
is reserved for special attributes. Don't create any request attributes with the prefixx-amz-lex:
.- Parameters:
requestAttributes
- Request-specific information passed between the client application and Amazon Lex V2The namespace
x-amz-lex:
is reserved for special attributes. Don't create any request attributes with the prefixx-amz-lex:
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
RecognizeTextRequest.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
RecognizeTextRequest.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.
-