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

filter: Statementstmt 0.0% 0 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 2 Podpod n/a totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1  
2 package Paws::Pinpoint::UpdateSegment;
3 use Moose;
4 has ApplicationId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'application-id', required => 1);
5 has SegmentId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'segment-id', required => 1);
6 has WriteSegmentRequest => (is => 'ro', isa => 'Paws::Pinpoint::WriteSegmentRequest', required => 1);
7  
8 use MooseX::ClassAttribute;
9 class_has _stream_param => (is => 'ro', default => 'WriteSegmentRequest');
10 class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateSegment');
11 class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/apps/{application-id}/segments/{segment-id}');
12 class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT');
13 class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pinpoint::UpdateSegmentResponse');
14 1;
15  
16 ### main pod documentation begin ###
17  
18 =head1 NAME
19  
20 Paws::Pinpoint::UpdateSegment - Arguments for method UpdateSegment on L<Paws::Pinpoint>
21  
22 =head1 DESCRIPTION
23  
24 This class represents the parameters used for calling the method UpdateSegment on the
25 L<Amazon Pinpoint|Paws::Pinpoint> service. Use the attributes of this class
26 as arguments to method UpdateSegment.
27  
28 You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateSegment.
29  
30 =head1 SYNOPSIS
31  
32 my $pinpoint = Paws->service('Pinpoint');
33 my $UpdateSegmentResponse = $pinpoint->UpdateSegment(
34 ApplicationId => 'My__string',
35 SegmentId => 'My__string',
36 WriteSegmentRequest => {
37 Dimensions => {
38 Attributes => {
39 'My__string' => {
40 Values => [ 'My__string', ... ],
41 AttributeType => 'INCLUSIVE'
42 , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL
43 },
44 }, # OPTIONAL
45 Behavior => {
46 Recency => {
47 Duration => 'HR_24', # values: HR_24, DAY_7, DAY_14, DAY_30
48 RecencyType => 'ACTIVE', # values: ACTIVE, INACTIVE
49  
50 }, # OPTIONAL
51 }, # OPTIONAL
52 Demographic => {
53 AppVersion => {
54 Values => [ 'My__string', ... ],
55 DimensionType =>
56 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
57 }, # OPTIONAL
58 Channel => {
59 Values => [ 'My__string', ... ],
60 DimensionType =>
61 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
62 }, # OPTIONAL
63 DeviceType => {
64 Values => [ 'My__string', ... ],
65 DimensionType =>
66 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
67 }, # OPTIONAL
68 Make => {
69 Values => [ 'My__string', ... ],
70 DimensionType =>
71 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
72 }, # OPTIONAL
73 Model => {
74 Values => [ 'My__string', ... ],
75 DimensionType =>
76 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
77 }, # OPTIONAL
78 Platform => {
79 Values => [ 'My__string', ... ],
80 DimensionType =>
81 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
82 }, # OPTIONAL
83 }, # OPTIONAL
84 Location => {
85 Country => {
86 Values => [ 'My__string', ... ],
87 DimensionType =>
88 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
89 }, # OPTIONAL
90 GPSPoint => {
91 Coordinates => {
92 Latitude => 1,
93 Longitude => 1,
94  
95 },
96 RangeInKilometers => 1,
97 }, # OPTIONAL
98 }, # OPTIONAL
99 Metrics => {
100 'My__string' => {
101 ComparisonOperator => 'My__string',
102 Value => 1,
103  
104 },
105 }, # OPTIONAL
106 UserAttributes => {
107 'My__string' => {
108 Values => [ 'My__string', ... ],
109 AttributeType => 'INCLUSIVE'
110 , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL
111 },
112 }, # OPTIONAL
113 }, # OPTIONAL
114 Name => 'My__string',
115 SegmentGroups => {
116 Groups => [
117 {
118 Dimensions => [
119 {
120 Attributes => {
121 'My__string' => {
122 Values => [ 'My__string', ... ],
123 AttributeType => 'INCLUSIVE'
124 , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL
125 },
126 }, # OPTIONAL
127 Behavior => {
128 Recency => {
129 Duration =>
130 'HR_24', # values: HR_24, DAY_7, DAY_14, DAY_30
131 RecencyType => 'ACTIVE', # values: ACTIVE, INACTIVE
132  
133 }, # OPTIONAL
134 }, # OPTIONAL
135 Demographic => {
136 AppVersion => {
137 Values => [ 'My__string', ... ],
138 DimensionType =>
139 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
140 }, # OPTIONAL
141 Channel => {
142 Values => [ 'My__string', ... ],
143 DimensionType =>
144 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
145 }, # OPTIONAL
146 DeviceType => {
147 Values => [ 'My__string', ... ],
148 DimensionType =>
149 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
150 }, # OPTIONAL
151 Make => {
152 Values => [ 'My__string', ... ],
153 DimensionType =>
154 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
155 }, # OPTIONAL
156 Model => {
157 Values => [ 'My__string', ... ],
158 DimensionType =>
159 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
160 }, # OPTIONAL
161 Platform => {
162 Values => [ 'My__string', ... ],
163 DimensionType =>
164 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
165 }, # OPTIONAL
166 }, # OPTIONAL
167 Location => {
168 Country => {
169 Values => [ 'My__string', ... ],
170 DimensionType =>
171 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL
172 }, # OPTIONAL
173 GPSPoint => {
174 Coordinates => {
175 Latitude => 1,
176 Longitude => 1,
177  
178 },
179 RangeInKilometers => 1,
180 }, # OPTIONAL
181 }, # OPTIONAL
182 Metrics => {
183 'My__string' => {
184 ComparisonOperator => 'My__string',
185 Value => 1,
186  
187 },
188 }, # OPTIONAL
189 UserAttributes => {
190 'My__string' => {
191 Values => [ 'My__string', ... ],
192 AttributeType => 'INCLUSIVE'
193 , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL
194 },
195 }, # OPTIONAL
196 },
197 ... # OPTIONAL
198 ], # OPTIONAL
199 SourceSegments => [
200 {
201 Id => 'My__string',
202 Version => 1, # OPTIONAL
203 },
204 ...
205 ], # OPTIONAL
206 SourceType => 'ALL', # values: ALL, ANY, NONE; OPTIONAL
207 Type => 'ALL', # values: ALL, ANY, NONE; OPTIONAL
208 },
209 ...
210 ], # OPTIONAL
211 Include => 'ALL', # values: ALL, ANY, NONE; OPTIONAL
212 }, # OPTIONAL
213 Tags => { 'My__string' => 'My__string', }, # OPTIONAL
214 },
215  
216 );
217  
218 # Results:
219 my $SegmentResponse = $UpdateSegmentResponse->SegmentResponse;
220  
221 # Returns a L<Paws::Pinpoint::UpdateSegmentResponse> object.
222  
223 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.
224 For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/pinpoint/UpdateSegment>
225  
226 =head1 ATTRIBUTES
227  
228  
229 =head2 B<REQUIRED> ApplicationId => Str
230  
231 The unique identifier for the application. This identifier is displayed
232 as the B<Project ID> on the Amazon Pinpoint console.
233  
234  
235  
236 =head2 B<REQUIRED> SegmentId => Str
237  
238 The unique identifier for the segment.
239  
240  
241  
242 =head2 B<REQUIRED> WriteSegmentRequest => L<Paws::Pinpoint::WriteSegmentRequest>
243  
244  
245  
246  
247  
248  
249 =head1 SEE ALSO
250  
251 This class forms part of L<Paws>, documenting arguments for method UpdateSegment in L<Paws::Pinpoint>
252  
253 =head1 BUGS and CONTRIBUTIONS
254  
255 The source code is located here: L<https://github.com/pplu/aws-sdk-perl>
256  
257 Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues>
258  
259 =cut
260