blib/lib/Paws/Pinpoint/GetVoiceTemplate.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 16 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Pinpoint::GetVoiceTemplate;
3 use Moose;
4 has TemplateName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'template-name', required => 1);
5 has Version => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'version');
6  
7 use MooseX::ClassAttribute;
8  
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'GetVoiceTemplate');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/templates/{template-name}/voice');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'GET');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pinpoint::GetVoiceTemplateResponse');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::Pinpoint::GetVoiceTemplate - Arguments for method GetVoiceTemplate on L<Paws::Pinpoint>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method GetVoiceTemplate on the
24 L<Amazon Pinpoint|Paws::Pinpoint> service. Use the attributes of this class
25 as arguments to method GetVoiceTemplate.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to GetVoiceTemplate.
28  
29 =head1 SYNOPSIS
30  
31 my $pinpoint = Paws->service('Pinpoint');
32 my $GetVoiceTemplateResponse = $pinpoint->GetVoiceTemplate(
33 TemplateName => 'My__string',
34 Version => 'My__string', # OPTIONAL
35 );
36  
37 # Results:
38 my $VoiceTemplateResponse =
39 $GetVoiceTemplateResponse->VoiceTemplateResponse;
40  
41 # Returns a L<Paws::Pinpoint::GetVoiceTemplateResponse> object.
42  
43 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.
44 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/pinpoint/GetVoiceTemplate>
45  
46 =head1 ATTRIBUTES
47  
48  
49 =head2 B<REQUIRED> TemplateName => Str
50  
51 The name of the message template. A template name must start with an
52 alphanumeric character and can contain a maximum of 128 characters. The
53 characters can be alphanumeric characters, underscores (_), or hyphens
54 (-). Template names are case sensitive.
55  
56  
57  
58 =head2 Version => Str
59  
60 The unique identifier for the version of the message template to
61 update, retrieve information about, or delete. To retrieve identifiers
62 and other information for all the versions of a template, use the
63  
64 Template Versions resource.
65  
66 If specified, this value must match the identifier for an existing
67 template version. If specified for an update operation, this value must
68 match the identifier for the latest existing version of the template.
69 This restriction helps ensure that race conditions don't occur.
70  
71 If you don't specify a value for this parameter, Amazon Pinpoint does
72 the following:
73  
74 =over
75  
76 =item *
77  
78 For a get operation, retrieves information about the active version of
79 the template.
80  
81 =item *
82  
83 For an update operation, saves the updates to (overwrites) the latest
84 existing version of the template, if the create-new-version parameter
85 isn't used or is set to false.
86  
87 =item *
88  
89 For a delete operation, deletes the template, including all versions of
90 the template.
91  
92 =back
93  
94  
95  
96  
97  
98 =head1 SEE ALSO
99  
100 This class forms part of L<Paws>, documenting arguments for method GetVoiceTemplate in L<Paws::Pinpoint>
101  
102 =head1 BUGS and CONTRIBUTIONS
103  
104 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
105  
106 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
107  
108 =cut
109