Interface CreateIntentVersionResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<CreateIntentVersionResponse.Builder,
,CreateIntentVersionResponse> LexModelBuildingResponse.Builder
,SdkBuilder<CreateIntentVersionResponse.Builder,
,CreateIntentVersionResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
CreateIntentVersionResponse
-
Method Summary
Modifier and TypeMethodDescriptionChecksum of the intent version created.conclusionStatement
(Consumer<Statement.Builder> conclusionStatement) After the Lambda function specified in thefulfillmentActivity
field fulfills the intent, Amazon Lex conveys this statement to the user.conclusionStatement
(Statement conclusionStatement) After the Lambda function specified in thefulfillmentActivity
field fulfills the intent, Amazon Lex conveys this statement to the user.confirmationPrompt
(Consumer<Prompt.Builder> confirmationPrompt) If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.confirmationPrompt
(Prompt confirmationPrompt) If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.createdDate
(Instant createdDate) The date that the intent was created.description
(String description) A description of the intent.dialogCodeHook
(Consumer<CodeHook.Builder> dialogCodeHook) If defined, Amazon Lex invokes this Lambda function for each user input.dialogCodeHook
(CodeHook dialogCodeHook) If defined, Amazon Lex invokes this Lambda function for each user input.followUpPrompt
(Consumer<FollowUpPrompt.Builder> followUpPrompt) If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.followUpPrompt
(FollowUpPrompt followUpPrompt) If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.fulfillmentActivity
(Consumer<FulfillmentActivity.Builder> fulfillmentActivity) Describes how the intent is fulfilled.fulfillmentActivity
(FulfillmentActivity fulfillmentActivity) Describes how the intent is fulfilled.inputContexts
(Collection<InputContext> inputContexts) An array ofInputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.inputContexts
(Consumer<InputContext.Builder>... inputContexts) An array ofInputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.inputContexts
(InputContext... inputContexts) An array ofInputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.kendraConfiguration
(Consumer<KendraConfiguration.Builder> kendraConfiguration) Configuration information, if any, for connecting an Amazon Kendra index with theAMAZON.KendraSearchIntent
intent.kendraConfiguration
(KendraConfiguration kendraConfiguration) Configuration information, if any, for connecting an Amazon Kendra index with theAMAZON.KendraSearchIntent
intent.lastUpdatedDate
(Instant lastUpdatedDate) The date that the intent was updated.The name of the intent.outputContexts
(Collection<OutputContext> outputContexts) An array ofOutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.outputContexts
(Consumer<OutputContext.Builder>... outputContexts) An array ofOutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.outputContexts
(OutputContext... outputContexts) An array ofOutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.parentIntentSignature
(String parentIntentSignature) A unique identifier for a built-in intent.rejectionStatement
(Consumer<Statement.Builder> rejectionStatement) If the user answers "no" to the question defined inconfirmationPrompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled.rejectionStatement
(Statement rejectionStatement) If the user answers "no" to the question defined inconfirmationPrompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled.sampleUtterances
(String... sampleUtterances) An array of sample utterances configured for the intent.sampleUtterances
(Collection<String> sampleUtterances) An array of sample utterances configured for the intent.slots
(Collection<Slot> slots) An array of slot types that defines the information required to fulfill the intent.slots
(Consumer<Slot.Builder>... slots) An array of slot types that defines the information required to fulfill the intent.An array of slot types that defines the information required to fulfill the intent.The version number assigned to the new version of the intent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
name
The name of the intent.
- Parameters:
name
- The name of the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
A description of the intent.
- Parameters:
description
- A description of the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
An array of slot types that defines the information required to fulfill the intent.
- Parameters:
slots
- An array of slot types that defines the information required to fulfill the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
An array of slot types that defines the information required to fulfill the intent.
- Parameters:
slots
- An array of slot types that defines the information required to fulfill the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
An array of slot types that defines the information required to fulfill the intent.
This is a convenience method that creates an instance of theSlot.Builder
avoiding the need to create one manually viaSlot.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toslots(List<Slot>)
.- Parameters:
slots
- a consumer that will call methods onSlot.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sampleUtterances
An array of sample utterances configured for the intent.
- Parameters:
sampleUtterances
- An array of sample utterances configured for the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleUtterances
An array of sample utterances configured for the intent.
- Parameters:
sampleUtterances
- An array of sample utterances configured for the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationPrompt
If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.
- Parameters:
confirmationPrompt
- If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationPrompt
default CreateIntentVersionResponse.Builder confirmationPrompt(Consumer<Prompt.Builder> confirmationPrompt) If defined, the prompt that Amazon Lex uses to confirm the user's intent before fulfilling it.
This is a convenience method that creates an instance of thePrompt.Builder
avoiding the need to create one manually viaPrompt.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconfirmationPrompt(Prompt)
.- Parameters:
confirmationPrompt
- a consumer that will call methods onPrompt.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
rejectionStatement
If the user answers "no" to the question defined in
confirmationPrompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled.- Parameters:
rejectionStatement
- If the user answers "no" to the question defined inconfirmationPrompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rejectionStatement
default CreateIntentVersionResponse.Builder rejectionStatement(Consumer<Statement.Builder> rejectionStatement) If the user answers "no" to the question defined in
This is a convenience method that creates an instance of theconfirmationPrompt
, Amazon Lex responds with this statement to acknowledge that the intent was canceled.Statement.Builder
avoiding the need to create one manually viaStatement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed torejectionStatement(Statement)
.- Parameters:
rejectionStatement
- a consumer that will call methods onStatement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
followUpPrompt
If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.
- Parameters:
followUpPrompt
- If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
followUpPrompt
default CreateIntentVersionResponse.Builder followUpPrompt(Consumer<FollowUpPrompt.Builder> followUpPrompt) If defined, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.
This is a convenience method that creates an instance of theFollowUpPrompt.Builder
avoiding the need to create one manually viaFollowUpPrompt.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofollowUpPrompt(FollowUpPrompt)
.- Parameters:
followUpPrompt
- a consumer that will call methods onFollowUpPrompt.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
conclusionStatement
After the Lambda function specified in the
fulfillmentActivity
field fulfills the intent, Amazon Lex conveys this statement to the user.- Parameters:
conclusionStatement
- After the Lambda function specified in thefulfillmentActivity
field fulfills the intent, Amazon Lex conveys this statement to the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conclusionStatement
default CreateIntentVersionResponse.Builder conclusionStatement(Consumer<Statement.Builder> conclusionStatement) After the Lambda function specified in the
This is a convenience method that creates an instance of thefulfillmentActivity
field fulfills the intent, Amazon Lex conveys this statement to the user.Statement.Builder
avoiding the need to create one manually viaStatement.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toconclusionStatement(Statement)
.- Parameters:
conclusionStatement
- a consumer that will call methods onStatement.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
dialogCodeHook
If defined, Amazon Lex invokes this Lambda function for each user input.
- Parameters:
dialogCodeHook
- If defined, Amazon Lex invokes this Lambda function for each user input.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogCodeHook
default CreateIntentVersionResponse.Builder dialogCodeHook(Consumer<CodeHook.Builder> dialogCodeHook) If defined, Amazon Lex invokes this Lambda function for each user input.
This is a convenience method that creates an instance of theCodeHook.Builder
avoiding the need to create one manually viaCodeHook.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todialogCodeHook(CodeHook)
.- Parameters:
dialogCodeHook
- a consumer that will call methods onCodeHook.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
fulfillmentActivity
Describes how the intent is fulfilled.
- Parameters:
fulfillmentActivity
- Describes how the intent is fulfilled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentActivity
default CreateIntentVersionResponse.Builder fulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity) Describes how the intent is fulfilled.
This is a convenience method that creates an instance of theFulfillmentActivity.Builder
avoiding the need to create one manually viaFulfillmentActivity.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofulfillmentActivity(FulfillmentActivity)
.- Parameters:
fulfillmentActivity
- a consumer that will call methods onFulfillmentActivity.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
parentIntentSignature
A unique identifier for a built-in intent.
- Parameters:
parentIntentSignature
- A unique identifier for a built-in intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDate
The date that the intent was updated.
- Parameters:
lastUpdatedDate
- The date that the intent was updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdDate
The date that the intent was created.
- Parameters:
createdDate
- The date that the intent was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
version
The version number assigned to the new version of the intent.
- Parameters:
version
- The version number assigned to the new version of the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksum
Checksum of the intent version created.
- Parameters:
checksum
- Checksum of the intent version created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
Configuration information, if any, for connecting an Amazon Kendra index with the
AMAZON.KendraSearchIntent
intent.- Parameters:
kendraConfiguration
- Configuration information, if any, for connecting an Amazon Kendra index with theAMAZON.KendraSearchIntent
intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
default CreateIntentVersionResponse.Builder kendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration) Configuration information, if any, for connecting an Amazon Kendra index with the
This is a convenience method that creates an instance of theAMAZON.KendraSearchIntent
intent.KendraConfiguration.Builder
avoiding the need to create one manually viaKendraConfiguration.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tokendraConfiguration(KendraConfiguration)
.- Parameters:
kendraConfiguration
- a consumer that will call methods onKendraConfiguration.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
inputContexts
An array of
InputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.- Parameters:
inputContexts
- An array ofInputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputContexts
An array of
InputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.- Parameters:
inputContexts
- An array ofInputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
inputContexts
An array of
This is a convenience method that creates an instance of theInputContext
objects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.InputContext.Builder
avoiding the need to create one manually viaInputContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toinputContexts(List<InputContext>)
.- Parameters:
inputContexts
- a consumer that will call methods onInputContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
outputContexts
An array of
OutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.- Parameters:
outputContexts
- An array ofOutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputContexts
An array of
OutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.- Parameters:
outputContexts
- An array ofOutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
outputContexts
CreateIntentVersionResponse.Builder outputContexts(Consumer<OutputContext.Builder>... outputContexts) An array of
This is a convenience method that creates an instance of theOutputContext
objects that lists the contexts that the intent activates when the intent is fulfilled.OutputContext.Builder
avoiding the need to create one manually viaOutputContext.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tooutputContexts(List<OutputContext>)
.- Parameters:
outputContexts
- a consumer that will call methods onOutputContext.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-