blib/lib/Paws/Chime/ListChannelMessages.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::Chime::ListChannelMessages;
3 use Moose;
4 has ChannelArn => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'channelArn', required => 1);
5 has ChimeBearer => (is => 'ro', isa => 'Str', traits => ['ParamInHeader'], header_name => 'x-amz-chime-bearer');
6 has MaxResults => (is => 'ro', isa => 'Int', traits => ['ParamInQuery'], query_name => 'max-results');
7 has NextToken => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'next-token');
8 has NotAfter => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'not-after');
9 has NotBefore => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'not-before');
10 has SortOrder => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'sort-order');
11  
12 use MooseX::ClassAttribute;
13  
14 class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListChannelMessages');
15 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/channels/{channelArn}/messages');
16 class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET');
17 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Chime::ListChannelMessagesResponse');
18 1;
19  
20 ### main pod documentation begin ###
21  
22 =head1 NAME
23  
24 Paws::Chime::ListChannelMessages - Arguments for method ListChannelMessages on L<Paws::Chime>
25  
26 =head1 DESCRIPTION
27  
28 This class represents the parameters used for calling the method ListChannelMessages on the
29 L<Amazon Chime|Paws::Chime> service. Use the attributes of this class
30 as arguments to method ListChannelMessages.
31  
32 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListChannelMessages.
33  
34 =head1 SYNOPSIS
35  
36 my $chime = Paws->service('Chime');
37 my $ListChannelMessagesResponse = $chime->ListChannelMessages(
38 ChannelArn => 'MyChimeArn',
39 ChimeBearer => 'MyChimeArn', # OPTIONAL
40 MaxResults => 1, # OPTIONAL
41 NextToken => 'MyNextToken', # OPTIONAL
42 NotAfter => '1970-01-01T01:00:00', # OPTIONAL
43 NotBefore => '1970-01-01T01:00:00', # OPTIONAL
44 SortOrder => 'ASCENDING', # OPTIONAL
45 );
46  
47 # Results:
48 my $ChannelArn = $ListChannelMessagesResponse->ChannelArn;
49 my $ChannelMessages = $ListChannelMessagesResponse->ChannelMessages;
50 my $NextToken = $ListChannelMessagesResponse->NextToken;
51  
52 # Returns a L<Paws::Chime::ListChannelMessagesResponse> object.
53  
54 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.
55 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/chime/ListChannelMessages>
56  
57 =head1 ATTRIBUTES
58  
59  
60 =head2 B<REQUIRED> ChannelArn => Str
61  
62 The ARN of the channel.
63  
64  
65  
66 =head2 ChimeBearer => Str
67  
68 The C<AppInstanceUserArn> of the user that makes the API call.
69  
70  
71  
72 =head2 MaxResults => Int
73  
74 The maximum number of messages that you want returned.
75  
76  
77  
78 =head2 NextToken => Str
79  
80 The token passed by previous API calls until all requested messages are
81 returned.
82  
83  
84  
85 =head2 NotAfter => Str
86  
87 The final or ending time stamp for your requested messages.
88  
89  
90  
91 =head2 NotBefore => Str
92  
93 The initial or starting time stamp for your requested messages.
94  
95  
96  
97 =head2 SortOrder => Str
98  
99 The order in which you want messages sorted. Default is Descending,
100 based on time created.
101  
102 Valid values are: C<"ASCENDING">, C<"DESCENDING">
103  
104  
105 =head1 SEE ALSO
106  
107 This class forms part of L<Paws>, documenting arguments for method ListChannelMessages in L<Paws::Chime>
108  
109 =head1 BUGS and CONTRIBUTIONS
110  
111 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
112  
113 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
114  
115 =cut
116