blib/lib/Paws/PinpointSMSVoice/SendVoiceMessage.pm untested

filter: Statementstmt 0.0% 0 / 15 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 17 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::PinpointSMSVoice::SendVoiceMessage;
3 use Moose;
4 has CallerId => (is => 'ro', isa => 'Str');
5 has ConfigurationSetName => (is => 'ro', isa => 'Str');
6 has Content => (is => 'ro', isa => 'Paws::PinpointSMSVoice::VoiceMessageContent');
7 has DestinationPhoneNumber => (is => 'ro', isa => 'Str');
8 has OriginationPhoneNumber => (is => 'ro', isa => 'Str');
9  
10 use MooseX::ClassAttribute;
11  
12 class_has _api_call => (isa => 'Str', is => 'ro', default => 'SendVoiceMessage');
13 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/sms-voice/voice/message');
14 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
15 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::PinpointSMSVoice::SendVoiceMessageResponse');
16 1;
17  
18 ### main pod documentation begin ###
19  
20 =head1 NAME
21  
22 Paws::PinpointSMSVoice::SendVoiceMessage - Arguments for method SendVoiceMessage on L<Paws::PinpointSMSVoice>
23  
24 =head1 DESCRIPTION
25  
26 This class represents the parameters used for calling the method SendVoiceMessage on the
27 L<Amazon Pinpoint SMS and Voice Service|Paws::PinpointSMSVoice> service. Use the attributes of this class
28 as arguments to method SendVoiceMessage.
29  
30 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to SendVoiceMessage.
31  
32 =head1 SYNOPSIS
33  
34 my $sms-voice.pinpoint = Paws->service('PinpointSMSVoice');
35 my $SendVoiceMessageResponse = $sms -voice . pinpoint->SendVoiceMessage(
36 CallerId => 'MyString', # OPTIONAL
37 ConfigurationSetName => 'MyWordCharactersWithDelimiters', # OPTIONAL
38 Content => {
39 CallInstructionsMessage => {
40 Text => 'MyNonEmptyString', # OPTIONAL
41 }, # OPTIONAL
42 PlainTextMessage => {
43 LanguageCode => 'MyString',
44 Text => 'MyNonEmptyString', # OPTIONAL
45 VoiceId => 'MyString',
46 }, # OPTIONAL
47 SSMLMessage => {
48 LanguageCode => 'MyString',
49 Text => 'MyNonEmptyString', # OPTIONAL
50 VoiceId => 'MyString',
51 }, # OPTIONAL
52 }, # OPTIONAL
53 DestinationPhoneNumber => 'MyNonEmptyString', # OPTIONAL
54 OriginationPhoneNumber => 'MyNonEmptyString', # OPTIONAL
55 );
56  
57 # Results:
58 my $MessageId = $SendVoiceMessageResponse->MessageId;
59  
60 # Returns a L<Paws::PinpointSMSVoice::SendVoiceMessageResponse> object.
61  
62 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.
63 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/sms-voice.pinpoint/SendVoiceMessage>
64  
65 =head1 ATTRIBUTES
66  
67  
68 =head2 CallerId => Str
69  
70 The phone number that appears on recipients' devices when they receive
71 the message.
72  
73  
74  
75 =head2 ConfigurationSetName => Str
76  
77 The name of the configuration set that you want to use to send the
78 message.
79  
80  
81  
82 =head2 Content => L<Paws::PinpointSMSVoice::VoiceMessageContent>
83  
84  
85  
86  
87  
88 =head2 DestinationPhoneNumber => Str
89  
90 The phone number that you want to send the voice message to.
91  
92  
93  
94 =head2 OriginationPhoneNumber => Str
95  
96 The phone number that Amazon Pinpoint should use to send the voice
97 message. This isn't necessarily the phone number that appears on
98 recipients' devices when they receive the message, because you can
99 specify a CallerId parameter in the request.
100  
101  
102  
103  
104 =head1 SEE ALSO
105  
106 This class forms part of L<Paws>, documenting arguments for method SendVoiceMessage in L<Paws::PinpointSMSVoice>
107  
108 =head1 BUGS and CONTRIBUTIONS
109  
110 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
111  
112 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
113  
114 =cut
115