blib/lib/Paws/LexRuntimeV2/ConfigurationEvent.pm untested

filter: Statementstmt 0.0% 0 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
CRAP 2.0
1 # Generated by default/object.tt
2 package Paws::LexRuntimeV2::ConfigurationEvent;
3 use Moose;
4 has ClientTimestampMillis => (is => 'ro', isa => 'Int', request_name => 'clientTimestampMillis', traits => ['NameInRequest']);
5 has DisablePlayback => (is => 'ro', isa => 'Bool', request_name => 'disablePlayback', traits => ['NameInRequest']);
6 has EventId => (is => 'ro', isa => 'Str', request_name => 'eventId', traits => ['NameInRequest']);
7 has RequestAttributes => (is => 'ro', isa => 'Paws::LexRuntimeV2::StringMap', request_name => 'requestAttributes', traits => ['NameInRequest']);
8 has ResponseContentType => (is => 'ro', isa => 'Str', request_name => 'responseContentType', traits => ['NameInRequest'], required => 1);
9 has SessionState => (is => 'ro', isa => 'Paws::LexRuntimeV2::SessionState', request_name => 'sessionState', traits => ['NameInRequest']);
10 has WelcomeMessages => (is => 'ro', isa => 'ArrayRef[Paws::LexRuntimeV2::Message]', request_name => 'welcomeMessages', traits => ['NameInRequest']);
11  
12 1;
13  
14 ### main pod documentation begin ###
15  
16 =head1 NAME
17  
18 Paws::LexRuntimeV2::ConfigurationEvent
19  
20 =head1 USAGE
21  
22 This class represents one of two things:
23  
24 =head3 Arguments in a call to a service
25  
26 Use the attributes of this class as arguments to methods. You shouldn't make instances of this class.
27 Each attribute should be used as a named argument in the calls that expect this type of object.
28  
29 As an example, if Att1 is expected to be a Paws::LexRuntimeV2::ConfigurationEvent object:
30  
31 $service_obj->Method(Att1 => { ClientTimestampMillis => $value, ..., WelcomeMessages => $value });
32  
33 =head3 Results returned from an API call
34  
35 Use accessors for each attribute. If Att1 is expected to be an Paws::LexRuntimeV2::ConfigurationEvent object:
36  
37 $result = $service_obj->Method(...);
38 $result->Att1->ClientTimestampMillis
39  
40 =head1 DESCRIPTION
41  
42 The initial event sent from the application to Amazon Lex V2 to
43 configure the conversation, including session and request attributes
44 and the response content type.
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 ClientTimestampMillis => Int
50  
51 A timestamp set by the client of the date and time that the event was
52 sent to Amazon Lex V2.
53  
54  
55 =head2 DisablePlayback => Bool
56  
57 Determines whether Amazon Lex V2 should send audio responses to the
58 client application. When this parameter if C<false>, the client
59 application needs to create responses for the user.
60  
61  
62 =head2 EventId => Str
63  
64 A unique identifier that your application assigns to the event. You can
65 use this to identify events in logs.
66  
67  
68 =head2 RequestAttributes => L<Paws::LexRuntimeV2::StringMap>
69  
70 Request-specific information passed between the client application and
71 Amazon Lex V2.
72  
73 The namespace C<x-amz-lex:> is reserved for special attributes. Don't
74 create any request attributes for prefix C<x-amz-lex:>.
75  
76  
77 =head2 B<REQUIRED> ResponseContentType => Str
78  
79 The message that Amazon Lex V2 returns in the response can be either
80 text or speech based on the C<responseContentType> value.
81  
82 =over
83  
84 =item *
85  
86 If the value is C<text/plain;charset=utf-8>, Amazon Lex V2 returns text
87 in the response.
88  
89 =item *
90  
91 If the value begins with C<audio/>, Amazon Lex V2 returns speech in the
92 response. Amazon Lex V2 uses Amazon Polly to generate the speech using
93 the configuration that you specified in the C<requestContentType>
94 parameter. For example, if you specify C<audio/mpeg> as the value,
95 Amazon Lex V2 returns speech in the MPEG format.
96  
97 =item *
98  
99 If the value is C<audio/pcm>, the speech returned is audio/pcm in
100 16-bit, little-endian format.
101  
102 =item *
103  
104 The following are the accepted values:
105  
106 =over
107  
108 =item *
109  
110 audio/mpeg
111  
112 =item *
113  
114 audio/ogg
115  
116 =item *
117  
118 audio/pcm
119  
120 =item *
121  
122 audio/* (defaults to mpeg)
123  
124 =item *
125  
126 text/plain; charset=utf-8
127  
128 =back
129  
130 =back
131  
132  
133  
134 =head2 SessionState => L<Paws::LexRuntimeV2::SessionState>
135  
136  
137  
138  
139 =head2 WelcomeMessages => ArrayRef[L<Paws::LexRuntimeV2::Message>]
140  
141 A list of messages to send to the user.
142  
143  
144  
145 =head1 SEE ALSO
146  
147 This class forms part of L<Paws>, describing an object used in L<Paws::LexRuntimeV2>
148  
149 =head1 BUGS and CONTRIBUTIONS
150  
151 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
152  
153 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
154  
155 =cut
156