blib/lib/Paws/Pinpoint/CreatePushTemplate.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::CreatePushTemplate;
3 use Moose;
4 has PushNotificationTemplateRequest => (is => 'ro', isa => 'Paws::Pinpoint::PushNotificationTemplateRequest', required => 1);
5 has TemplateName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'template-name', required => 1);
6  
7 use MooseX::ClassAttribute;
8 class_has _stream_param => (is => 'ro', default => 'PushNotificationTemplateRequest');
9 class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreatePushTemplate');
10 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/templates/{template-name}/push');
11 class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST');
12 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pinpoint::CreatePushTemplateResponse');
13 1;
14  
15 ### main pod documentation begin ###
16  
17 =head1 NAME
18  
19 Paws::Pinpoint::CreatePushTemplate - Arguments for method CreatePushTemplate on L<Paws::Pinpoint>
20  
21 =head1 DESCRIPTION
22  
23 This class represents the parameters used for calling the method CreatePushTemplate on the
24 L<Amazon Pinpoint|Paws::Pinpoint> service. Use the attributes of this class
25 as arguments to method CreatePushTemplate.
26  
27 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreatePushTemplate.
28  
29 =head1 SYNOPSIS
30  
31 my $pinpoint = Paws->service('Pinpoint');
32 my $CreatePushTemplateResponse = $pinpoint->CreatePushTemplate(
33 PushNotificationTemplateRequest => {
34 ADM => {
35 Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
36 Body => 'My__string', # OPTIONAL
37 ImageIconUrl => 'My__string', # OPTIONAL
38 ImageUrl => 'My__string', # OPTIONAL
39 RawContent => 'My__string', # OPTIONAL
40 SmallImageIconUrl => 'My__string', # OPTIONAL
41 Sound => 'My__string', # OPTIONAL
42 Title => 'My__string', # OPTIONAL
43 Url => 'My__string', # OPTIONAL
44 }, # OPTIONAL
45 APNS => {
46 Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
47 Body => 'My__string', # OPTIONAL
48 MediaUrl => 'My__string', # OPTIONAL
49 RawContent => 'My__string', # OPTIONAL
50 Sound => 'My__string', # OPTIONAL
51 Title => 'My__string', # OPTIONAL
52 Url => 'My__string', # OPTIONAL
53 }, # OPTIONAL
54 Baidu => {
55 Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
56 Body => 'My__string', # OPTIONAL
57 ImageIconUrl => 'My__string', # OPTIONAL
58 ImageUrl => 'My__string', # OPTIONAL
59 RawContent => 'My__string', # OPTIONAL
60 SmallImageIconUrl => 'My__string', # OPTIONAL
61 Sound => 'My__string', # OPTIONAL
62 Title => 'My__string', # OPTIONAL
63 Url => 'My__string', # OPTIONAL
64 }, # OPTIONAL
65 Default => {
66 Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
67 Body => 'My__string', # OPTIONAL
68 Sound => 'My__string', # OPTIONAL
69 Title => 'My__string', # OPTIONAL
70 Url => 'My__string', # OPTIONAL
71 }, # OPTIONAL
72 DefaultSubstitutions => 'My__string', # OPTIONAL
73 GCM => {
74 Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL
75 Body => 'My__string', # OPTIONAL
76 ImageIconUrl => 'My__string', # OPTIONAL
77 ImageUrl => 'My__string', # OPTIONAL
78 RawContent => 'My__string', # OPTIONAL
79 SmallImageIconUrl => 'My__string', # OPTIONAL
80 Sound => 'My__string', # OPTIONAL
81 Title => 'My__string', # OPTIONAL
82 Url => 'My__string', # OPTIONAL
83 }, # OPTIONAL
84 RecommenderId => 'My__string', # OPTIONAL
85 Tags => {
86 'My__string' => 'My__string', # key: OPTIONAL, value: OPTIONAL
87 }, # OPTIONAL
88 TemplateDescription => 'My__string', # OPTIONAL
89 },
90 TemplateName => 'My__string',
91  
92 );
93  
94 # Results:
95 my $CreateTemplateMessageBody =
96 $CreatePushTemplateResponse->CreateTemplateMessageBody;
97  
98 # Returns a L<Paws::Pinpoint::CreatePushTemplateResponse> object.
99  
100 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.
101 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/pinpoint/CreatePushTemplate>
102  
103 =head1 ATTRIBUTES
104  
105  
106 =head2 B<REQUIRED> PushNotificationTemplateRequest => L<Paws::Pinpoint::PushNotificationTemplateRequest>
107  
108  
109  
110  
111  
112 =head2 B<REQUIRED> TemplateName => Str
113  
114 The name of the message template. A template name must start with an
115 alphanumeric character and can contain a maximum of 128 characters. The
116 characters can be alphanumeric characters, underscores (_), or hyphens
117 (-). Template names are case sensitive.
118  
119  
120  
121  
122 =head1 SEE ALSO
123  
124 This class forms part of L<Paws>, documenting arguments for method CreatePushTemplate in L<Paws::Pinpoint>
125  
126 =head1 BUGS and CONTRIBUTIONS
127  
128 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
129  
130 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
131  
132 =cut
133