blib/lib/Paws/LexRuntime/PutSessionResponse.pm untested

filter: Statementstmt 0.0% 0 / 32 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 34 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LexRuntime::PutSessionResponse;
3 use Moose;
4 has ActiveContexts => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-active-contexts');
5 has AudioStream => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'audioStream');
6 has ContentType => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'Content-Type');
7 has DialogState => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-dialog-state');
8 has EncodedMessage => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-encoded-message');
9 has IntentName => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-intent-name');
10 has Message => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-message');
11 has MessageFormat => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-message-format');
12 has SessionAttributes => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-session-attributes');
13 has SessionId => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-session-id');
14 has Slots => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-slots');
15 has SlotToElicit => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-lex-slot-to-elicit');
16 use MooseX::ClassAttribute;
17 class_has _stream_param => (is => 'ro', default => 'AudioStream');
18 has _request_id => (is => 'ro', isa => 'Str');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::LexRuntime::PutSessionResponse
26  
27 =head1 ATTRIBUTES
28  
29  
30 =head2 ActiveContexts => Str
31  
32 A list of active contexts for the session.
33  
34  
35 =head2 AudioStream => Str
36  
37 The audio version of the message to convey to the user.
38  
39  
40 =head2 ContentType => Str
41  
42 Content type as specified in the C<Accept> HTTP header in the request.
43  
44  
45 =head2 DialogState => Str
46  
47 =over
48  
49 =item *
50  
51 C<ConfirmIntent> - Amazon Lex is expecting a "yes" or "no" response to
52 confirm the intent before fulfilling an intent.
53  
54 =item *
55  
56 C<ElicitIntent> - Amazon Lex wants to elicit the user's intent.
57  
58 =item *
59  
60 C<ElicitSlot> - Amazon Lex is expecting the value of a slot for the
61 current intent.
62  
63 =item *
64  
65 C<Failed> - Conveys that the conversation with the user has failed.
66 This can happen for various reasons, including the user does not
67 provide an appropriate response to prompts from the service, or if the
68 Lambda function fails to fulfill the intent.
69  
70 =item *
71  
72 C<Fulfilled> - Conveys that the Lambda function has sucessfully
73 fulfilled the intent.
74  
75 =item *
76  
77 C<ReadyForFulfillment> - Conveys that the client has to fulfill the
78 intent.
79  
80 =back
81  
82  
83 Valid values are: C<"ElicitIntent">, C<"ConfirmIntent">, C<"ElicitSlot">, C<"Fulfilled">, C<"ReadyForFulfillment">, C<"Failed">
84 =head2 EncodedMessage => Str
85  
86 The next message that should be presented to the user.
87  
88 The C<encodedMessage> field is base-64 encoded. You must decode the
89 field before you can use the value.
90  
91  
92 =head2 IntentName => Str
93  
94 The name of the current intent.
95  
96  
97 =head2 Message => Str
98  
99 The next message that should be presented to the user.
100  
101 You can only use this field in the de-DE, en-AU, en-GB, en-US, es-419,
102 es-ES, es-US, fr-CA, fr-FR, and it-IT locales. In all other locales,
103 the C<message> field is null. You should use the C<encodedMessage>
104 field instead.
105  
106  
107 =head2 MessageFormat => Str
108  
109 The format of the response message. One of the following values:
110  
111 =over
112  
113 =item *
114  
115 C<PlainText> - The message contains plain UTF-8 text.
116  
117 =item *
118  
119 C<CustomPayload> - The message is a custom format for the client.
120  
121 =item *
122  
123 C<SSML> - The message contains text formatted for voice output.
124  
125 =item *
126  
127 C<Composite> - The message contains an escaped JSON object containing
128 one or more messages from the groups that messages were assigned to
129 when the intent was created.
130  
131 =back
132  
133  
134 Valid values are: C<"PlainText">, C<"CustomPayload">, C<"SSML">, C<"Composite">
135 =head2 SessionAttributes => Str
136  
137 Map of key/value pairs representing session-specific context
138 information.
139  
140  
141 =head2 SessionId => Str
142  
143 A unique identifier for the session.
144  
145  
146 =head2 Slots => Str
147  
148 Map of zero or more intent slots Amazon Lex detected from the user
149 input during the conversation.
150  
151 Amazon Lex creates a resolution list containing likely values for a
152 slot. The value that it returns is determined by the
153 C<valueSelectionStrategy> selected when the slot type was created or
154 updated. If C<valueSelectionStrategy> is set to C<ORIGINAL_VALUE>, the
155 value provided by the user is returned, if the user value is similar to
156 the slot values. If C<valueSelectionStrategy> is set to
157 C<TOP_RESOLUTION> Amazon Lex returns the first value in the resolution
158 list or, if there is no resolution list, null. If you don't specify a
159 C<valueSelectionStrategy> the default is C<ORIGINAL_VALUE>.
160  
161  
162 =head2 SlotToElicit => Str
163  
164 If the C<dialogState> is C<ElicitSlot>, returns the name of the slot
165 for which Amazon Lex is eliciting a value.
166  
167  
168 =head2 _request_id => Str
169  
170  
171 =cut
172