blib/lib/Paws/LexModelsV2/ListSlots.pm untested

filter: Statementstmt 0.0% 0 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 28 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LexModelsV2::ListSlots;
3 use Moose;
4 has BotId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botId', required => 1);
5 has BotVersion => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botVersion', required => 1);
6 has Filters => (is => 'ro', isa => 'ArrayRef[Paws::LexModelsV2::SlotFilter]', traits => ['NameInRequest'], request_name => 'filters');
7 has IntentId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'intentId', required => 1);
8 has LocaleId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'localeId', required => 1);
9 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults');
10 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken');
11 has SortBy => (is => 'ro', isa => 'Paws::LexModelsV2::SlotSortBy', traits => ['NameInRequest'], request_name => 'sortBy');
12  
13 use MooseX::ClassAttribute;
14  
15 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListSlots');
16 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/intents/{intentId}/slots/');
17 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
18 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::ListSlotsResponse');
19 1;
20  
21 ### main pod documentation begin ###
22  
23 =head1 NAME
24  
25 Paws::LexModelsV2::ListSlots - Arguments for method ListSlots on L<Paws::LexModelsV2>
26  
27 =head1 DESCRIPTION
28  
29 This class represents the parameters used for calling the method ListSlots on the
30 L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class
31 as arguments to method ListSlots.
32  
33 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListSlots.
34  
35 =head1 SYNOPSIS
36  
37 my $models-v2-lex = Paws->service('LexModelsV2');
38 my $ListSlotsResponse = $models - v2 -lex->ListSlots(
39 BotId => 'MyId',
40 BotVersion => 'MyBotVersion',
41 IntentId => 'MyId',
42 LocaleId => 'MyLocaleId',
43 Filters => [
44 {
45 Name => 'SlotName', # values: SlotName
46 Operator => 'CO', # values: CO, EQ
47 Values => [
48 'MyFilterValue', ... # min: 1, max: 100
49 ], # min: 1, max: 1
50  
51 },
52 ...
53 ], # OPTIONAL
54 MaxResults => 1, # OPTIONAL
55 NextToken => 'MyNextToken', # OPTIONAL
56 SortBy => {
57 Attribute => 'SlotName', # values: SlotName, LastUpdatedDateTime
58 Order => 'Ascending', # values: Ascending, Descending
59  
60 }, # OPTIONAL
61 );
62  
63 # Results:
64 my $BotId = $ListSlotsResponse->BotId;
65 my $BotVersion = $ListSlotsResponse->BotVersion;
66 my $IntentId = $ListSlotsResponse->IntentId;
67 my $LocaleId = $ListSlotsResponse->LocaleId;
68 my $NextToken = $ListSlotsResponse->NextToken;
69 my $SlotSummaries = $ListSlotsResponse->SlotSummaries;
70  
71 # Returns a L<Paws::LexModelsV2::ListSlotsResponse> object.
72  
73 Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object.
74 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/ListSlots>
75  
76 =head1 ATTRIBUTES
77  
78  
79 =head2 B<REQUIRED> BotId => Str
80  
81 The identifier of the bot that contains the slot.
82  
83  
84  
85 =head2 B<REQUIRED> BotVersion => Str
86  
87 The version of the bot that contains the slot.
88  
89  
90  
91 =head2 Filters => ArrayRef[L<Paws::LexModelsV2::SlotFilter>]
92  
93 Provides the specification of a filter used to limit the slots in the
94 response to only those that match the filter specification. You can
95 only specify one filter and only one string to filter on.
96  
97  
98  
99 =head2 B<REQUIRED> IntentId => Str
100  
101 The unique identifier of the intent that contains the slot.
102  
103  
104  
105 =head2 B<REQUIRED> LocaleId => Str
106  
107 The identifier of the language and locale of the slots to list. The
108 string must match one of the supported locales. For more information,
109 see Supported languages
110 (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html).
111  
112  
113  
114 =head2 MaxResults => Int
115  
116 The maximum number of slots to return in each page of results. If there
117 are fewer results than the max page size, only the actual number of
118 results are returned.
119  
120  
121  
122 =head2 NextToken => Str
123  
124 If the response from the C<ListSlots> operation contains more results
125 than specified in the C<maxResults> parameter, a token is returned in
126 the response. Use that token in the C<nextToken> parameter to return
127 the next page of results.
128  
129  
130  
131 =head2 SortBy => L<Paws::LexModelsV2::SlotSortBy>
132  
133 Determines the sort order for the response from the C<ListSlots>
134 operation. You can choose to sort by the slot name or last updated date
135 in either ascending or descending order.
136  
137  
138  
139  
140 =head1 SEE ALSO
141  
142 This class forms part of L<Paws>, documenting arguments for method ListSlots in L<Paws::LexModelsV2>
143  
144 =head1 BUGS and CONTRIBUTIONS
145  
146 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
147  
148 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
149  
150 =cut
151