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

filter: Statementstmt 0.0% 0 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 24 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::LexModelsV2::ListImports;
3 use Moose;
4 has BotId => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botId');
5 has BotVersion => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'botVersion');
6 has Filters => (is => 'ro', isa => 'ArrayRef[Paws::LexModelsV2::ImportFilter]', traits => ['NameInRequest'], request_name => 'filters');
7 has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults');
8 has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken');
9 has SortBy => (is => 'ro', isa => 'Paws::LexModelsV2::ImportSortBy', traits => ['NameInRequest'], request_name => 'sortBy');
10  
11 use MooseX::ClassAttribute;
12  
13 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListImports');
14 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/imports/');
15 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
16 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::ListImportsResponse');
17 1;
18  
19 ### main pod documentation begin ###
20  
21 =head1 NAME
22  
23 Paws::LexModelsV2::ListImports - Arguments for method ListImports on L<Paws::LexModelsV2>
24  
25 =head1 DESCRIPTION
26  
27 This class represents the parameters used for calling the method ListImports on the
28 L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class
29 as arguments to method ListImports.
30  
31 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListImports.
32  
33 =head1 SYNOPSIS
34  
35 my $models-v2-lex = Paws->service('LexModelsV2');
36 my $ListImportsResponse = $models - v2 -lex->ListImports(
37 BotId => 'MyId', # OPTIONAL
38 BotVersion => 'MyDraftBotVersion', # OPTIONAL
39 Filters => [
40 {
41 Name => 'ImportResourceType', # values: ImportResourceType
42 Operator => 'CO', # values: CO, EQ
43 Values => [
44 'MyFilterValue', ... # min: 1, max: 100
45 ], # min: 1, max: 1
46  
47 },
48 ...
49 ], # OPTIONAL
50 MaxResults => 1, # OPTIONAL
51 NextToken => 'MyNextToken', # OPTIONAL
52 SortBy => {
53 Attribute => 'LastUpdatedDateTime', # values: LastUpdatedDateTime
54 Order => 'Ascending', # values: Ascending, Descending
55  
56 }, # OPTIONAL
57 );
58  
59 # Results:
60 my $BotId = $ListImportsResponse->BotId;
61 my $BotVersion = $ListImportsResponse->BotVersion;
62 my $ImportSummaries = $ListImportsResponse->ImportSummaries;
63 my $NextToken = $ListImportsResponse->NextToken;
64  
65 # Returns a L<Paws::LexModelsV2::ListImportsResponse> object.
66  
67 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.
68 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/ListImports>
69  
70 =head1 ATTRIBUTES
71  
72  
73 =head2 BotId => Str
74  
75 The unique identifier that Amazon Lex assigned to the bot.
76  
77  
78  
79 =head2 BotVersion => Str
80  
81 The version of the bot to list imports for.
82  
83  
84  
85 =head2 Filters => ArrayRef[L<Paws::LexModelsV2::ImportFilter>]
86  
87 Provides the specification of a filter used to limit the bots in the
88 response to only those that match the filter specification. You can
89 only specify one filter and one string to filter on.
90  
91  
92  
93 =head2 MaxResults => Int
94  
95 The maximum number of imports to return in each page of results. If
96 there are fewer results than the max page size, only the actual number
97 of results are returned.
98  
99  
100  
101 =head2 NextToken => Str
102  
103 If the response from the C<ListImports> operation contains more results
104 than specified in the C<maxResults> parameter, a token is returned in
105 the response. Use that token in the C<nextToken> parameter to return
106 the next page of results.
107  
108  
109  
110 =head2 SortBy => L<Paws::LexModelsV2::ImportSortBy>
111  
112 Determines the field that the list of imports is sorted by. You can
113 sort by the C<LastUpdatedDateTime> field in ascending or descending
114 order.
115  
116  
117  
118  
119 =head1 SEE ALSO
120  
121 This class forms part of L<Paws>, documenting arguments for method ListImports in L<Paws::LexModelsV2>
122  
123 =head1 BUGS and CONTRIBUTIONS
124  
125 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
126  
127 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
128  
129 =cut
130