« blib/lib/Paws/LexRuntimeV2/DependencyFailedException.pm
↑ Summary
blib/lib/Paws/LexRuntimeV2/DisconnectionEvent.pm »
| 1 | # Generated by default/object.tt | ||
| 2 | package Paws::LexRuntimeV2::DialogAction; | ||
| 3 | use Moose; | ||
| 4 | has SlotToElicit => (is => 'ro', isa => 'Str', request_name => 'slotToElicit', traits => ['NameInRequest']); | ||
| 5 | has Type => (is => 'ro', isa => 'Str', request_name => 'type', traits => ['NameInRequest'], required => 1); | ||
| 6 | |||
| 7 | 1; | ||
| 8 | |||
| 9 | ### main pod documentation begin ### | ||
| 10 | |||
| 11 | =head1 NAME | ||
| 12 | |||
| 13 | Paws::LexRuntimeV2::DialogAction | ||
| 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::LexRuntimeV2::DialogAction object: | ||
| 25 | |||
| 26 | $service_obj->Method(Att1 => { SlotToElicit => $value, ..., Type => $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::LexRuntimeV2::DialogAction object: | ||
| 31 | |||
| 32 | $result = $service_obj->Method(...); | ||
| 33 | $result->Att1->SlotToElicit | ||
| 34 | |||
| 35 | =head1 DESCRIPTION | ||
| 36 | |||
| 37 | The next action that Amazon Lex V2 should take. | ||
| 38 | |||
| 39 | =head1 ATTRIBUTES | ||
| 40 | |||
| 41 | |||
| 42 | =head2 SlotToElicit => Str | ||
| 43 | |||
| 44 | The name of the slot that should be elicited from the user. | ||
| 45 | |||
| 46 | |||
| 47 | =head2 B<REQUIRED> Type => Str | ||
| 48 | |||
| 49 | The next action that the bot should take in its interaction with the | ||
| 50 | user. The possible values are: | ||
| 51 | |||
| 52 | =over | ||
| 53 | |||
| 54 | =item * | ||
| 55 | |||
| 56 | C<Close> - Indicates that there will not be a response from the user. | ||
| 57 | For example, the statement "Your order has been placed" does not | ||
| 58 | require a response. | ||
| 59 | |||
| 60 | =item * | ||
| 61 | |||
| 62 | C<ConfirmIntent> - The next action is asking the user if the intent is | ||
| 63 | complete and ready to be fulfilled. This is a yes/no question such as | ||
| 64 | "Place the order?" | ||
| 65 | |||
| 66 | =item * | ||
| 67 | |||
| 68 | C<Delegate> - The next action is determined by Amazon Lex V2. | ||
| 69 | |||
| 70 | =item * | ||
| 71 | |||
| 72 | C<ElicitSlot> - The next action is to elicit a slot value from the | ||
| 73 | user. | ||
| 74 | |||
| 75 | =back | ||
| 76 | |||
| 77 | |||
| 78 | |||
| 79 | |||
| 80 | =head1 SEE ALSO | ||
| 81 | |||
| 82 | This class forms part of L<Paws>, describing an object used in L<Paws::LexRuntimeV2> | ||
| 83 | |||
| 84 | =head1 BUGS and CONTRIBUTIONS | ||
| 85 | |||
| 86 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 87 | |||
| 88 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 89 | |||
| 90 | =cut | ||
| 91 |