Interface PutIntentRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutIntentRequest.Builder,PutIntentRequest>,LexModelBuildingRequest.Builder,SdkBuilder<PutIntentRequest.Builder,PutIntentRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- PutIntentRequest
public static interface PutIntentRequest.Builder extends LexModelBuildingRequest.Builder, SdkPojo, CopyableBuilder<PutIntentRequest.Builder,PutIntentRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description PutIntentRequest.Builderchecksum(String checksum)Identifies a specific revision of the$LATESTversion.default PutIntentRequest.BuilderconclusionStatement(Consumer<Statement.Builder> conclusionStatement)The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function.PutIntentRequest.BuilderconclusionStatement(Statement conclusionStatement)The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function.default PutIntentRequest.BuilderconfirmationPrompt(Consumer<Prompt.Builder> confirmationPrompt)Prompts the user to confirm the intent.PutIntentRequest.BuilderconfirmationPrompt(Prompt confirmationPrompt)Prompts the user to confirm the intent.PutIntentRequest.BuildercreateVersion(Boolean createVersion)When set totruea new numbered version of the intent is created.PutIntentRequest.Builderdescription(String description)A description of the intent.default PutIntentRequest.BuilderdialogCodeHook(Consumer<CodeHook.Builder> dialogCodeHook)Specifies a Lambda function to invoke for each user input.PutIntentRequest.BuilderdialogCodeHook(CodeHook dialogCodeHook)Specifies a Lambda function to invoke for each user input.default PutIntentRequest.BuilderfollowUpPrompt(Consumer<FollowUpPrompt.Builder> followUpPrompt)Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent.PutIntentRequest.BuilderfollowUpPrompt(FollowUpPrompt followUpPrompt)Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent.default PutIntentRequest.BuilderfulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity)Required.PutIntentRequest.BuilderfulfillmentActivity(FulfillmentActivity fulfillmentActivity)Required.PutIntentRequest.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.PutIntentRequest.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.PutIntentRequest.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 PutIntentRequest.BuilderkendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration)Configuration information required to use theAMAZON.KendraSearchIntentintent to connect to an Amazon Kendra index.PutIntentRequest.BuilderkendraConfiguration(KendraConfiguration kendraConfiguration)Configuration information required to use theAMAZON.KendraSearchIntentintent to connect to an Amazon Kendra index.PutIntentRequest.Buildername(String name)The name of the intent.PutIntentRequest.BuilderoutputContexts(Collection<OutputContext> outputContexts)An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.PutIntentRequest.BuilderoutputContexts(Consumer<OutputContext.Builder>... outputContexts)An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.PutIntentRequest.BuilderoutputContexts(OutputContext... outputContexts)An array ofOutputContextobjects that lists the contexts that the intent activates when the intent is fulfilled.PutIntentRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)PutIntentRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)PutIntentRequest.BuilderparentIntentSignature(String parentIntentSignature)A unique identifier for the built-in intent to base this intent on.default PutIntentRequest.BuilderrejectionStatement(Consumer<Statement.Builder> rejectionStatement)When the user answers "no" to the question defined inconfirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.PutIntentRequest.BuilderrejectionStatement(Statement rejectionStatement)When the user answers "no" to the question defined inconfirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.PutIntentRequest.BuildersampleUtterances(String... sampleUtterances)An array of utterances (strings) that a user might say to signal the intent.PutIntentRequest.BuildersampleUtterances(Collection<String> sampleUtterances)An array of utterances (strings) that a user might say to signal the intent.PutIntentRequest.Builderslots(Collection<Slot> slots)An array of intent slots.PutIntentRequest.Builderslots(Consumer<Slot.Builder>... slots)An array of intent slots.PutIntentRequest.Builderslots(Slot... slots)An array of intent slots.-
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.lexmodelbuilding.model.LexModelBuildingRequest.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
name
PutIntentRequest.Builder name(String name)
The name of the intent. The name is not case sensitive.
The name can't match a built-in intent name, or a built-in intent name with "AMAZON." removed. For example, because there is a built-in intent called
AMAZON.HelpIntent, you can't create a custom intent calledHelpIntent.For a list of built-in intents, see Standard Built-in Intents in the Alexa Skills Kit.
- Parameters:
name- The name of the intent. The name is not case sensitive.The name can't match a built-in intent name, or a built-in intent name with "AMAZON." removed. For example, because there is a built-in intent called
AMAZON.HelpIntent, you can't create a custom intent calledHelpIntent.For a list of built-in intents, see Standard Built-in Intents in the Alexa Skills Kit.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
description
PutIntentRequest.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
PutIntentRequest.Builder slots(Collection<Slot> slots)
An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works.
- Parameters:
slots- An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
PutIntentRequest.Builder slots(Slot... slots)
An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works.
- Parameters:
slots- An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
slots
PutIntentRequest.Builder slots(Consumer<Slot.Builder>... slots)
An array of intent slots. At runtime, Amazon Lex elicits required slot values from the user using prompts defined in the slots. For more information, see how-it-works.
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
PutIntentRequest.Builder sampleUtterances(Collection<String> sampleUtterances)
An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas".
In each utterance, a slot name is enclosed in curly braces.
- Parameters:
sampleUtterances- An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas".In each utterance, a slot name is enclosed in curly braces.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sampleUtterances
PutIntentRequest.Builder sampleUtterances(String... sampleUtterances)
An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas".
In each utterance, a slot name is enclosed in curly braces.
- Parameters:
sampleUtterances- An array of utterances (strings) that a user might say to signal the intent. For example, "I want {PizzaSize} pizza", "Order {Quantity} {PizzaSize} pizzas".In each utterance, a slot name is enclosed in curly braces.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationPrompt
PutIntentRequest.Builder confirmationPrompt(Prompt confirmationPrompt)
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the
OrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.You you must provide both the
rejectionStatementand theconfirmationPrompt, or neither.- Parameters:
confirmationPrompt- Prompts the user to confirm the intent. This question should have a yes or no answer.Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the
OrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information.You you must provide both the
rejectionStatementand theconfirmationPrompt, or neither.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
confirmationPrompt
default PutIntentRequest.Builder confirmationPrompt(Consumer<Prompt.Builder> confirmationPrompt)
Prompts the user to confirm the intent. This question should have a yes or no answer.
Amazon Lex uses this prompt to ensure that the user acknowledges that the intent is ready for fulfillment. For example, with the
OrderPizzaintent, you might want to confirm that the order is correct before placing it. For other intents, such as intents that simply respond to user questions, you might not need to ask the user for confirmation before providing the information. This is a convenience method that creates an instance of theYou you must provide both the
rejectionStatementand theconfirmationPrompt, or neither.Prompt.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
PutIntentRequest.Builder rejectionStatement(Statement rejectionStatement)
When the user answers "no" to the question defined in
confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.You must provide both the
rejectionStatementand theconfirmationPrompt, or neither.- Parameters:
rejectionStatement- When the user answers "no" to the question defined inconfirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled.You must provide both the
rejectionStatementand theconfirmationPrompt, or neither.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
rejectionStatement
default PutIntentRequest.Builder rejectionStatement(Consumer<Statement.Builder> rejectionStatement)
When the user answers "no" to the question defined in
confirmationPrompt, Amazon Lex responds with this statement to acknowledge that the intent was canceled. This is a convenience method that creates an instance of theYou must provide both the
rejectionStatementand theconfirmationPrompt, or neither.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
PutIntentRequest.Builder followUpPrompt(FollowUpPrompt followUpPrompt)
Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the
OrderPizzaintent is fulfilled, you might prompt the user to order a drink.The action that Amazon Lex takes depends on the user's response, as follows:
-
If the user says "Yes" it responds with the clarification prompt that is configured for the bot.
-
if the user says "Yes" and continues with an utterance that triggers an intent it starts a conversation for the intent.
-
If the user says "No" it responds with the rejection statement configured for the the follow-up prompt.
-
If it doesn't recognize the utterance it repeats the follow-up prompt again.
The
followUpPromptfield and theconclusionStatementfield are mutually exclusive. You can specify only one.- Parameters:
followUpPrompt- Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after theOrderPizzaintent is fulfilled, you might prompt the user to order a drink.The action that Amazon Lex takes depends on the user's response, as follows:
-
If the user says "Yes" it responds with the clarification prompt that is configured for the bot.
-
if the user says "Yes" and continues with an utterance that triggers an intent it starts a conversation for the intent.
-
If the user says "No" it responds with the rejection statement configured for the the follow-up prompt.
-
If it doesn't recognize the utterance it repeats the follow-up prompt again.
The
followUpPromptfield and theconclusionStatementfield are mutually exclusive. You can specify only one.-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
followUpPrompt
default PutIntentRequest.Builder followUpPrompt(Consumer<FollowUpPrompt.Builder> followUpPrompt)
Amazon Lex uses this prompt to solicit additional activity after fulfilling an intent. For example, after the
OrderPizzaintent is fulfilled, you might prompt the user to order a drink.The action that Amazon Lex takes depends on the user's response, as follows:
-
If the user says "Yes" it responds with the clarification prompt that is configured for the bot.
-
if the user says "Yes" and continues with an utterance that triggers an intent it starts a conversation for the intent.
-
If the user says "No" it responds with the rejection statement configured for the the follow-up prompt.
-
If it doesn't recognize the utterance it repeats the follow-up prompt again.
The
This is a convenience method that creates an instance of thefollowUpPromptfield and theconclusionStatementfield are mutually exclusive. You can specify only one.FollowUpPrompt.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
PutIntentRequest.Builder conclusionStatement(Statement conclusionStatement)
The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function.
This element is relevant only if you provide a Lambda function in the
fulfillmentActivity. If you return the intent to the client application, you can't specify this element.The
followUpPromptandconclusionStatementare mutually exclusive. You can specify only one.- Parameters:
conclusionStatement- The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function.This element is relevant only if you provide a Lambda function in the
fulfillmentActivity. If you return the intent to the client application, you can't specify this element.The
followUpPromptandconclusionStatementare mutually exclusive. You can specify only one.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
conclusionStatement
default PutIntentRequest.Builder conclusionStatement(Consumer<Statement.Builder> conclusionStatement)
The statement that you want Amazon Lex to convey to the user after the intent is successfully fulfilled by the Lambda function.
This element is relevant only if you provide a Lambda function in the
fulfillmentActivity. If you return the intent to the client application, you can't specify this element. This is a convenience method that creates an instance of theThe
followUpPromptandconclusionStatementare mutually exclusive. You can specify only one.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
PutIntentRequest.Builder dialogCodeHook(CodeHook dialogCodeHook)
Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction.
For example, suppose your bot determines that the user is John. Your Lambda function might retrieve John's information from a backend database and prepopulate some of the values. For example, if you find that John is gluten intolerant, you might set the corresponding intent slot,
GlutenIntolerant, to true. You might find John's phone number and set the corresponding session attribute.- Parameters:
dialogCodeHook- Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction.For example, suppose your bot determines that the user is John. Your Lambda function might retrieve John's information from a backend database and prepopulate some of the values. For example, if you find that John is gluten intolerant, you might set the corresponding intent slot,
GlutenIntolerant, to true. You might find John's phone number and set the corresponding session attribute.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dialogCodeHook
default PutIntentRequest.Builder dialogCodeHook(Consumer<CodeHook.Builder> dialogCodeHook)
Specifies a Lambda function to invoke for each user input. You can invoke this Lambda function to personalize user interaction.
For example, suppose your bot determines that the user is John. Your Lambda function might retrieve John's information from a backend database and prepopulate some of the values. For example, if you find that John is gluten intolerant, you might set the corresponding intent slot,
This is a convenience method that creates an instance of theGlutenIntolerant, to true. You might find John's phone number and set the corresponding session attribute.CodeHook.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
PutIntentRequest.Builder fulfillmentActivity(FulfillmentActivity fulfillmentActivity)
Required. Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order,
fulfillmentActivitydefines how the bot places an order with a local pizza store.You might configure Amazon Lex to return all of the intent information to the client application, or direct it to invoke a Lambda function that can process the intent (for example, place an order with a pizzeria).
- Parameters:
fulfillmentActivity- Required. Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order,fulfillmentActivitydefines how the bot places an order with a local pizza store.You might configure Amazon Lex to return all of the intent information to the client application, or direct it to invoke a Lambda function that can process the intent (for example, place an order with a pizzeria).
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fulfillmentActivity
default PutIntentRequest.Builder fulfillmentActivity(Consumer<FulfillmentActivity.Builder> fulfillmentActivity)
Required. Describes how the intent is fulfilled. For example, after a user provides all of the information for a pizza order,
fulfillmentActivitydefines how the bot places an order with a local pizza store.You might configure Amazon Lex to return all of the intent information to the client application, or direct it to invoke a Lambda function that can process the intent (for example, place an order with a pizzeria).
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
PutIntentRequest.Builder parentIntentSignature(String parentIntentSignature)
A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.
- Parameters:
parentIntentSignature- A unique identifier for the built-in intent to base this intent on. To find the signature for an intent, see Standard Built-in Intents in the Alexa Skills Kit.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
checksum
PutIntentRequest.Builder checksum(String checksum)
Identifies a specific revision of the
$LATESTversion.When you create a new intent, leave the
checksumfield blank. If you specify a checksum you get aBadRequestExceptionexception.When you want to update a intent, set the
checksumfield to the checksum of the most recent revision of the$LATESTversion. If you don't specify thechecksumfield, or if the checksum does not match the$LATESTversion, you get aPreconditionFailedExceptionexception.- Parameters:
checksum- Identifies a specific revision of the$LATESTversion.When you create a new intent, leave the
checksumfield blank. If you specify a checksum you get aBadRequestExceptionexception.When you want to update a intent, set the
checksumfield to the checksum of the most recent revision of the$LATESTversion. If you don't specify thechecksumfield, or if the checksum does not match the$LATESTversion, you get aPreconditionFailedExceptionexception.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
createVersion
PutIntentRequest.Builder createVersion(Boolean createVersion)
When set to
truea new numbered version of the intent is created. This is the same as calling theCreateIntentVersionoperation. If you do not specifycreateVersion, the default isfalse.- Parameters:
createVersion- When set totruea new numbered version of the intent is created. This is the same as calling theCreateIntentVersionoperation. If you do not specifycreateVersion, the default isfalse.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
PutIntentRequest.Builder kendraConfiguration(KendraConfiguration kendraConfiguration)
Configuration information required to use the
AMAZON.KendraSearchIntentintent to connect to an Amazon Kendra index. For more information, see AMAZON.KendraSearchIntent.- Parameters:
kendraConfiguration- Configuration information required to use theAMAZON.KendraSearchIntentintent to connect to an Amazon Kendra index. For more information, see AMAZON.KendraSearchIntent.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
kendraConfiguration
default PutIntentRequest.Builder kendraConfiguration(Consumer<KendraConfiguration.Builder> kendraConfiguration)
Configuration information required to use the
This is a convenience method that creates an instance of theAMAZON.KendraSearchIntentintent to connect to an Amazon Kendra index. For more information, see AMAZON.KendraSearchIntent.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
PutIntentRequest.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
PutIntentRequest.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
PutIntentRequest.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
PutIntentRequest.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
PutIntentRequest.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
PutIntentRequest.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)
-
overrideConfiguration
PutIntentRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
PutIntentRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-