Interface PutIntentResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<PutIntentResponse.Builder,,PutIntentResponse> LexModelBuildingResponse.Builder,SdkBuilder<PutIntentResponse.Builder,,PutIntentResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
PutIntentResponse
-
Method Summary
Modifier and TypeMethodDescriptionChecksum of the$LATESTversion of the intent created or updated.default PutIntentResponse.BuilderconclusionStatement(Consumer<Statement.Builder> conclusionStatement) After the Lambda function specified in thefulfillmentActivityintent fulfills the intent, Amazon Lex conveys this statement to the user.conclusionStatement(Statement conclusionStatement) After the Lambda function specified in thefulfillmentActivityintent fulfills the intent, Amazon Lex conveys this statement to the user.default PutIntentResponse.BuilderconfirmationPrompt(Consumer<Prompt.Builder> confirmationPrompt) If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.confirmationPrompt(Prompt confirmationPrompt) If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.createdDate(Instant createdDate) The date that the intent was created.createVersion(Boolean createVersion) Trueif a new version of the intent was created.description(String description) A description of the intent.default PutIntentResponse.BuilderdialogCodeHook(Consumer<CodeHook.Builder> dialogCodeHook) If defined in the intent, Amazon Lex invokes this Lambda function for each user input.dialogCodeHook(CodeHook dialogCodeHook) If defined in the intent, Amazon Lex invokes this Lambda function for each user input.default PutIntentResponse.BuilderfollowUpPrompt(Consumer<FollowUpPrompt.Builder> followUpPrompt) If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.followUpPrompt(FollowUpPrompt followUpPrompt) If defined in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.default PutIntentResponse.BuilderfulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity) If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.fulfillmentActivity(FulfillmentActivity fulfillmentActivity) If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.inputContexts(Collection<InputContext> inputContexts) An array ofInputContextobjects 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 ofInputContextobjects 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 ofInputContextobjects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.default PutIntentResponse.BuilderkendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration) Configuration information, if any, required to connect to an Amazon Kendra index and use theAMAZON.KendraSearchIntentintent.kendraConfiguration(KendraConfiguration kendraConfiguration) Configuration information, if any, required to connect to an Amazon Kendra index and use theAMAZON.KendraSearchIntentintent.lastUpdatedDate(Instant lastUpdatedDate) The date that the intent was updated.The name of the intent.outputContexts(Collection<OutputContext> outputContexts) An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.outputContexts(Consumer<OutputContext.Builder>... outputContexts) An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.outputContexts(OutputContext... outputContexts) An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.parentIntentSignature(String parentIntentSignature) A unique identifier for the built-in intent that this intent is based on.default PutIntentResponse.BuilderrejectionStatement(Consumer<Statement.Builder> rejectionStatement) If the user answers "no" to the question defined inconfirmationPromptAmazon Lex responds with this statement to acknowledge that the intent was canceled.rejectionStatement(Statement rejectionStatement) If the user answers "no" to the question defined inconfirmationPromptAmazon Lex responds with this statement to acknowledge that the intent was canceled.sampleUtterances(String... sampleUtterances) An array of sample utterances that are configured for the intent.sampleUtterances(Collection<String> sampleUtterances) An array of sample utterances that are configured for the intent.slots(Collection<Slot> slots) An array of intent slots that are configured for the intent.slots(Consumer<Slot.Builder>... slots) An array of intent slots that are configured for the intent.An array of intent slots that are configured for the intent.The version of the intent.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.lexmodelbuilding.model.LexModelBuildingResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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 intent slots that are configured for the intent.
- Parameters:
slots- An array of intent slots that are configured for the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
An array of intent slots that are configured for the intent.
- Parameters:
slots- An array of intent slots that are configured for the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
An array of intent slots that are configured for the intent.
This is a convenience method that creates an instance of theSlot.Builderavoiding the need to create one manually viaSlot.builder().When the
Consumercompletes,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 that are configured for the intent.
- Parameters:
sampleUtterances- An array of sample utterances that are 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 that are configured for the intent.
- Parameters:
sampleUtterances- An array of sample utterances that are configured for the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationPrompt
If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.
- Parameters:
confirmationPrompt- If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationPrompt
If defined in the intent, Amazon Lex prompts the user to confirm the intent before fulfilling it.
This is a convenience method that creates an instance of thePrompt.Builderavoiding the need to create one manually viaPrompt.builder().When the
Consumercompletes,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
confirmationPromptAmazon Lex responds with this statement to acknowledge that the intent was canceled.- Parameters:
rejectionStatement- If the user answers "no" to the question defined inconfirmationPromptAmazon 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 PutIntentResponse.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 theconfirmationPromptAmazon Lex responds with this statement to acknowledge that the intent was canceled.Statement.Builderavoiding the need to create one manually viaStatement.builder().When the
Consumercompletes,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 in the intent, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.
- Parameters:
followUpPrompt- If defined in the intent, 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
If defined in the intent, 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.Builderavoiding the need to create one manually viaFollowUpPrompt.builder().When the
Consumercompletes,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
fulfillmentActivityintent fulfills the intent, Amazon Lex conveys this statement to the user.- Parameters:
conclusionStatement- After the Lambda function specified in thefulfillmentActivityintent 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 PutIntentResponse.Builder conclusionStatement(Consumer<Statement.Builder> conclusionStatement) After the Lambda function specified in the
This is a convenience method that creates an instance of thefulfillmentActivityintent fulfills the intent, Amazon Lex conveys this statement to the user.Statement.Builderavoiding the need to create one manually viaStatement.builder().When the
Consumercompletes,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 in the intent, Amazon Lex invokes this Lambda function for each user input.
- Parameters:
dialogCodeHook- If defined in the intent, 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
If defined in the intent, Amazon Lex invokes this Lambda function for each user input.
This is a convenience method that creates an instance of theCodeHook.Builderavoiding the need to create one manually viaCodeHook.builder().When the
Consumercompletes,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
If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.
- Parameters:
fulfillmentActivity- If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentActivity
default PutIntentResponse.Builder fulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity) If defined in the intent, Amazon Lex invokes this Lambda function to fulfill the intent after the user provides all of the information required by the intent.
This is a convenience method that creates an instance of theFulfillmentActivity.Builderavoiding the need to create one manually viaFulfillmentActivity.builder().When the
Consumercompletes,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 the built-in intent that this intent is based on.
- Parameters:
parentIntentSignature- A unique identifier for the built-in intent that this intent is based on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lastUpdatedDate
The date that the intent was updated. When you create a resource, the creation date and last update dates are the same.
- Parameters:
lastUpdatedDate- The date that the intent was updated. When you create a resource, the creation date and last update dates are the same.- 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 of the intent. For a new intent, the version is always
$LATEST.- Parameters:
version- The version of the intent. For a new intent, the version is always$LATEST.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksum
Checksum of the
$LATESTversion of the intent created or updated.- Parameters:
checksum- Checksum of the$LATESTversion of the intent created or updated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createVersion
Trueif a new version of the intent was created. If thecreateVersionfield was not specified in the request, thecreateVersionfield is set to false in the response.- Parameters:
createVersion-Trueif a new version of the intent was created. If thecreateVersionfield was not specified in the request, thecreateVersionfield is set to false in the response.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
Configuration information, if any, required to connect to an Amazon Kendra index and use the
AMAZON.KendraSearchIntentintent.- Parameters:
kendraConfiguration- Configuration information, if any, required to connect to an Amazon Kendra index and use theAMAZON.KendraSearchIntentintent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
default PutIntentResponse.Builder kendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration) Configuration information, if any, required to connect to an Amazon Kendra index and use the
This is a convenience method that creates an instance of theAMAZON.KendraSearchIntentintent.KendraConfiguration.Builderavoiding the need to create one manually viaKendraConfiguration.builder().When the
Consumercompletes,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
InputContextobjects 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 ofInputContextobjects 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
InputContextobjects 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 ofInputContextobjects 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 theInputContextobjects that lists the contexts that must be active for Amazon Lex to choose the intent in a conversation with the user.InputContext.Builderavoiding the need to create one manually viaInputContext.builder().When the
Consumercompletes,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
OutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.- Parameters:
outputContexts- An array ofOutputContextobjects 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
OutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.- Parameters:
outputContexts- An array ofOutputContextobjects 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
This is a convenience method that creates an instance of theOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.OutputContext.Builderavoiding the need to create one manually viaOutputContext.builder().When the
Consumercompletes,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:
-