IntentState class
Input properties used for looking up and filtering Intent resources.
Constructors
-
IntentState({Input<
String?> ? arn, Input<String?> ? checksum, Input<IntentConclusionStatement?> ? conclusionStatement, Input<IntentConfirmationPrompt?> ? confirmationPrompt, Input<bool?> ? createVersion, Input<String?> ? createdDate, Input<String?> ? description, Input<IntentDialogCodeHook?> ? dialogCodeHook, Input<IntentFollowUpPrompt?> ? followUpPrompt, Input<IntentFulfillmentActivity?> ? fulfillmentActivity, Input<String?> ? lastUpdatedDate, Input<String?> ? name, Input<String?> ? parentIntentSignature, Input<String?> ? region, Input<IntentRejectionStatement?> ? rejectionStatement, Input<List< ? sampleUtterances, Input<String> ?>List< ? slots, Input<IntentSlot> ?>String?> ? version}) -
Creates a new IntentState.
arnThe ARN of the Lex intent.checksumChecksum identifying the version of the intent that was created. The checksum is notconclusionStatementThe statement that you want Amazon Lex to convey to the userconfirmationPromptPrompts the user to confirm the intent. This question shouldcreateVersionDetermines if a new slot type version is created when the initialcreatedDateThe date when the intent version was created.descriptionA description of the intent. Must be less than or equal to 200 characters in length.dialogCodeHookSpecifies a Lambda function to invoke for each user input. You canfollowUpPromptAmazon Lex uses this prompt to solicit additional activity afterfulfillmentActivityDescribes how the intent is fulfilled. For example, after alastUpdatedDateThe date when the $LATEST version of this intent was updated.nameThe name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.parentIntentSignatureA unique identifier for the built-in intent to base thisregionRegion where this resource will be managed. Defaults to the Region set in the provider configuration.rejectionStatementWhen the user answers "no" to the question defined insampleUtterancesAn array of utterances (strings) that a user might say to signalslotsAn list of intent slots. At runtime, Amazon Lex elicits required slot valuesversionThe version of the bot.const -
IntentState.fromMap(Map<
String, dynamic> map) -
factory
Properties
-
arn
→ Input<
String?> ? -
The ARN of the Lex intent.
final
-
checksum
→ Input<
String?> ? -
Checksum identifying the version of the intent that was created. The checksum is not
included as an argument because the resource will add it automatically when updating the intent.
final
-
conclusionStatement
→ Input<
IntentConclusionStatement?> ? -
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. ThefollowUpPromptandconclusionStatementare mutually exclusive. You can specify only one. Attributes are documented under statement.final -
confirmationPrompt
→ Input<
IntentConfirmationPrompt?> ? -
Prompts the user to confirm the intent. This question should
have a yes or no answer. You you must provide both the
rejectionStatementandconfirmationPrompt, or neither. Attributes are documented under prompt.final -
createdDate
→ Input<
String?> ? -
The date when the intent version was created.
final
-
createVersion
→ Input<
bool?> ? -
Determines if a new slot type version is created when the initial
resource is created and on each update. Defaults to
false.final -
description
→ Input<
String?> ? -
A description of the intent. Must be less than or equal to 200 characters in length.
final
-
dialogCodeHook
→ Input<
IntentDialogCodeHook?> ? -
Specifies a Lambda function to invoke for each user input. You can
invoke this Lambda function to personalize user interaction. Attributes are documented under code_hook.
final
-
followUpPrompt
→ Input<
IntentFollowUpPrompt?> ? -
Amazon Lex uses this prompt to solicit additional activity after
fulfilling an intent. For example, after the OrderPizza intent is fulfilled, you might prompt the
user to order a drink. The
followUpPromptfield and theconclusionStatementfield are mutually exclusive. You can specify only one. Attributes are documented under follow_up_prompt.final -
fulfillmentActivity
→ Input<
IntentFulfillmentActivity?> ? -
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. Attributes are documented under fulfillment_activity.final - hashCode → int
-
The hash code for this object.
no setterinherited
-
lastUpdatedDate
→ Input<
String?> ? -
The date when the $LATEST version of this intent was updated.
final
-
name
→ Input<
String?> ? -
The name of the intent, not case sensitive. Must be less than or equal to 100 characters in length.
final
-
parentIntentSignature
→ Input<
String?> ? -
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.
final
-
region
→ Input<
String?> ? -
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
-
rejectionStatement
→ Input<
IntentRejectionStatement?> ? -
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 therejectionStatementand theconfirmationPrompt, or neither. Attributes are documented under statement.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
sampleUtterances
→ Input<
List< ?String> ?> -
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. Must have between 1 and 10 items in the list, and each item must be less than or equal to 200 characters in length.
final
-
slots
→ Input<
List< ?IntentSlot> ?> -
An list of intent slots. At runtime, Amazon Lex elicits required slot values
from the user using prompts defined in the slots. Attributes are documented under slot.
final
-
version
→ Input<
String?> ? -
The version of the bot.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited