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

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