blib/lib/Paws/CognitoSync/ListRecords.pm untested

filter: Statementstmt 0.0% 0 / 24 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 26 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::CognitoSync::ListRecords;
3 use Moose;
4 has DatasetName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'DatasetName', required => 1);
5 has IdentityId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'IdentityId', required => 1);
6 has IdentityPoolId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'IdentityPoolId', required => 1);
7 has LastSyncCount => (is => 'ro', isa => 'Int', traits => ['ParamInQuery'], query_name => 'lastSyncCount');
8 has MaxResults => (is => 'ro', isa => 'Int', traits => ['ParamInQuery'], query_name => 'maxResults');
9 has NextToken => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'nextToken');
10 has SyncSessionToken => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'syncSessionToken');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListRecords');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/identitypools/{IdentityPoolId}/identities/{IdentityId}/datasets/{DatasetName}/records');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::CognitoSync::ListRecordsResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::CognitoSync::ListRecords - Arguments for method ListRecords on L<Paws::CognitoSync>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method ListRecords on the
29 L<Amazon Cognito Sync|Paws::CognitoSync> service. Use the attributes of this class
30 as arguments to method ListRecords.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListRecords.
33  
34 =head1 SYNOPSIS
35  
36 my $cognito-sync = Paws->service('CognitoSync');
37 my $ListRecordsResponse = $cognito -sync->ListRecords(
38 DatasetName => 'MyDatasetName',
39 IdentityId => 'MyIdentityId',
40 IdentityPoolId => 'MyIdentityPoolId',
41 LastSyncCount => 1, # OPTIONAL
42 MaxResults => 1, # OPTIONAL
43 NextToken => 'MyString', # OPTIONAL
44 SyncSessionToken => 'MySyncSessionToken', # OPTIONAL
45 );
46  
47 # Results:
48 my $Count = $ListRecordsResponse->Count;
49 my $DatasetDeletedAfterRequestedSyncCount =
50 $ListRecordsResponse->DatasetDeletedAfterRequestedSyncCount;
51 my $DatasetExists = $ListRecordsResponse->DatasetExists;
52 my $DatasetSyncCount = $ListRecordsResponse->DatasetSyncCount;
53 my $LastModifiedBy = $ListRecordsResponse->LastModifiedBy;
54 my $MergedDatasetNames = $ListRecordsResponse->MergedDatasetNames;
55 my $NextToken = $ListRecordsResponse->NextToken;
56 my $Records = $ListRecordsResponse->Records;
57 my $SyncSessionToken = $ListRecordsResponse->SyncSessionToken;
58  
59 # Returns a L<Paws::CognitoSync::ListRecordsResponse> object.
60  
61 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.
62 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/cognito-sync/ListRecords>
63  
64 =head1 ATTRIBUTES
65  
66  
67 =head2 B<REQUIRED> DatasetName => Str
68  
69 A string of up to 128 characters. Allowed characters are a-z, A-Z, 0-9,
70 '_' (underscore), '-' (dash), and '.' (dot).
71  
72  
73  
74 =head2 B<REQUIRED> IdentityId => Str
75  
76 A name-spaced GUID (for example,
77 us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
78 Cognito. GUID generation is unique within a region.
79  
80  
81  
82 =head2 B<REQUIRED> IdentityPoolId => Str
83  
84 A name-spaced GUID (for example,
85 us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon
86 Cognito. GUID generation is unique within a region.
87  
88  
89  
90 =head2 LastSyncCount => Int
91  
92 The last server sync count for this record.
93  
94  
95  
96 =head2 MaxResults => Int
97  
98 The maximum number of results to be returned.
99  
100  
101  
102 =head2 NextToken => Str
103  
104 A pagination token for obtaining the next page of results.
105  
106  
107  
108 =head2 SyncSessionToken => Str
109  
110 A token containing a session ID, identity ID, and expiration.
111  
112  
113  
114  
115 =head1 SEE ALSO
116  
117 This class forms part of L<Paws>, documenting arguments for method ListRecords in L<Paws::CognitoSync>
118  
119 =head1 BUGS and CONTRIBUTIONS
120  
121 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
122  
123 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
124  
125 =cut
126