« blib/lib/Paws/LexModelsV2/IntentClosingSetting.pm
↑ Summary
blib/lib/Paws/LexModelsV2/IntentFilter.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::LexModelsV2::IntentConfirmationSetting; | ||
| 3 | use Moose; | ||
| 4 | has DeclinationResponse => (is => 'ro', isa => 'Paws::LexModelsV2::ResponseSpecification', request_name => 'declinationResponse', traits => ['NameInRequest'], required => 1); | ||
| 5 | has PromptSpecification => (is => 'ro', isa => 'Paws::LexModelsV2::PromptSpecification', request_name => 'promptSpecification', traits => ['NameInRequest'], required => 1); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::LexModelsV2::IntentConfirmationSetting | ||
| 14 | |||
| 15 | =head1 USAGE | ||
| 16 | |||
| 17 | This class represents one of two things: | ||
| 18 | |||
| 19 | =head3 Arguments in a call to a service | ||
| 20 | |||
| 21 | Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. | ||
| 22 | Each attribute should be used as a named argument in the calls that expect this type of object. | ||
| 23 | |||
| 24 | As an example, if Att1 is expected to be a Paws::LexModelsV2::IntentConfirmationSetting object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { DeclinationResponse => $value, ..., PromptSpecification => $value }); | ||
| 27 | |||
| 28 | =head3 Results returned from an API call | ||
| 29 | |||
| 30 | Use accessors for each attribute. If Att1 is expected to be an Paws::LexModelsV2::IntentConfirmationSetting object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->DeclinationResponse | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | Provides a prompt for making sure that the user is ready for the intent | ||
| 38 | to be fulfilled. | ||
| 39 | |||
| 40 | =head1 ATTRIBUTES | ||
| 41 | |||
| 42 | |||
| 43 | =head2 B<REQUIRED> DeclinationResponse => L<Paws::LexModelsV2::ResponseSpecification> | ||
| 44 | |||
| 45 | When the user answers "no" to the question defined in | ||
| 46 | C<promptSpecification>, Amazon Lex responds with this response to | ||
| 47 | acknowledge that the intent was canceled. | ||
| 48 | |||
| 49 | |||
| 50 | =head2 B<REQUIRED> PromptSpecification => L<Paws::LexModelsV2::PromptSpecification> | ||
| 51 | |||
| 52 | Prompts the user to confirm the intent. This question should have a yes | ||
| 53 | or no answer. | ||
| 54 | |||
| 55 | Amazon Lex uses this prompt to ensure that the user acknowledges that | ||
| 56 | the intent is ready for fulfillment. For example, with the | ||
| 57 | C<OrderPizza> intent, you might want to confirm that the order is | ||
| 58 | correct before placing it. For other intents, such as intents that | ||
| 59 | simply respond to user questions, you might not need to ask the user | ||
| 60 | for confirmation before providing the information. | ||
| 61 | |||
| 62 | |||
| 63 | |||
| 64 | =head1 SEE ALSO | ||
| 65 | |||
| 66 | This class forms part of L<Paws>, describing an object used in L<Paws::LexModelsV2> | ||
| 67 | |||
| 68 | =head1 BUGS and CONTRIBUTIONS | ||
| 69 | |||
| 70 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 71 | |||
| 72 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 73 | |||
| 74 | =cut | ||
| 75 |