blib/lib/Paws/AlexaForBusiness/SendAnnouncement.pm untested

filter: Statementstmt 0.0% 0 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 15 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::AlexaForBusiness::SendAnnouncement;
3 use Moose;
4 has ClientRequestToken => (is => 'ro', isa => 'Str', required => 1);
5 has Content => (is => 'ro', isa => 'Paws::AlexaForBusiness::Content', required => 1);
6 has RoomFilters => (is => 'ro', isa => 'ArrayRef[Paws::AlexaForBusiness::Filter]', required => 1);
7 has TimeToLiveInSeconds => (is => 'ro', isa => 'Int');
8  
9 use MooseX::ClassAttribute;
10  
11 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendAnnouncement');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AlexaForBusiness::SendAnnouncementResponse');
13 class_has _result_key => (isa => 'Str', is => 'ro');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::AlexaForBusiness::SendAnnouncement - Arguments for method SendAnnouncement on L<Paws::AlexaForBusiness>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method SendAnnouncement on the
25 L<Alexa For Business|Paws::AlexaForBusiness> service. Use the attributes of this class
26 as arguments to method SendAnnouncement.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendAnnouncement.
29  
30 =head1 SYNOPSIS
31  
32 my $a4b = Paws->service('AlexaForBusiness');
33 my $SendAnnouncementResponse = $a4b->SendAnnouncement(
34 ClientRequestToken => 'MyClientRequestToken',
35 Content => {
36 AudioList => [
37 {
38 Locale => 'en-US', # values: en-US
39 Location => 'MyAudioLocation', # max: 1200
40  
41 },
42 ...
43 ], # max: 1; OPTIONAL
44 SsmlList => [
45 {
46 Locale => 'en-US', # values: en-US
47 Value => 'MySsmlValue', # max: 4096
48  
49 },
50 ...
51 ], # max: 1; OPTIONAL
52 TextList => [
53 {
54 Locale => 'en-US', # values: en-US
55 Value => 'MyTextValue', # max: 4096
56  
57 },
58 ...
59 ], # max: 1; OPTIONAL
60 },
61 RoomFilters => [
62 {
63 Key => 'MyFilterKey', # min: 1, max: 500
64 Values => [
65 'MyFilterValue', ... # min: 1, max: 500
66 ], # max: 50
67  
68 },
69 ...
70 ],
71 TimeToLiveInSeconds => 1, # OPTIONAL
72 );
73  
74 # Results:
75 my $AnnouncementArn = $SendAnnouncementResponse->AnnouncementArn;
76  
77 # Returns a L<Paws::AlexaForBusiness::SendAnnouncementResponse> object.
78  
79 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.
80 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/a4b/SendAnnouncement>
81  
82 =head1 ATTRIBUTES
83  
84  
85 =head2 B<REQUIRED> ClientRequestToken => Str
86  
87 The unique, user-specified identifier for the request that ensures
88 idempotency.
89  
90  
91  
92 =head2 B<REQUIRED> Content => L<Paws::AlexaForBusiness::Content>
93  
94 The announcement content. This can contain only one of the three
95 possible announcement types (text, SSML or audio).
96  
97  
98  
99 =head2 B<REQUIRED> RoomFilters => ArrayRef[L<Paws::AlexaForBusiness::Filter>]
100  
101 The filters to use to send an announcement to a specified list of
102 rooms. The supported filter keys are RoomName, ProfileName, RoomArn,
103 and ProfileArn. To send to all rooms, specify an empty RoomFilters
104 list.
105  
106  
107  
108 =head2 TimeToLiveInSeconds => Int
109  
110 The time to live for an announcement. Default is 300. If delivery
111 doesn't occur within this time, the announcement is not delivered.
112  
113  
114  
115  
116 =head1 SEE ALSO
117  
118 This class forms part of L<Paws>, documenting arguments for method SendAnnouncement in L<Paws::AlexaForBusiness>
119  
120 =head1 BUGS and CONTRIBUTIONS
121  
122 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
123  
124 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
125  
126 =cut
127