Interface GetIntentResponse.Builder
-
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<GetIntentResponse.Builder,GetIntentResponse>,LexModelBuildingResponse.Builder,SdkBuilder<GetIntentResponse.Builder,GetIntentResponse>,SdkPojo,SdkResponse.Builder
- Enclosing class:
- GetIntentResponse
public static interface GetIntentResponse.Builder extends LexModelBuildingResponse.Builder, SdkPojo, CopyableBuilder<GetIntentResponse.Builder,GetIntentResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description GetIntentResponse.Builderchecksum(String checksum)Checksum of the intent.default GetIntentResponse.BuilderconclusionStatement(Consumer<Statement.Builder> conclusionStatement)After the Lambda function specified in thefulfillmentActivityelement fulfills the intent, Amazon Lex conveys this statement to the user.GetIntentResponse.BuilderconclusionStatement(Statement conclusionStatement)After the Lambda function specified in thefulfillmentActivityelement fulfills the intent, Amazon Lex conveys this statement to the user.default GetIntentResponse.BuilderconfirmationPrompt(Consumer<Prompt.Builder> confirmationPrompt)If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request.GetIntentResponse.BuilderconfirmationPrompt(Prompt confirmationPrompt)If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request.GetIntentResponse.BuildercreatedDate(Instant createdDate)The date that the intent was created.GetIntentResponse.Builderdescription(String description)A description of the intent.default GetIntentResponse.BuilderdialogCodeHook(Consumer<CodeHook.Builder> dialogCodeHook)If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input.GetIntentResponse.BuilderdialogCodeHook(CodeHook dialogCodeHook)If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input.default GetIntentResponse.BuilderfollowUpPrompt(Consumer<FollowUpPrompt.Builder> followUpPrompt)If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.GetIntentResponse.BuilderfollowUpPrompt(FollowUpPrompt followUpPrompt)If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled.default GetIntentResponse.BuilderfulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity)Describes how the intent is fulfilled.GetIntentResponse.BuilderfulfillmentActivity(FulfillmentActivity fulfillmentActivity)Describes how the intent is fulfilled.GetIntentResponse.BuilderinputContexts(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.GetIntentResponse.BuilderinputContexts(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.GetIntentResponse.BuilderinputContexts(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 GetIntentResponse.BuilderkendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration)Configuration information, if any, to connect to an Amazon Kendra index with theAMAZON.KendraSearchIntentintent.GetIntentResponse.BuilderkendraConfiguration(KendraConfiguration kendraConfiguration)Configuration information, if any, to connect to an Amazon Kendra index with theAMAZON.KendraSearchIntentintent.GetIntentResponse.BuilderlastUpdatedDate(Instant lastUpdatedDate)The date that the intent was updated.GetIntentResponse.Buildername(String name)The name of the intent.GetIntentResponse.BuilderoutputContexts(Collection<OutputContext> outputContexts)An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.GetIntentResponse.BuilderoutputContexts(Consumer<OutputContext.Builder>... outputContexts)An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.GetIntentResponse.BuilderoutputContexts(OutputContext... outputContexts)An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.GetIntentResponse.BuilderparentIntentSignature(String parentIntentSignature)A unique identifier for a built-in intent.default GetIntentResponse.BuilderrejectionStatement(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.GetIntentResponse.BuilderrejectionStatement(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.GetIntentResponse.BuildersampleUtterances(String... sampleUtterances)An array of sample utterances configured for the intent.GetIntentResponse.BuildersampleUtterances(Collection<String> sampleUtterances)An array of sample utterances configured for the intent.GetIntentResponse.Builderslots(Collection<Slot> slots)An array of intent slots configured for the intent.GetIntentResponse.Builderslots(Consumer<Slot.Builder>... slots)An array of intent slots configured for the intent.GetIntentResponse.Builderslots(Slot... slots)An array of intent slots configured for the intent.GetIntentResponse.Builderversion(String version)The 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 Detail
-
name
GetIntentResponse.Builder name(String 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
GetIntentResponse.Builder description(String 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
GetIntentResponse.Builder slots(Collection<Slot> slots)
An array of intent slots configured for the intent.
- Parameters:
slots- An array of intent slots configured for the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
GetIntentResponse.Builder slots(Slot... slots)
An array of intent slots configured for the intent.
- Parameters:
slots- An array of intent slots configured for the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
GetIntentResponse.Builder slots(Consumer<Slot.Builder>... slots)
An array of intent slots 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 to#slots(List.) - 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:
#slots(java.util.Collection)
-
sampleUtterances
GetIntentResponse.Builder sampleUtterances(Collection<String> 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
GetIntentResponse.Builder sampleUtterances(String... 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
GetIntentResponse.Builder confirmationPrompt(Prompt confirmationPrompt)
If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
- Parameters:
confirmationPrompt- If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationPrompt
default GetIntentResponse.Builder confirmationPrompt(Consumer<Prompt.Builder> confirmationPrompt)
If defined in the bot, Amazon Lex uses prompt to confirm the intent before fulfilling the user's request. For more information, see PutIntent.
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:
confirmationPrompt(Prompt)
-
rejectionStatement
GetIntentResponse.Builder rejectionStatement(Statement 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 GetIntentResponse.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.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:
rejectionStatement(Statement)
-
followUpPrompt
GetIntentResponse.Builder followUpPrompt(FollowUpPrompt followUpPrompt)
If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
- Parameters:
followUpPrompt- If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
followUpPrompt
default GetIntentResponse.Builder followUpPrompt(Consumer<FollowUpPrompt.Builder> followUpPrompt)
If defined in the bot, Amazon Lex uses this prompt to solicit additional user activity after the intent is fulfilled. For more information, see PutIntent.
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:
followUpPrompt(FollowUpPrompt)
-
conclusionStatement
GetIntentResponse.Builder conclusionStatement(Statement conclusionStatement)
After the Lambda function specified in the
fulfillmentActivityelement fulfills the intent, Amazon Lex conveys this statement to the user.- Parameters:
conclusionStatement- After the Lambda function specified in thefulfillmentActivityelement 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 GetIntentResponse.Builder conclusionStatement(Consumer<Statement.Builder> conclusionStatement)
After the Lambda function specified in the
This is a convenience method that creates an instance of thefulfillmentActivityelement 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:
conclusionStatement(Statement)
-
dialogCodeHook
GetIntentResponse.Builder dialogCodeHook(CodeHook dialogCodeHook)
If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
- Parameters:
dialogCodeHook- If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogCodeHook
default GetIntentResponse.Builder dialogCodeHook(Consumer<CodeHook.Builder> dialogCodeHook)
If defined in the bot, Amazon Amazon Lex invokes this Lambda function for each user input. For more information, see PutIntent.
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:
dialogCodeHook(CodeHook)
-
fulfillmentActivity
GetIntentResponse.Builder fulfillmentActivity(FulfillmentActivity fulfillmentActivity)
Describes how the intent is fulfilled. For more information, see PutIntent.
- Parameters:
fulfillmentActivity- Describes how the intent is fulfilled. For more information, see PutIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentActivity
default GetIntentResponse.Builder fulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity)
Describes how the intent is fulfilled. For more information, see PutIntent.
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:
fulfillmentActivity(FulfillmentActivity)
-
parentIntentSignature
GetIntentResponse.Builder parentIntentSignature(String 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
GetIntentResponse.Builder lastUpdatedDate(Instant lastUpdatedDate)
The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.
- Parameters:
lastUpdatedDate- The date that the intent was updated. When you create a resource, the creation date and the last updated date are the same.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createdDate
GetIntentResponse.Builder createdDate(Instant 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
GetIntentResponse.Builder version(String version)
The version of the intent.
- Parameters:
version- The version of the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksum
GetIntentResponse.Builder checksum(String checksum)
Checksum of the intent.
- Parameters:
checksum- Checksum of the intent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
GetIntentResponse.Builder kendraConfiguration(KendraConfiguration kendraConfiguration)
Configuration information, if any, to connect to an Amazon Kendra index with the
AMAZON.KendraSearchIntentintent.- Parameters:
kendraConfiguration- Configuration information, if any, to connect to an Amazon Kendra index with theAMAZON.KendraSearchIntentintent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
default GetIntentResponse.Builder kendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration)
Configuration information, if any, to connect to an Amazon Kendra index with 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:
kendraConfiguration(KendraConfiguration)
-
inputContexts
GetIntentResponse.Builder inputContexts(Collection<InputContext> 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
GetIntentResponse.Builder inputContexts(InputContext... 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
GetIntentResponse.Builder inputContexts(Consumer<InputContext.Builder>... 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 to#inputContexts(List.) - 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:
#inputContexts(java.util.Collection)
-
outputContexts
GetIntentResponse.Builder outputContexts(Collection<OutputContext> 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
GetIntentResponse.Builder outputContexts(OutputContext... 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
GetIntentResponse.Builder outputContexts(Consumer<OutputContext.Builder>... 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 to#outputContexts(List.) - 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:
#outputContexts(java.util.Collection)
-
-