« blib/lib/Paws/Pinpoint/UpdateBaiduChannelResponse.pm
↑ Summary
blib/lib/Paws/Pinpoint/UpdateCampaignResponse.pm »
| 1 | |||
| 2 | package Paws::Pinpoint::UpdateCampaign; | ||
| 3 | use Moose; | ||
| 4 | has ApplicationId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'application-id', required => 1); | ||
| 5 | has CampaignId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'campaign-id', required => 1); | ||
| 6 | has WriteCampaignRequest => (is => 'ro', isa => 'Paws::Pinpoint::WriteCampaignRequest', required => 1); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | class_has _stream_param => (is => 'ro', default => 'WriteCampaignRequest'); | ||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateCampaign'); | ||
| 11 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/apps/{application-id}/campaigns/{campaign-id}'); | ||
| 12 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pinpoint::UpdateCampaignResponse'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::Pinpoint::UpdateCampaign - Arguments for method UpdateCampaign on L<Paws::Pinpoint> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method UpdateCampaign on the | ||
| 25 | L<Amazon Pinpoint|Paws::Pinpoint> service. Use the attributes of this class | ||
| 26 | as arguments to method UpdateCampaign. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateCampaign. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $pinpoint = Paws->service('Pinpoint'); | ||
| 33 | my $UpdateCampaignResponse = $pinpoint->UpdateCampaign( | ||
| 34 | ApplicationId => 'My__string', | ||
| 35 | CampaignId => 'My__string', | ||
| 36 | WriteCampaignRequest => { | ||
| 37 | AdditionalTreatments => [ | ||
| 38 | { | ||
| 39 | SizePercent => 1, | ||
| 40 | CustomDeliveryConfiguration => { | ||
| 41 | DeliveryUri => 'My__string', | ||
| 42 | EndpointTypes => [ | ||
| 43 | 'PUSH', | ||
| 44 | ... # values: PUSH, GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM | ||
| 45 | ], # OPTIONAL | ||
| 46 | }, # OPTIONAL | ||
| 47 | MessageConfiguration => { | ||
| 48 | ADMMessage => { | ||
| 49 | Action => | ||
| 50 | 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 51 | Body => 'My__string', | ||
| 52 | ImageIconUrl => 'My__string', | ||
| 53 | ImageSmallIconUrl => 'My__string', | ||
| 54 | ImageUrl => 'My__string', | ||
| 55 | JsonBody => 'My__string', | ||
| 56 | MediaUrl => 'My__string', | ||
| 57 | RawContent => 'My__string', | ||
| 58 | SilentPush => 1, # OPTIONAL | ||
| 59 | TimeToLive => 1, | ||
| 60 | Title => 'My__string', | ||
| 61 | Url => 'My__string', | ||
| 62 | }, # OPTIONAL | ||
| 63 | APNSMessage => { | ||
| 64 | Action => | ||
| 65 | 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 66 | Body => 'My__string', | ||
| 67 | ImageIconUrl => 'My__string', | ||
| 68 | ImageSmallIconUrl => 'My__string', | ||
| 69 | ImageUrl => 'My__string', | ||
| 70 | JsonBody => 'My__string', | ||
| 71 | MediaUrl => 'My__string', | ||
| 72 | RawContent => 'My__string', | ||
| 73 | SilentPush => 1, # OPTIONAL | ||
| 74 | TimeToLive => 1, | ||
| 75 | Title => 'My__string', | ||
| 76 | Url => 'My__string', | ||
| 77 | }, # OPTIONAL | ||
| 78 | BaiduMessage => { | ||
| 79 | Action => | ||
| 80 | 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 81 | Body => 'My__string', | ||
| 82 | ImageIconUrl => 'My__string', | ||
| 83 | ImageSmallIconUrl => 'My__string', | ||
| 84 | ImageUrl => 'My__string', | ||
| 85 | JsonBody => 'My__string', | ||
| 86 | MediaUrl => 'My__string', | ||
| 87 | RawContent => 'My__string', | ||
| 88 | SilentPush => 1, # OPTIONAL | ||
| 89 | TimeToLive => 1, | ||
| 90 | Title => 'My__string', | ||
| 91 | Url => 'My__string', | ||
| 92 | }, # OPTIONAL | ||
| 93 | CustomMessage => { Data => 'My__string', }, # OPTIONAL | ||
| 94 | DefaultMessage => { | ||
| 95 | Action => | ||
| 96 | 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 97 | Body => 'My__string', | ||
| 98 | ImageIconUrl => 'My__string', | ||
| 99 | ImageSmallIconUrl => 'My__string', | ||
| 100 | ImageUrl => 'My__string', | ||
| 101 | JsonBody => 'My__string', | ||
| 102 | MediaUrl => 'My__string', | ||
| 103 | RawContent => 'My__string', | ||
| 104 | SilentPush => 1, # OPTIONAL | ||
| 105 | TimeToLive => 1, | ||
| 106 | Title => 'My__string', | ||
| 107 | Url => 'My__string', | ||
| 108 | }, # OPTIONAL | ||
| 109 | EmailMessage => { | ||
| 110 | Body => 'My__string', | ||
| 111 | FromAddress => 'My__string', | ||
| 112 | HtmlBody => 'My__string', | ||
| 113 | Title => 'My__string', | ||
| 114 | }, # OPTIONAL | ||
| 115 | GCMMessage => { | ||
| 116 | Action => | ||
| 117 | 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 118 | Body => 'My__string', | ||
| 119 | ImageIconUrl => 'My__string', | ||
| 120 | ImageSmallIconUrl => 'My__string', | ||
| 121 | ImageUrl => 'My__string', | ||
| 122 | JsonBody => 'My__string', | ||
| 123 | MediaUrl => 'My__string', | ||
| 124 | RawContent => 'My__string', | ||
| 125 | SilentPush => 1, # OPTIONAL | ||
| 126 | TimeToLive => 1, | ||
| 127 | Title => 'My__string', | ||
| 128 | Url => 'My__string', | ||
| 129 | }, # OPTIONAL | ||
| 130 | SMSMessage => { | ||
| 131 | Body => 'My__string', | ||
| 132 | EntityId => 'My__string', | ||
| 133 | MessageType => 'TRANSACTIONAL' | ||
| 134 | , # values: TRANSACTIONAL, PROMOTIONAL; OPTIONAL | ||
| 135 | OriginationNumber => 'My__string', | ||
| 136 | SenderId => 'My__string', | ||
| 137 | TemplateId => 'My__string', | ||
| 138 | }, # OPTIONAL | ||
| 139 | }, # OPTIONAL | ||
| 140 | Schedule => { | ||
| 141 | StartTime => 'My__string', | ||
| 142 | EndTime => 'My__string', | ||
| 143 | EventFilter => { | ||
| 144 | Dimensions => { | ||
| 145 | Attributes => { | ||
| 146 | 'My__string' => { | ||
| 147 | Values => [ 'My__string', ... ], | ||
| 148 | AttributeType => 'INCLUSIVE' | ||
| 149 | , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL | ||
| 150 | }, | ||
| 151 | }, # OPTIONAL | ||
| 152 | EventType => { | ||
| 153 | Values => [ 'My__string', ... ], | ||
| 154 | DimensionType => | ||
| 155 | 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL | ||
| 156 | }, # OPTIONAL | ||
| 157 | Metrics => { | ||
| 158 | 'My__string' => { | ||
| 159 | ComparisonOperator => 'My__string', | ||
| 160 | Value => 1, | ||
| 161 | |||
| 162 | }, | ||
| 163 | }, # OPTIONAL | ||
| 164 | }, | ||
| 165 | FilterType => 'SYSTEM', # values: SYSTEM, ENDPOINT | ||
| 166 | |||
| 167 | }, # OPTIONAL | ||
| 168 | Frequency => 'ONCE' | ||
| 169 | , # values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT; OPTIONAL | ||
| 170 | IsLocalTime => 1, # OPTIONAL | ||
| 171 | QuietTime => { | ||
| 172 | End => 'My__string', | ||
| 173 | Start => 'My__string', | ||
| 174 | }, # OPTIONAL | ||
| 175 | Timezone => 'My__string', | ||
| 176 | }, # OPTIONAL | ||
| 177 | TemplateConfiguration => { | ||
| 178 | EmailTemplate => { | ||
| 179 | Name => 'My__string', | ||
| 180 | Version => 'My__string', | ||
| 181 | }, # OPTIONAL | ||
| 182 | PushTemplate => { | ||
| 183 | Name => 'My__string', | ||
| 184 | Version => 'My__string', | ||
| 185 | }, # OPTIONAL | ||
| 186 | SMSTemplate => { | ||
| 187 | Name => 'My__string', | ||
| 188 | Version => 'My__string', | ||
| 189 | }, # OPTIONAL | ||
| 190 | VoiceTemplate => { | ||
| 191 | Name => 'My__string', | ||
| 192 | Version => 'My__string', | ||
| 193 | }, # OPTIONAL | ||
| 194 | }, # OPTIONAL | ||
| 195 | TreatmentDescription => 'My__string', | ||
| 196 | TreatmentName => 'My__string', | ||
| 197 | }, | ||
| 198 | ... | ||
| 199 | ], # OPTIONAL | ||
| 200 | CustomDeliveryConfiguration => { | ||
| 201 | DeliveryUri => 'My__string', | ||
| 202 | EndpointTypes => [ | ||
| 203 | 'PUSH', | ||
| 204 | ... # values: PUSH, GCM, APNS, APNS_SANDBOX, APNS_VOIP, APNS_VOIP_SANDBOX, ADM, SMS, VOICE, EMAIL, BAIDU, CUSTOM | ||
| 205 | ], # OPTIONAL | ||
| 206 | }, # OPTIONAL | ||
| 207 | Description => 'My__string', | ||
| 208 | HoldoutPercent => 1, | ||
| 209 | Hook => { | ||
| 210 | LambdaFunctionName => 'My__string', | ||
| 211 | Mode => 'DELIVERY', # values: DELIVERY, FILTER; OPTIONAL | ||
| 212 | WebUrl => 'My__string', | ||
| 213 | }, # OPTIONAL | ||
| 214 | IsPaused => 1, # OPTIONAL | ||
| 215 | Limits => { | ||
| 216 | Daily => 1, | ||
| 217 | MaximumDuration => 1, | ||
| 218 | MessagesPerSecond => 1, | ||
| 219 | Total => 1, | ||
| 220 | }, # OPTIONAL | ||
| 221 | MessageConfiguration => { | ||
| 222 | ADMMessage => { | ||
| 223 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 224 | Body => 'My__string', | ||
| 225 | ImageIconUrl => 'My__string', | ||
| 226 | ImageSmallIconUrl => 'My__string', | ||
| 227 | ImageUrl => 'My__string', | ||
| 228 | JsonBody => 'My__string', | ||
| 229 | MediaUrl => 'My__string', | ||
| 230 | RawContent => 'My__string', | ||
| 231 | SilentPush => 1, # OPTIONAL | ||
| 232 | TimeToLive => 1, | ||
| 233 | Title => 'My__string', | ||
| 234 | Url => 'My__string', | ||
| 235 | }, # OPTIONAL | ||
| 236 | APNSMessage => { | ||
| 237 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 238 | Body => 'My__string', | ||
| 239 | ImageIconUrl => 'My__string', | ||
| 240 | ImageSmallIconUrl => 'My__string', | ||
| 241 | ImageUrl => 'My__string', | ||
| 242 | JsonBody => 'My__string', | ||
| 243 | MediaUrl => 'My__string', | ||
| 244 | RawContent => 'My__string', | ||
| 245 | SilentPush => 1, # OPTIONAL | ||
| 246 | TimeToLive => 1, | ||
| 247 | Title => 'My__string', | ||
| 248 | Url => 'My__string', | ||
| 249 | }, # OPTIONAL | ||
| 250 | BaiduMessage => { | ||
| 251 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 252 | Body => 'My__string', | ||
| 253 | ImageIconUrl => 'My__string', | ||
| 254 | ImageSmallIconUrl => 'My__string', | ||
| 255 | ImageUrl => 'My__string', | ||
| 256 | JsonBody => 'My__string', | ||
| 257 | MediaUrl => 'My__string', | ||
| 258 | RawContent => 'My__string', | ||
| 259 | SilentPush => 1, # OPTIONAL | ||
| 260 | TimeToLive => 1, | ||
| 261 | Title => 'My__string', | ||
| 262 | Url => 'My__string', | ||
| 263 | }, # OPTIONAL | ||
| 264 | CustomMessage => { Data => 'My__string', }, # OPTIONAL | ||
| 265 | DefaultMessage => { | ||
| 266 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 267 | Body => 'My__string', | ||
| 268 | ImageIconUrl => 'My__string', | ||
| 269 | ImageSmallIconUrl => 'My__string', | ||
| 270 | ImageUrl => 'My__string', | ||
| 271 | JsonBody => 'My__string', | ||
| 272 | MediaUrl => 'My__string', | ||
| 273 | RawContent => 'My__string', | ||
| 274 | SilentPush => 1, # OPTIONAL | ||
| 275 | TimeToLive => 1, | ||
| 276 | Title => 'My__string', | ||
| 277 | Url => 'My__string', | ||
| 278 | }, # OPTIONAL | ||
| 279 | EmailMessage => { | ||
| 280 | Body => 'My__string', | ||
| 281 | FromAddress => 'My__string', | ||
| 282 | HtmlBody => 'My__string', | ||
| 283 | Title => 'My__string', | ||
| 284 | }, # OPTIONAL | ||
| 285 | GCMMessage => { | ||
| 286 | Action => 'OPEN_APP', # values: OPEN_APP, DEEP_LINK, URL; OPTIONAL | ||
| 287 | Body => 'My__string', | ||
| 288 | ImageIconUrl => 'My__string', | ||
| 289 | ImageSmallIconUrl => 'My__string', | ||
| 290 | ImageUrl => 'My__string', | ||
| 291 | JsonBody => 'My__string', | ||
| 292 | MediaUrl => 'My__string', | ||
| 293 | RawContent => 'My__string', | ||
| 294 | SilentPush => 1, # OPTIONAL | ||
| 295 | TimeToLive => 1, | ||
| 296 | Title => 'My__string', | ||
| 297 | Url => 'My__string', | ||
| 298 | }, # OPTIONAL | ||
| 299 | SMSMessage => { | ||
| 300 | Body => 'My__string', | ||
| 301 | EntityId => 'My__string', | ||
| 302 | MessageType => | ||
| 303 | 'TRANSACTIONAL', # values: TRANSACTIONAL, PROMOTIONAL; OPTIONAL | ||
| 304 | OriginationNumber => 'My__string', | ||
| 305 | SenderId => 'My__string', | ||
| 306 | TemplateId => 'My__string', | ||
| 307 | }, # OPTIONAL | ||
| 308 | }, # OPTIONAL | ||
| 309 | Name => 'My__string', | ||
| 310 | Schedule => { | ||
| 311 | StartTime => 'My__string', | ||
| 312 | EndTime => 'My__string', | ||
| 313 | EventFilter => { | ||
| 314 | Dimensions => { | ||
| 315 | Attributes => { | ||
| 316 | 'My__string' => { | ||
| 317 | Values => [ 'My__string', ... ], | ||
| 318 | AttributeType => 'INCLUSIVE' | ||
| 319 | , # values: INCLUSIVE, EXCLUSIVE, CONTAINS, BEFORE, AFTER, ON, BETWEEN; OPTIONAL | ||
| 320 | }, | ||
| 321 | }, # OPTIONAL | ||
| 322 | EventType => { | ||
| 323 | Values => [ 'My__string', ... ], | ||
| 324 | DimensionType => | ||
| 325 | 'INCLUSIVE', # values: INCLUSIVE, EXCLUSIVE; OPTIONAL | ||
| 326 | }, # OPTIONAL | ||
| 327 | Metrics => { | ||
| 328 | 'My__string' => { | ||
| 329 | ComparisonOperator => 'My__string', | ||
| 330 | Value => 1, | ||
| 331 | |||
| 332 | }, | ||
| 333 | }, # OPTIONAL | ||
| 334 | }, | ||
| 335 | FilterType => 'SYSTEM', # values: SYSTEM, ENDPOINT | ||
| 336 | |||
| 337 | }, # OPTIONAL | ||
| 338 | Frequency => 'ONCE' | ||
| 339 | , # values: ONCE, HOURLY, DAILY, WEEKLY, MONTHLY, EVENT; OPTIONAL | ||
| 340 | IsLocalTime => 1, # OPTIONAL | ||
| 341 | QuietTime => { | ||
| 342 | End => 'My__string', | ||
| 343 | Start => 'My__string', | ||
| 344 | }, # OPTIONAL | ||
| 345 | Timezone => 'My__string', | ||
| 346 | }, # OPTIONAL | ||
| 347 | SegmentId => 'My__string', | ||
| 348 | SegmentVersion => 1, | ||
| 349 | Tags => { 'My__string' => 'My__string', }, # OPTIONAL | ||
| 350 | TemplateConfiguration => { | ||
| 351 | EmailTemplate => { | ||
| 352 | Name => 'My__string', | ||
| 353 | Version => 'My__string', | ||
| 354 | }, # OPTIONAL | ||
| 355 | PushTemplate => { | ||
| 356 | Name => 'My__string', | ||
| 357 | Version => 'My__string', | ||
| 358 | }, # OPTIONAL | ||
| 359 | SMSTemplate => { | ||
| 360 | Name => 'My__string', | ||
| 361 | Version => 'My__string', | ||
| 362 | }, # OPTIONAL | ||
| 363 | VoiceTemplate => { | ||
| 364 | Name => 'My__string', | ||
| 365 | Version => 'My__string', | ||
| 366 | }, # OPTIONAL | ||
| 367 | }, # OPTIONAL | ||
| 368 | TreatmentDescription => 'My__string', | ||
| 369 | TreatmentName => 'My__string', | ||
| 370 | }, | ||
| 371 | |||
| 372 | ); | ||
| 373 | |||
| 374 | # Results: | ||
| 375 | my $CampaignResponse = $UpdateCampaignResponse->CampaignResponse; | ||
| 376 | |||
| 377 | # Returns a L<Paws::Pinpoint::UpdateCampaignResponse> object. | ||
| 378 | |||
| 379 | 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. | ||
| 380 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/pinpoint/UpdateCampaign> | ||
| 381 | |||
| 382 | =head1 ATTRIBUTES | ||
| 383 | |||
| 384 | |||
| 385 | =head2 B<REQUIRED> ApplicationId => Str | ||
| 386 | |||
| 387 | The unique identifier for the application. This identifier is displayed | ||
| 388 | as the B<Project ID> on the Amazon Pinpoint console. | ||
| 389 | |||
| 390 | |||
| 391 | |||
| 392 | =head2 B<REQUIRED> CampaignId => Str | ||
| 393 | |||
| 394 | The unique identifier for the campaign. | ||
| 395 | |||
| 396 | |||
| 397 | |||
| 398 | =head2 B<REQUIRED> WriteCampaignRequest => L<Paws::Pinpoint::WriteCampaignRequest> | ||
| 399 | |||
| 400 | |||
| 401 | |||
| 402 | |||
| 403 | |||
| 404 | |||
| 405 | =head1 SEE ALSO | ||
| 406 | |||
| 407 | This class forms part of L<Paws>, documenting arguments for method UpdateCampaign in L<Paws::Pinpoint> | ||
| 408 | |||
| 409 | =head1 BUGS and CONTRIBUTIONS | ||
| 410 | |||
| 411 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 412 | |||
| 413 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 414 | |||
| 415 | =cut | ||
| 416 |