1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package pinpoint
4
5import (
6	"github.com/aws/aws-sdk-go/aws"
7	"github.com/aws/aws-sdk-go/aws/awsutil"
8	"github.com/aws/aws-sdk-go/aws/request"
9)
10
11const opCreateApp = "CreateApp"
12
13// CreateAppRequest generates a "aws/request.Request" representing the
14// client's request for the CreateApp operation. The "output" return
15// value will be populated with the request's response once the request complets
16// successfuly.
17//
18// Use "Send" method on the returned Request to send the API call to the service.
19// the "output" return value is not valid until after Send returns without error.
20//
21// See CreateApp for more information on using the CreateApp
22// API call, and error handling.
23//
24// This method is useful when you want to inject custom logic or configuration
25// into the SDK's request lifecycle. Such as custom headers, or retry logic.
26//
27//
28//    // Example sending a request using the CreateAppRequest method.
29//    req, resp := client.CreateAppRequest(params)
30//
31//    err := req.Send()
32//    if err == nil { // resp is now filled
33//        fmt.Println(resp)
34//    }
35//
36// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateApp
37func (c *Pinpoint) CreateAppRequest(input *CreateAppInput) (req *request.Request, output *CreateAppOutput) {
38	op := &request.Operation{
39		Name:       opCreateApp,
40		HTTPMethod: "POST",
41		HTTPPath:   "/v1/apps",
42	}
43
44	if input == nil {
45		input = &CreateAppInput{}
46	}
47
48	output = &CreateAppOutput{}
49	req = c.newRequest(op, input, output)
50	return
51}
52
53// CreateApp API operation for Amazon Pinpoint.
54//
55// Creates or updates an app.
56//
57// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
58// with awserr.Error's Code and Message methods to get detailed information about
59// the error.
60//
61// See the AWS API reference guide for Amazon Pinpoint's
62// API operation CreateApp for usage and error information.
63//
64// Returned Error Codes:
65//   * ErrCodeBadRequestException "BadRequestException"
66//
67//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
68//
69//   * ErrCodeForbiddenException "ForbiddenException"
70//
71//   * ErrCodeNotFoundException "NotFoundException"
72//
73//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
74//
75//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
76//
77// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateApp
78func (c *Pinpoint) CreateApp(input *CreateAppInput) (*CreateAppOutput, error) {
79	req, out := c.CreateAppRequest(input)
80	return out, req.Send()
81}
82
83// CreateAppWithContext is the same as CreateApp with the addition of
84// the ability to pass a context and additional request options.
85//
86// See CreateApp for details on how to use this API operation.
87//
88// The context must be non-nil and will be used for request cancellation. If
89// the context is nil a panic will occur. In the future the SDK may create
90// sub-contexts for http.Requests. See https://golang.org/pkg/context/
91// for more information on using Contexts.
92func (c *Pinpoint) CreateAppWithContext(ctx aws.Context, input *CreateAppInput, opts ...request.Option) (*CreateAppOutput, error) {
93	req, out := c.CreateAppRequest(input)
94	req.SetContext(ctx)
95	req.ApplyOptions(opts...)
96	return out, req.Send()
97}
98
99const opCreateCampaign = "CreateCampaign"
100
101// CreateCampaignRequest generates a "aws/request.Request" representing the
102// client's request for the CreateCampaign operation. The "output" return
103// value will be populated with the request's response once the request complets
104// successfuly.
105//
106// Use "Send" method on the returned Request to send the API call to the service.
107// the "output" return value is not valid until after Send returns without error.
108//
109// See CreateCampaign for more information on using the CreateCampaign
110// API call, and error handling.
111//
112// This method is useful when you want to inject custom logic or configuration
113// into the SDK's request lifecycle. Such as custom headers, or retry logic.
114//
115//
116//    // Example sending a request using the CreateCampaignRequest method.
117//    req, resp := client.CreateCampaignRequest(params)
118//
119//    err := req.Send()
120//    if err == nil { // resp is now filled
121//        fmt.Println(resp)
122//    }
123//
124// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateCampaign
125func (c *Pinpoint) CreateCampaignRequest(input *CreateCampaignInput) (req *request.Request, output *CreateCampaignOutput) {
126	op := &request.Operation{
127		Name:       opCreateCampaign,
128		HTTPMethod: "POST",
129		HTTPPath:   "/v1/apps/{application-id}/campaigns",
130	}
131
132	if input == nil {
133		input = &CreateCampaignInput{}
134	}
135
136	output = &CreateCampaignOutput{}
137	req = c.newRequest(op, input, output)
138	return
139}
140
141// CreateCampaign API operation for Amazon Pinpoint.
142//
143// Creates or updates a campaign.
144//
145// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
146// with awserr.Error's Code and Message methods to get detailed information about
147// the error.
148//
149// See the AWS API reference guide for Amazon Pinpoint's
150// API operation CreateCampaign for usage and error information.
151//
152// Returned Error Codes:
153//   * ErrCodeBadRequestException "BadRequestException"
154//
155//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
156//
157//   * ErrCodeForbiddenException "ForbiddenException"
158//
159//   * ErrCodeNotFoundException "NotFoundException"
160//
161//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
162//
163//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
164//
165// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateCampaign
166func (c *Pinpoint) CreateCampaign(input *CreateCampaignInput) (*CreateCampaignOutput, error) {
167	req, out := c.CreateCampaignRequest(input)
168	return out, req.Send()
169}
170
171// CreateCampaignWithContext is the same as CreateCampaign with the addition of
172// the ability to pass a context and additional request options.
173//
174// See CreateCampaign for details on how to use this API operation.
175//
176// The context must be non-nil and will be used for request cancellation. If
177// the context is nil a panic will occur. In the future the SDK may create
178// sub-contexts for http.Requests. See https://golang.org/pkg/context/
179// for more information on using Contexts.
180func (c *Pinpoint) CreateCampaignWithContext(ctx aws.Context, input *CreateCampaignInput, opts ...request.Option) (*CreateCampaignOutput, error) {
181	req, out := c.CreateCampaignRequest(input)
182	req.SetContext(ctx)
183	req.ApplyOptions(opts...)
184	return out, req.Send()
185}
186
187const opCreateImportJob = "CreateImportJob"
188
189// CreateImportJobRequest generates a "aws/request.Request" representing the
190// client's request for the CreateImportJob operation. The "output" return
191// value will be populated with the request's response once the request complets
192// successfuly.
193//
194// Use "Send" method on the returned Request to send the API call to the service.
195// the "output" return value is not valid until after Send returns without error.
196//
197// See CreateImportJob for more information on using the CreateImportJob
198// API call, and error handling.
199//
200// This method is useful when you want to inject custom logic or configuration
201// into the SDK's request lifecycle. Such as custom headers, or retry logic.
202//
203//
204//    // Example sending a request using the CreateImportJobRequest method.
205//    req, resp := client.CreateImportJobRequest(params)
206//
207//    err := req.Send()
208//    if err == nil { // resp is now filled
209//        fmt.Println(resp)
210//    }
211//
212// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateImportJob
213func (c *Pinpoint) CreateImportJobRequest(input *CreateImportJobInput) (req *request.Request, output *CreateImportJobOutput) {
214	op := &request.Operation{
215		Name:       opCreateImportJob,
216		HTTPMethod: "POST",
217		HTTPPath:   "/v1/apps/{application-id}/jobs/import",
218	}
219
220	if input == nil {
221		input = &CreateImportJobInput{}
222	}
223
224	output = &CreateImportJobOutput{}
225	req = c.newRequest(op, input, output)
226	return
227}
228
229// CreateImportJob API operation for Amazon Pinpoint.
230//
231// Creates or updates an import job.
232//
233// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
234// with awserr.Error's Code and Message methods to get detailed information about
235// the error.
236//
237// See the AWS API reference guide for Amazon Pinpoint's
238// API operation CreateImportJob for usage and error information.
239//
240// Returned Error Codes:
241//   * ErrCodeBadRequestException "BadRequestException"
242//
243//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
244//
245//   * ErrCodeForbiddenException "ForbiddenException"
246//
247//   * ErrCodeNotFoundException "NotFoundException"
248//
249//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
250//
251//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
252//
253// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateImportJob
254func (c *Pinpoint) CreateImportJob(input *CreateImportJobInput) (*CreateImportJobOutput, error) {
255	req, out := c.CreateImportJobRequest(input)
256	return out, req.Send()
257}
258
259// CreateImportJobWithContext is the same as CreateImportJob with the addition of
260// the ability to pass a context and additional request options.
261//
262// See CreateImportJob for details on how to use this API operation.
263//
264// The context must be non-nil and will be used for request cancellation. If
265// the context is nil a panic will occur. In the future the SDK may create
266// sub-contexts for http.Requests. See https://golang.org/pkg/context/
267// for more information on using Contexts.
268func (c *Pinpoint) CreateImportJobWithContext(ctx aws.Context, input *CreateImportJobInput, opts ...request.Option) (*CreateImportJobOutput, error) {
269	req, out := c.CreateImportJobRequest(input)
270	req.SetContext(ctx)
271	req.ApplyOptions(opts...)
272	return out, req.Send()
273}
274
275const opCreateSegment = "CreateSegment"
276
277// CreateSegmentRequest generates a "aws/request.Request" representing the
278// client's request for the CreateSegment operation. The "output" return
279// value will be populated with the request's response once the request complets
280// successfuly.
281//
282// Use "Send" method on the returned Request to send the API call to the service.
283// the "output" return value is not valid until after Send returns without error.
284//
285// See CreateSegment for more information on using the CreateSegment
286// API call, and error handling.
287//
288// This method is useful when you want to inject custom logic or configuration
289// into the SDK's request lifecycle. Such as custom headers, or retry logic.
290//
291//
292//    // Example sending a request using the CreateSegmentRequest method.
293//    req, resp := client.CreateSegmentRequest(params)
294//
295//    err := req.Send()
296//    if err == nil { // resp is now filled
297//        fmt.Println(resp)
298//    }
299//
300// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateSegment
301func (c *Pinpoint) CreateSegmentRequest(input *CreateSegmentInput) (req *request.Request, output *CreateSegmentOutput) {
302	op := &request.Operation{
303		Name:       opCreateSegment,
304		HTTPMethod: "POST",
305		HTTPPath:   "/v1/apps/{application-id}/segments",
306	}
307
308	if input == nil {
309		input = &CreateSegmentInput{}
310	}
311
312	output = &CreateSegmentOutput{}
313	req = c.newRequest(op, input, output)
314	return
315}
316
317// CreateSegment API operation for Amazon Pinpoint.
318//
319// Used to create or update a segment.
320//
321// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
322// with awserr.Error's Code and Message methods to get detailed information about
323// the error.
324//
325// See the AWS API reference guide for Amazon Pinpoint's
326// API operation CreateSegment for usage and error information.
327//
328// Returned Error Codes:
329//   * ErrCodeBadRequestException "BadRequestException"
330//
331//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
332//
333//   * ErrCodeForbiddenException "ForbiddenException"
334//
335//   * ErrCodeNotFoundException "NotFoundException"
336//
337//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
338//
339//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
340//
341// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateSegment
342func (c *Pinpoint) CreateSegment(input *CreateSegmentInput) (*CreateSegmentOutput, error) {
343	req, out := c.CreateSegmentRequest(input)
344	return out, req.Send()
345}
346
347// CreateSegmentWithContext is the same as CreateSegment with the addition of
348// the ability to pass a context and additional request options.
349//
350// See CreateSegment for details on how to use this API operation.
351//
352// The context must be non-nil and will be used for request cancellation. If
353// the context is nil a panic will occur. In the future the SDK may create
354// sub-contexts for http.Requests. See https://golang.org/pkg/context/
355// for more information on using Contexts.
356func (c *Pinpoint) CreateSegmentWithContext(ctx aws.Context, input *CreateSegmentInput, opts ...request.Option) (*CreateSegmentOutput, error) {
357	req, out := c.CreateSegmentRequest(input)
358	req.SetContext(ctx)
359	req.ApplyOptions(opts...)
360	return out, req.Send()
361}
362
363const opDeleteAdmChannel = "DeleteAdmChannel"
364
365// DeleteAdmChannelRequest generates a "aws/request.Request" representing the
366// client's request for the DeleteAdmChannel operation. The "output" return
367// value will be populated with the request's response once the request complets
368// successfuly.
369//
370// Use "Send" method on the returned Request to send the API call to the service.
371// the "output" return value is not valid until after Send returns without error.
372//
373// See DeleteAdmChannel for more information on using the DeleteAdmChannel
374// API call, and error handling.
375//
376// This method is useful when you want to inject custom logic or configuration
377// into the SDK's request lifecycle. Such as custom headers, or retry logic.
378//
379//
380//    // Example sending a request using the DeleteAdmChannelRequest method.
381//    req, resp := client.DeleteAdmChannelRequest(params)
382//
383//    err := req.Send()
384//    if err == nil { // resp is now filled
385//        fmt.Println(resp)
386//    }
387//
388// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAdmChannel
389func (c *Pinpoint) DeleteAdmChannelRequest(input *DeleteAdmChannelInput) (req *request.Request, output *DeleteAdmChannelOutput) {
390	op := &request.Operation{
391		Name:       opDeleteAdmChannel,
392		HTTPMethod: "DELETE",
393		HTTPPath:   "/v1/apps/{application-id}/channels/adm",
394	}
395
396	if input == nil {
397		input = &DeleteAdmChannelInput{}
398	}
399
400	output = &DeleteAdmChannelOutput{}
401	req = c.newRequest(op, input, output)
402	return
403}
404
405// DeleteAdmChannel API operation for Amazon Pinpoint.
406//
407// Delete an ADM channel
408//
409// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
410// with awserr.Error's Code and Message methods to get detailed information about
411// the error.
412//
413// See the AWS API reference guide for Amazon Pinpoint's
414// API operation DeleteAdmChannel for usage and error information.
415//
416// Returned Error Codes:
417//   * ErrCodeBadRequestException "BadRequestException"
418//
419//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
420//
421//   * ErrCodeForbiddenException "ForbiddenException"
422//
423//   * ErrCodeNotFoundException "NotFoundException"
424//
425//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
426//
427//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
428//
429// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAdmChannel
430func (c *Pinpoint) DeleteAdmChannel(input *DeleteAdmChannelInput) (*DeleteAdmChannelOutput, error) {
431	req, out := c.DeleteAdmChannelRequest(input)
432	return out, req.Send()
433}
434
435// DeleteAdmChannelWithContext is the same as DeleteAdmChannel with the addition of
436// the ability to pass a context and additional request options.
437//
438// See DeleteAdmChannel for details on how to use this API operation.
439//
440// The context must be non-nil and will be used for request cancellation. If
441// the context is nil a panic will occur. In the future the SDK may create
442// sub-contexts for http.Requests. See https://golang.org/pkg/context/
443// for more information on using Contexts.
444func (c *Pinpoint) DeleteAdmChannelWithContext(ctx aws.Context, input *DeleteAdmChannelInput, opts ...request.Option) (*DeleteAdmChannelOutput, error) {
445	req, out := c.DeleteAdmChannelRequest(input)
446	req.SetContext(ctx)
447	req.ApplyOptions(opts...)
448	return out, req.Send()
449}
450
451const opDeleteApnsChannel = "DeleteApnsChannel"
452
453// DeleteApnsChannelRequest generates a "aws/request.Request" representing the
454// client's request for the DeleteApnsChannel operation. The "output" return
455// value will be populated with the request's response once the request complets
456// successfuly.
457//
458// Use "Send" method on the returned Request to send the API call to the service.
459// the "output" return value is not valid until after Send returns without error.
460//
461// See DeleteApnsChannel for more information on using the DeleteApnsChannel
462// API call, and error handling.
463//
464// This method is useful when you want to inject custom logic or configuration
465// into the SDK's request lifecycle. Such as custom headers, or retry logic.
466//
467//
468//    // Example sending a request using the DeleteApnsChannelRequest method.
469//    req, resp := client.DeleteApnsChannelRequest(params)
470//
471//    err := req.Send()
472//    if err == nil { // resp is now filled
473//        fmt.Println(resp)
474//    }
475//
476// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsChannel
477func (c *Pinpoint) DeleteApnsChannelRequest(input *DeleteApnsChannelInput) (req *request.Request, output *DeleteApnsChannelOutput) {
478	op := &request.Operation{
479		Name:       opDeleteApnsChannel,
480		HTTPMethod: "DELETE",
481		HTTPPath:   "/v1/apps/{application-id}/channels/apns",
482	}
483
484	if input == nil {
485		input = &DeleteApnsChannelInput{}
486	}
487
488	output = &DeleteApnsChannelOutput{}
489	req = c.newRequest(op, input, output)
490	return
491}
492
493// DeleteApnsChannel API operation for Amazon Pinpoint.
494//
495// Deletes the APNs channel for an app.
496//
497// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
498// with awserr.Error's Code and Message methods to get detailed information about
499// the error.
500//
501// See the AWS API reference guide for Amazon Pinpoint's
502// API operation DeleteApnsChannel for usage and error information.
503//
504// Returned Error Codes:
505//   * ErrCodeBadRequestException "BadRequestException"
506//
507//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
508//
509//   * ErrCodeForbiddenException "ForbiddenException"
510//
511//   * ErrCodeNotFoundException "NotFoundException"
512//
513//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
514//
515//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
516//
517// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsChannel
518func (c *Pinpoint) DeleteApnsChannel(input *DeleteApnsChannelInput) (*DeleteApnsChannelOutput, error) {
519	req, out := c.DeleteApnsChannelRequest(input)
520	return out, req.Send()
521}
522
523// DeleteApnsChannelWithContext is the same as DeleteApnsChannel with the addition of
524// the ability to pass a context and additional request options.
525//
526// See DeleteApnsChannel for details on how to use this API operation.
527//
528// The context must be non-nil and will be used for request cancellation. If
529// the context is nil a panic will occur. In the future the SDK may create
530// sub-contexts for http.Requests. See https://golang.org/pkg/context/
531// for more information on using Contexts.
532func (c *Pinpoint) DeleteApnsChannelWithContext(ctx aws.Context, input *DeleteApnsChannelInput, opts ...request.Option) (*DeleteApnsChannelOutput, error) {
533	req, out := c.DeleteApnsChannelRequest(input)
534	req.SetContext(ctx)
535	req.ApplyOptions(opts...)
536	return out, req.Send()
537}
538
539const opDeleteApnsSandboxChannel = "DeleteApnsSandboxChannel"
540
541// DeleteApnsSandboxChannelRequest generates a "aws/request.Request" representing the
542// client's request for the DeleteApnsSandboxChannel operation. The "output" return
543// value will be populated with the request's response once the request complets
544// successfuly.
545//
546// Use "Send" method on the returned Request to send the API call to the service.
547// the "output" return value is not valid until after Send returns without error.
548//
549// See DeleteApnsSandboxChannel for more information on using the DeleteApnsSandboxChannel
550// API call, and error handling.
551//
552// This method is useful when you want to inject custom logic or configuration
553// into the SDK's request lifecycle. Such as custom headers, or retry logic.
554//
555//
556//    // Example sending a request using the DeleteApnsSandboxChannelRequest method.
557//    req, resp := client.DeleteApnsSandboxChannelRequest(params)
558//
559//    err := req.Send()
560//    if err == nil { // resp is now filled
561//        fmt.Println(resp)
562//    }
563//
564// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsSandboxChannel
565func (c *Pinpoint) DeleteApnsSandboxChannelRequest(input *DeleteApnsSandboxChannelInput) (req *request.Request, output *DeleteApnsSandboxChannelOutput) {
566	op := &request.Operation{
567		Name:       opDeleteApnsSandboxChannel,
568		HTTPMethod: "DELETE",
569		HTTPPath:   "/v1/apps/{application-id}/channels/apns_sandbox",
570	}
571
572	if input == nil {
573		input = &DeleteApnsSandboxChannelInput{}
574	}
575
576	output = &DeleteApnsSandboxChannelOutput{}
577	req = c.newRequest(op, input, output)
578	return
579}
580
581// DeleteApnsSandboxChannel API operation for Amazon Pinpoint.
582//
583// Delete an APNS sandbox channel
584//
585// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
586// with awserr.Error's Code and Message methods to get detailed information about
587// the error.
588//
589// See the AWS API reference guide for Amazon Pinpoint's
590// API operation DeleteApnsSandboxChannel for usage and error information.
591//
592// Returned Error Codes:
593//   * ErrCodeBadRequestException "BadRequestException"
594//
595//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
596//
597//   * ErrCodeForbiddenException "ForbiddenException"
598//
599//   * ErrCodeNotFoundException "NotFoundException"
600//
601//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
602//
603//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
604//
605// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsSandboxChannel
606func (c *Pinpoint) DeleteApnsSandboxChannel(input *DeleteApnsSandboxChannelInput) (*DeleteApnsSandboxChannelOutput, error) {
607	req, out := c.DeleteApnsSandboxChannelRequest(input)
608	return out, req.Send()
609}
610
611// DeleteApnsSandboxChannelWithContext is the same as DeleteApnsSandboxChannel with the addition of
612// the ability to pass a context and additional request options.
613//
614// See DeleteApnsSandboxChannel for details on how to use this API operation.
615//
616// The context must be non-nil and will be used for request cancellation. If
617// the context is nil a panic will occur. In the future the SDK may create
618// sub-contexts for http.Requests. See https://golang.org/pkg/context/
619// for more information on using Contexts.
620func (c *Pinpoint) DeleteApnsSandboxChannelWithContext(ctx aws.Context, input *DeleteApnsSandboxChannelInput, opts ...request.Option) (*DeleteApnsSandboxChannelOutput, error) {
621	req, out := c.DeleteApnsSandboxChannelRequest(input)
622	req.SetContext(ctx)
623	req.ApplyOptions(opts...)
624	return out, req.Send()
625}
626
627const opDeleteApnsVoipChannel = "DeleteApnsVoipChannel"
628
629// DeleteApnsVoipChannelRequest generates a "aws/request.Request" representing the
630// client's request for the DeleteApnsVoipChannel operation. The "output" return
631// value will be populated with the request's response once the request complets
632// successfuly.
633//
634// Use "Send" method on the returned Request to send the API call to the service.
635// the "output" return value is not valid until after Send returns without error.
636//
637// See DeleteApnsVoipChannel for more information on using the DeleteApnsVoipChannel
638// API call, and error handling.
639//
640// This method is useful when you want to inject custom logic or configuration
641// into the SDK's request lifecycle. Such as custom headers, or retry logic.
642//
643//
644//    // Example sending a request using the DeleteApnsVoipChannelRequest method.
645//    req, resp := client.DeleteApnsVoipChannelRequest(params)
646//
647//    err := req.Send()
648//    if err == nil { // resp is now filled
649//        fmt.Println(resp)
650//    }
651//
652// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipChannel
653func (c *Pinpoint) DeleteApnsVoipChannelRequest(input *DeleteApnsVoipChannelInput) (req *request.Request, output *DeleteApnsVoipChannelOutput) {
654	op := &request.Operation{
655		Name:       opDeleteApnsVoipChannel,
656		HTTPMethod: "DELETE",
657		HTTPPath:   "/v1/apps/{application-id}/channels/apns_voip",
658	}
659
660	if input == nil {
661		input = &DeleteApnsVoipChannelInput{}
662	}
663
664	output = &DeleteApnsVoipChannelOutput{}
665	req = c.newRequest(op, input, output)
666	return
667}
668
669// DeleteApnsVoipChannel API operation for Amazon Pinpoint.
670//
671// Delete an APNS VOIP channel
672//
673// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
674// with awserr.Error's Code and Message methods to get detailed information about
675// the error.
676//
677// See the AWS API reference guide for Amazon Pinpoint's
678// API operation DeleteApnsVoipChannel for usage and error information.
679//
680// Returned Error Codes:
681//   * ErrCodeBadRequestException "BadRequestException"
682//
683//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
684//
685//   * ErrCodeForbiddenException "ForbiddenException"
686//
687//   * ErrCodeNotFoundException "NotFoundException"
688//
689//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
690//
691//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
692//
693// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipChannel
694func (c *Pinpoint) DeleteApnsVoipChannel(input *DeleteApnsVoipChannelInput) (*DeleteApnsVoipChannelOutput, error) {
695	req, out := c.DeleteApnsVoipChannelRequest(input)
696	return out, req.Send()
697}
698
699// DeleteApnsVoipChannelWithContext is the same as DeleteApnsVoipChannel with the addition of
700// the ability to pass a context and additional request options.
701//
702// See DeleteApnsVoipChannel for details on how to use this API operation.
703//
704// The context must be non-nil and will be used for request cancellation. If
705// the context is nil a panic will occur. In the future the SDK may create
706// sub-contexts for http.Requests. See https://golang.org/pkg/context/
707// for more information on using Contexts.
708func (c *Pinpoint) DeleteApnsVoipChannelWithContext(ctx aws.Context, input *DeleteApnsVoipChannelInput, opts ...request.Option) (*DeleteApnsVoipChannelOutput, error) {
709	req, out := c.DeleteApnsVoipChannelRequest(input)
710	req.SetContext(ctx)
711	req.ApplyOptions(opts...)
712	return out, req.Send()
713}
714
715const opDeleteApnsVoipSandboxChannel = "DeleteApnsVoipSandboxChannel"
716
717// DeleteApnsVoipSandboxChannelRequest generates a "aws/request.Request" representing the
718// client's request for the DeleteApnsVoipSandboxChannel operation. The "output" return
719// value will be populated with the request's response once the request complets
720// successfuly.
721//
722// Use "Send" method on the returned Request to send the API call to the service.
723// the "output" return value is not valid until after Send returns without error.
724//
725// See DeleteApnsVoipSandboxChannel for more information on using the DeleteApnsVoipSandboxChannel
726// API call, and error handling.
727//
728// This method is useful when you want to inject custom logic or configuration
729// into the SDK's request lifecycle. Such as custom headers, or retry logic.
730//
731//
732//    // Example sending a request using the DeleteApnsVoipSandboxChannelRequest method.
733//    req, resp := client.DeleteApnsVoipSandboxChannelRequest(params)
734//
735//    err := req.Send()
736//    if err == nil { // resp is now filled
737//        fmt.Println(resp)
738//    }
739//
740// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipSandboxChannel
741func (c *Pinpoint) DeleteApnsVoipSandboxChannelRequest(input *DeleteApnsVoipSandboxChannelInput) (req *request.Request, output *DeleteApnsVoipSandboxChannelOutput) {
742	op := &request.Operation{
743		Name:       opDeleteApnsVoipSandboxChannel,
744		HTTPMethod: "DELETE",
745		HTTPPath:   "/v1/apps/{application-id}/channels/apns_voip_sandbox",
746	}
747
748	if input == nil {
749		input = &DeleteApnsVoipSandboxChannelInput{}
750	}
751
752	output = &DeleteApnsVoipSandboxChannelOutput{}
753	req = c.newRequest(op, input, output)
754	return
755}
756
757// DeleteApnsVoipSandboxChannel API operation for Amazon Pinpoint.
758//
759// Delete an APNS VOIP sandbox channel
760//
761// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
762// with awserr.Error's Code and Message methods to get detailed information about
763// the error.
764//
765// See the AWS API reference guide for Amazon Pinpoint's
766// API operation DeleteApnsVoipSandboxChannel for usage and error information.
767//
768// Returned Error Codes:
769//   * ErrCodeBadRequestException "BadRequestException"
770//
771//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
772//
773//   * ErrCodeForbiddenException "ForbiddenException"
774//
775//   * ErrCodeNotFoundException "NotFoundException"
776//
777//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
778//
779//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
780//
781// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipSandboxChannel
782func (c *Pinpoint) DeleteApnsVoipSandboxChannel(input *DeleteApnsVoipSandboxChannelInput) (*DeleteApnsVoipSandboxChannelOutput, error) {
783	req, out := c.DeleteApnsVoipSandboxChannelRequest(input)
784	return out, req.Send()
785}
786
787// DeleteApnsVoipSandboxChannelWithContext is the same as DeleteApnsVoipSandboxChannel with the addition of
788// the ability to pass a context and additional request options.
789//
790// See DeleteApnsVoipSandboxChannel for details on how to use this API operation.
791//
792// The context must be non-nil and will be used for request cancellation. If
793// the context is nil a panic will occur. In the future the SDK may create
794// sub-contexts for http.Requests. See https://golang.org/pkg/context/
795// for more information on using Contexts.
796func (c *Pinpoint) DeleteApnsVoipSandboxChannelWithContext(ctx aws.Context, input *DeleteApnsVoipSandboxChannelInput, opts ...request.Option) (*DeleteApnsVoipSandboxChannelOutput, error) {
797	req, out := c.DeleteApnsVoipSandboxChannelRequest(input)
798	req.SetContext(ctx)
799	req.ApplyOptions(opts...)
800	return out, req.Send()
801}
802
803const opDeleteApp = "DeleteApp"
804
805// DeleteAppRequest generates a "aws/request.Request" representing the
806// client's request for the DeleteApp operation. The "output" return
807// value will be populated with the request's response once the request complets
808// successfuly.
809//
810// Use "Send" method on the returned Request to send the API call to the service.
811// the "output" return value is not valid until after Send returns without error.
812//
813// See DeleteApp for more information on using the DeleteApp
814// API call, and error handling.
815//
816// This method is useful when you want to inject custom logic or configuration
817// into the SDK's request lifecycle. Such as custom headers, or retry logic.
818//
819//
820//    // Example sending a request using the DeleteAppRequest method.
821//    req, resp := client.DeleteAppRequest(params)
822//
823//    err := req.Send()
824//    if err == nil { // resp is now filled
825//        fmt.Println(resp)
826//    }
827//
828// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApp
829func (c *Pinpoint) DeleteAppRequest(input *DeleteAppInput) (req *request.Request, output *DeleteAppOutput) {
830	op := &request.Operation{
831		Name:       opDeleteApp,
832		HTTPMethod: "DELETE",
833		HTTPPath:   "/v1/apps/{application-id}",
834	}
835
836	if input == nil {
837		input = &DeleteAppInput{}
838	}
839
840	output = &DeleteAppOutput{}
841	req = c.newRequest(op, input, output)
842	return
843}
844
845// DeleteApp API operation for Amazon Pinpoint.
846//
847// Deletes an app.
848//
849// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
850// with awserr.Error's Code and Message methods to get detailed information about
851// the error.
852//
853// See the AWS API reference guide for Amazon Pinpoint's
854// API operation DeleteApp for usage and error information.
855//
856// Returned Error Codes:
857//   * ErrCodeBadRequestException "BadRequestException"
858//
859//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
860//
861//   * ErrCodeForbiddenException "ForbiddenException"
862//
863//   * ErrCodeNotFoundException "NotFoundException"
864//
865//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
866//
867//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
868//
869// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApp
870func (c *Pinpoint) DeleteApp(input *DeleteAppInput) (*DeleteAppOutput, error) {
871	req, out := c.DeleteAppRequest(input)
872	return out, req.Send()
873}
874
875// DeleteAppWithContext is the same as DeleteApp with the addition of
876// the ability to pass a context and additional request options.
877//
878// See DeleteApp for details on how to use this API operation.
879//
880// The context must be non-nil and will be used for request cancellation. If
881// the context is nil a panic will occur. In the future the SDK may create
882// sub-contexts for http.Requests. See https://golang.org/pkg/context/
883// for more information on using Contexts.
884func (c *Pinpoint) DeleteAppWithContext(ctx aws.Context, input *DeleteAppInput, opts ...request.Option) (*DeleteAppOutput, error) {
885	req, out := c.DeleteAppRequest(input)
886	req.SetContext(ctx)
887	req.ApplyOptions(opts...)
888	return out, req.Send()
889}
890
891const opDeleteBaiduChannel = "DeleteBaiduChannel"
892
893// DeleteBaiduChannelRequest generates a "aws/request.Request" representing the
894// client's request for the DeleteBaiduChannel operation. The "output" return
895// value will be populated with the request's response once the request complets
896// successfuly.
897//
898// Use "Send" method on the returned Request to send the API call to the service.
899// the "output" return value is not valid until after Send returns without error.
900//
901// See DeleteBaiduChannel for more information on using the DeleteBaiduChannel
902// API call, and error handling.
903//
904// This method is useful when you want to inject custom logic or configuration
905// into the SDK's request lifecycle. Such as custom headers, or retry logic.
906//
907//
908//    // Example sending a request using the DeleteBaiduChannelRequest method.
909//    req, resp := client.DeleteBaiduChannelRequest(params)
910//
911//    err := req.Send()
912//    if err == nil { // resp is now filled
913//        fmt.Println(resp)
914//    }
915//
916// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteBaiduChannel
917func (c *Pinpoint) DeleteBaiduChannelRequest(input *DeleteBaiduChannelInput) (req *request.Request, output *DeleteBaiduChannelOutput) {
918	op := &request.Operation{
919		Name:       opDeleteBaiduChannel,
920		HTTPMethod: "DELETE",
921		HTTPPath:   "/v1/apps/{application-id}/channels/baidu",
922	}
923
924	if input == nil {
925		input = &DeleteBaiduChannelInput{}
926	}
927
928	output = &DeleteBaiduChannelOutput{}
929	req = c.newRequest(op, input, output)
930	return
931}
932
933// DeleteBaiduChannel API operation for Amazon Pinpoint.
934//
935// Delete a BAIDU GCM channel
936//
937// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
938// with awserr.Error's Code and Message methods to get detailed information about
939// the error.
940//
941// See the AWS API reference guide for Amazon Pinpoint's
942// API operation DeleteBaiduChannel for usage and error information.
943//
944// Returned Error Codes:
945//   * ErrCodeBadRequestException "BadRequestException"
946//
947//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
948//
949//   * ErrCodeForbiddenException "ForbiddenException"
950//
951//   * ErrCodeNotFoundException "NotFoundException"
952//
953//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
954//
955//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
956//
957// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteBaiduChannel
958func (c *Pinpoint) DeleteBaiduChannel(input *DeleteBaiduChannelInput) (*DeleteBaiduChannelOutput, error) {
959	req, out := c.DeleteBaiduChannelRequest(input)
960	return out, req.Send()
961}
962
963// DeleteBaiduChannelWithContext is the same as DeleteBaiduChannel with the addition of
964// the ability to pass a context and additional request options.
965//
966// See DeleteBaiduChannel for details on how to use this API operation.
967//
968// The context must be non-nil and will be used for request cancellation. If
969// the context is nil a panic will occur. In the future the SDK may create
970// sub-contexts for http.Requests. See https://golang.org/pkg/context/
971// for more information on using Contexts.
972func (c *Pinpoint) DeleteBaiduChannelWithContext(ctx aws.Context, input *DeleteBaiduChannelInput, opts ...request.Option) (*DeleteBaiduChannelOutput, error) {
973	req, out := c.DeleteBaiduChannelRequest(input)
974	req.SetContext(ctx)
975	req.ApplyOptions(opts...)
976	return out, req.Send()
977}
978
979const opDeleteCampaign = "DeleteCampaign"
980
981// DeleteCampaignRequest generates a "aws/request.Request" representing the
982// client's request for the DeleteCampaign operation. The "output" return
983// value will be populated with the request's response once the request complets
984// successfuly.
985//
986// Use "Send" method on the returned Request to send the API call to the service.
987// the "output" return value is not valid until after Send returns without error.
988//
989// See DeleteCampaign for more information on using the DeleteCampaign
990// API call, and error handling.
991//
992// This method is useful when you want to inject custom logic or configuration
993// into the SDK's request lifecycle. Such as custom headers, or retry logic.
994//
995//
996//    // Example sending a request using the DeleteCampaignRequest method.
997//    req, resp := client.DeleteCampaignRequest(params)
998//
999//    err := req.Send()
1000//    if err == nil { // resp is now filled
1001//        fmt.Println(resp)
1002//    }
1003//
1004// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteCampaign
1005func (c *Pinpoint) DeleteCampaignRequest(input *DeleteCampaignInput) (req *request.Request, output *DeleteCampaignOutput) {
1006	op := &request.Operation{
1007		Name:       opDeleteCampaign,
1008		HTTPMethod: "DELETE",
1009		HTTPPath:   "/v1/apps/{application-id}/campaigns/{campaign-id}",
1010	}
1011
1012	if input == nil {
1013		input = &DeleteCampaignInput{}
1014	}
1015
1016	output = &DeleteCampaignOutput{}
1017	req = c.newRequest(op, input, output)
1018	return
1019}
1020
1021// DeleteCampaign API operation for Amazon Pinpoint.
1022//
1023// Deletes a campaign.
1024//
1025// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1026// with awserr.Error's Code and Message methods to get detailed information about
1027// the error.
1028//
1029// See the AWS API reference guide for Amazon Pinpoint's
1030// API operation DeleteCampaign for usage and error information.
1031//
1032// Returned Error Codes:
1033//   * ErrCodeBadRequestException "BadRequestException"
1034//
1035//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1036//
1037//   * ErrCodeForbiddenException "ForbiddenException"
1038//
1039//   * ErrCodeNotFoundException "NotFoundException"
1040//
1041//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1042//
1043//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1044//
1045// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteCampaign
1046func (c *Pinpoint) DeleteCampaign(input *DeleteCampaignInput) (*DeleteCampaignOutput, error) {
1047	req, out := c.DeleteCampaignRequest(input)
1048	return out, req.Send()
1049}
1050
1051// DeleteCampaignWithContext is the same as DeleteCampaign with the addition of
1052// the ability to pass a context and additional request options.
1053//
1054// See DeleteCampaign for details on how to use this API operation.
1055//
1056// The context must be non-nil and will be used for request cancellation. If
1057// the context is nil a panic will occur. In the future the SDK may create
1058// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1059// for more information on using Contexts.
1060func (c *Pinpoint) DeleteCampaignWithContext(ctx aws.Context, input *DeleteCampaignInput, opts ...request.Option) (*DeleteCampaignOutput, error) {
1061	req, out := c.DeleteCampaignRequest(input)
1062	req.SetContext(ctx)
1063	req.ApplyOptions(opts...)
1064	return out, req.Send()
1065}
1066
1067const opDeleteEmailChannel = "DeleteEmailChannel"
1068
1069// DeleteEmailChannelRequest generates a "aws/request.Request" representing the
1070// client's request for the DeleteEmailChannel operation. The "output" return
1071// value will be populated with the request's response once the request complets
1072// successfuly.
1073//
1074// Use "Send" method on the returned Request to send the API call to the service.
1075// the "output" return value is not valid until after Send returns without error.
1076//
1077// See DeleteEmailChannel for more information on using the DeleteEmailChannel
1078// API call, and error handling.
1079//
1080// This method is useful when you want to inject custom logic or configuration
1081// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1082//
1083//
1084//    // Example sending a request using the DeleteEmailChannelRequest method.
1085//    req, resp := client.DeleteEmailChannelRequest(params)
1086//
1087//    err := req.Send()
1088//    if err == nil { // resp is now filled
1089//        fmt.Println(resp)
1090//    }
1091//
1092// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEmailChannel
1093func (c *Pinpoint) DeleteEmailChannelRequest(input *DeleteEmailChannelInput) (req *request.Request, output *DeleteEmailChannelOutput) {
1094	op := &request.Operation{
1095		Name:       opDeleteEmailChannel,
1096		HTTPMethod: "DELETE",
1097		HTTPPath:   "/v1/apps/{application-id}/channels/email",
1098	}
1099
1100	if input == nil {
1101		input = &DeleteEmailChannelInput{}
1102	}
1103
1104	output = &DeleteEmailChannelOutput{}
1105	req = c.newRequest(op, input, output)
1106	return
1107}
1108
1109// DeleteEmailChannel API operation for Amazon Pinpoint.
1110//
1111// Delete an email channel
1112//
1113// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1114// with awserr.Error's Code and Message methods to get detailed information about
1115// the error.
1116//
1117// See the AWS API reference guide for Amazon Pinpoint's
1118// API operation DeleteEmailChannel for usage and error information.
1119//
1120// Returned Error Codes:
1121//   * ErrCodeBadRequestException "BadRequestException"
1122//
1123//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1124//
1125//   * ErrCodeForbiddenException "ForbiddenException"
1126//
1127//   * ErrCodeNotFoundException "NotFoundException"
1128//
1129//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1130//
1131//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1132//
1133// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEmailChannel
1134func (c *Pinpoint) DeleteEmailChannel(input *DeleteEmailChannelInput) (*DeleteEmailChannelOutput, error) {
1135	req, out := c.DeleteEmailChannelRequest(input)
1136	return out, req.Send()
1137}
1138
1139// DeleteEmailChannelWithContext is the same as DeleteEmailChannel with the addition of
1140// the ability to pass a context and additional request options.
1141//
1142// See DeleteEmailChannel for details on how to use this API operation.
1143//
1144// The context must be non-nil and will be used for request cancellation. If
1145// the context is nil a panic will occur. In the future the SDK may create
1146// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1147// for more information on using Contexts.
1148func (c *Pinpoint) DeleteEmailChannelWithContext(ctx aws.Context, input *DeleteEmailChannelInput, opts ...request.Option) (*DeleteEmailChannelOutput, error) {
1149	req, out := c.DeleteEmailChannelRequest(input)
1150	req.SetContext(ctx)
1151	req.ApplyOptions(opts...)
1152	return out, req.Send()
1153}
1154
1155const opDeleteEventStream = "DeleteEventStream"
1156
1157// DeleteEventStreamRequest generates a "aws/request.Request" representing the
1158// client's request for the DeleteEventStream operation. The "output" return
1159// value will be populated with the request's response once the request complets
1160// successfuly.
1161//
1162// Use "Send" method on the returned Request to send the API call to the service.
1163// the "output" return value is not valid until after Send returns without error.
1164//
1165// See DeleteEventStream for more information on using the DeleteEventStream
1166// API call, and error handling.
1167//
1168// This method is useful when you want to inject custom logic or configuration
1169// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1170//
1171//
1172//    // Example sending a request using the DeleteEventStreamRequest method.
1173//    req, resp := client.DeleteEventStreamRequest(params)
1174//
1175//    err := req.Send()
1176//    if err == nil { // resp is now filled
1177//        fmt.Println(resp)
1178//    }
1179//
1180// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEventStream
1181func (c *Pinpoint) DeleteEventStreamRequest(input *DeleteEventStreamInput) (req *request.Request, output *DeleteEventStreamOutput) {
1182	op := &request.Operation{
1183		Name:       opDeleteEventStream,
1184		HTTPMethod: "DELETE",
1185		HTTPPath:   "/v1/apps/{application-id}/eventstream",
1186	}
1187
1188	if input == nil {
1189		input = &DeleteEventStreamInput{}
1190	}
1191
1192	output = &DeleteEventStreamOutput{}
1193	req = c.newRequest(op, input, output)
1194	return
1195}
1196
1197// DeleteEventStream API operation for Amazon Pinpoint.
1198//
1199// Deletes the event stream for an app.
1200//
1201// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1202// with awserr.Error's Code and Message methods to get detailed information about
1203// the error.
1204//
1205// See the AWS API reference guide for Amazon Pinpoint's
1206// API operation DeleteEventStream for usage and error information.
1207//
1208// Returned Error Codes:
1209//   * ErrCodeBadRequestException "BadRequestException"
1210//
1211//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1212//
1213//   * ErrCodeForbiddenException "ForbiddenException"
1214//
1215//   * ErrCodeNotFoundException "NotFoundException"
1216//
1217//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1218//
1219//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1220//
1221// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEventStream
1222func (c *Pinpoint) DeleteEventStream(input *DeleteEventStreamInput) (*DeleteEventStreamOutput, error) {
1223	req, out := c.DeleteEventStreamRequest(input)
1224	return out, req.Send()
1225}
1226
1227// DeleteEventStreamWithContext is the same as DeleteEventStream with the addition of
1228// the ability to pass a context and additional request options.
1229//
1230// See DeleteEventStream for details on how to use this API operation.
1231//
1232// The context must be non-nil and will be used for request cancellation. If
1233// the context is nil a panic will occur. In the future the SDK may create
1234// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1235// for more information on using Contexts.
1236func (c *Pinpoint) DeleteEventStreamWithContext(ctx aws.Context, input *DeleteEventStreamInput, opts ...request.Option) (*DeleteEventStreamOutput, error) {
1237	req, out := c.DeleteEventStreamRequest(input)
1238	req.SetContext(ctx)
1239	req.ApplyOptions(opts...)
1240	return out, req.Send()
1241}
1242
1243const opDeleteGcmChannel = "DeleteGcmChannel"
1244
1245// DeleteGcmChannelRequest generates a "aws/request.Request" representing the
1246// client's request for the DeleteGcmChannel operation. The "output" return
1247// value will be populated with the request's response once the request complets
1248// successfuly.
1249//
1250// Use "Send" method on the returned Request to send the API call to the service.
1251// the "output" return value is not valid until after Send returns without error.
1252//
1253// See DeleteGcmChannel for more information on using the DeleteGcmChannel
1254// API call, and error handling.
1255//
1256// This method is useful when you want to inject custom logic or configuration
1257// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1258//
1259//
1260//    // Example sending a request using the DeleteGcmChannelRequest method.
1261//    req, resp := client.DeleteGcmChannelRequest(params)
1262//
1263//    err := req.Send()
1264//    if err == nil { // resp is now filled
1265//        fmt.Println(resp)
1266//    }
1267//
1268// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteGcmChannel
1269func (c *Pinpoint) DeleteGcmChannelRequest(input *DeleteGcmChannelInput) (req *request.Request, output *DeleteGcmChannelOutput) {
1270	op := &request.Operation{
1271		Name:       opDeleteGcmChannel,
1272		HTTPMethod: "DELETE",
1273		HTTPPath:   "/v1/apps/{application-id}/channels/gcm",
1274	}
1275
1276	if input == nil {
1277		input = &DeleteGcmChannelInput{}
1278	}
1279
1280	output = &DeleteGcmChannelOutput{}
1281	req = c.newRequest(op, input, output)
1282	return
1283}
1284
1285// DeleteGcmChannel API operation for Amazon Pinpoint.
1286//
1287// Deletes the GCM channel for an app.
1288//
1289// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1290// with awserr.Error's Code and Message methods to get detailed information about
1291// the error.
1292//
1293// See the AWS API reference guide for Amazon Pinpoint's
1294// API operation DeleteGcmChannel for usage and error information.
1295//
1296// Returned Error Codes:
1297//   * ErrCodeBadRequestException "BadRequestException"
1298//
1299//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1300//
1301//   * ErrCodeForbiddenException "ForbiddenException"
1302//
1303//   * ErrCodeNotFoundException "NotFoundException"
1304//
1305//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1306//
1307//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1308//
1309// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteGcmChannel
1310func (c *Pinpoint) DeleteGcmChannel(input *DeleteGcmChannelInput) (*DeleteGcmChannelOutput, error) {
1311	req, out := c.DeleteGcmChannelRequest(input)
1312	return out, req.Send()
1313}
1314
1315// DeleteGcmChannelWithContext is the same as DeleteGcmChannel with the addition of
1316// the ability to pass a context and additional request options.
1317//
1318// See DeleteGcmChannel for details on how to use this API operation.
1319//
1320// The context must be non-nil and will be used for request cancellation. If
1321// the context is nil a panic will occur. In the future the SDK may create
1322// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1323// for more information on using Contexts.
1324func (c *Pinpoint) DeleteGcmChannelWithContext(ctx aws.Context, input *DeleteGcmChannelInput, opts ...request.Option) (*DeleteGcmChannelOutput, error) {
1325	req, out := c.DeleteGcmChannelRequest(input)
1326	req.SetContext(ctx)
1327	req.ApplyOptions(opts...)
1328	return out, req.Send()
1329}
1330
1331const opDeleteSegment = "DeleteSegment"
1332
1333// DeleteSegmentRequest generates a "aws/request.Request" representing the
1334// client's request for the DeleteSegment operation. The "output" return
1335// value will be populated with the request's response once the request complets
1336// successfuly.
1337//
1338// Use "Send" method on the returned Request to send the API call to the service.
1339// the "output" return value is not valid until after Send returns without error.
1340//
1341// See DeleteSegment for more information on using the DeleteSegment
1342// API call, and error handling.
1343//
1344// This method is useful when you want to inject custom logic or configuration
1345// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1346//
1347//
1348//    // Example sending a request using the DeleteSegmentRequest method.
1349//    req, resp := client.DeleteSegmentRequest(params)
1350//
1351//    err := req.Send()
1352//    if err == nil { // resp is now filled
1353//        fmt.Println(resp)
1354//    }
1355//
1356// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSegment
1357func (c *Pinpoint) DeleteSegmentRequest(input *DeleteSegmentInput) (req *request.Request, output *DeleteSegmentOutput) {
1358	op := &request.Operation{
1359		Name:       opDeleteSegment,
1360		HTTPMethod: "DELETE",
1361		HTTPPath:   "/v1/apps/{application-id}/segments/{segment-id}",
1362	}
1363
1364	if input == nil {
1365		input = &DeleteSegmentInput{}
1366	}
1367
1368	output = &DeleteSegmentOutput{}
1369	req = c.newRequest(op, input, output)
1370	return
1371}
1372
1373// DeleteSegment API operation for Amazon Pinpoint.
1374//
1375// Deletes a segment.
1376//
1377// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1378// with awserr.Error's Code and Message methods to get detailed information about
1379// the error.
1380//
1381// See the AWS API reference guide for Amazon Pinpoint's
1382// API operation DeleteSegment for usage and error information.
1383//
1384// Returned Error Codes:
1385//   * ErrCodeBadRequestException "BadRequestException"
1386//
1387//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1388//
1389//   * ErrCodeForbiddenException "ForbiddenException"
1390//
1391//   * ErrCodeNotFoundException "NotFoundException"
1392//
1393//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1394//
1395//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1396//
1397// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSegment
1398func (c *Pinpoint) DeleteSegment(input *DeleteSegmentInput) (*DeleteSegmentOutput, error) {
1399	req, out := c.DeleteSegmentRequest(input)
1400	return out, req.Send()
1401}
1402
1403// DeleteSegmentWithContext is the same as DeleteSegment with the addition of
1404// the ability to pass a context and additional request options.
1405//
1406// See DeleteSegment for details on how to use this API operation.
1407//
1408// The context must be non-nil and will be used for request cancellation. If
1409// the context is nil a panic will occur. In the future the SDK may create
1410// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1411// for more information on using Contexts.
1412func (c *Pinpoint) DeleteSegmentWithContext(ctx aws.Context, input *DeleteSegmentInput, opts ...request.Option) (*DeleteSegmentOutput, error) {
1413	req, out := c.DeleteSegmentRequest(input)
1414	req.SetContext(ctx)
1415	req.ApplyOptions(opts...)
1416	return out, req.Send()
1417}
1418
1419const opDeleteSmsChannel = "DeleteSmsChannel"
1420
1421// DeleteSmsChannelRequest generates a "aws/request.Request" representing the
1422// client's request for the DeleteSmsChannel operation. The "output" return
1423// value will be populated with the request's response once the request complets
1424// successfuly.
1425//
1426// Use "Send" method on the returned Request to send the API call to the service.
1427// the "output" return value is not valid until after Send returns without error.
1428//
1429// See DeleteSmsChannel for more information on using the DeleteSmsChannel
1430// API call, and error handling.
1431//
1432// This method is useful when you want to inject custom logic or configuration
1433// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1434//
1435//
1436//    // Example sending a request using the DeleteSmsChannelRequest method.
1437//    req, resp := client.DeleteSmsChannelRequest(params)
1438//
1439//    err := req.Send()
1440//    if err == nil { // resp is now filled
1441//        fmt.Println(resp)
1442//    }
1443//
1444// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSmsChannel
1445func (c *Pinpoint) DeleteSmsChannelRequest(input *DeleteSmsChannelInput) (req *request.Request, output *DeleteSmsChannelOutput) {
1446	op := &request.Operation{
1447		Name:       opDeleteSmsChannel,
1448		HTTPMethod: "DELETE",
1449		HTTPPath:   "/v1/apps/{application-id}/channels/sms",
1450	}
1451
1452	if input == nil {
1453		input = &DeleteSmsChannelInput{}
1454	}
1455
1456	output = &DeleteSmsChannelOutput{}
1457	req = c.newRequest(op, input, output)
1458	return
1459}
1460
1461// DeleteSmsChannel API operation for Amazon Pinpoint.
1462//
1463// Delete an SMS channel
1464//
1465// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1466// with awserr.Error's Code and Message methods to get detailed information about
1467// the error.
1468//
1469// See the AWS API reference guide for Amazon Pinpoint's
1470// API operation DeleteSmsChannel for usage and error information.
1471//
1472// Returned Error Codes:
1473//   * ErrCodeBadRequestException "BadRequestException"
1474//
1475//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1476//
1477//   * ErrCodeForbiddenException "ForbiddenException"
1478//
1479//   * ErrCodeNotFoundException "NotFoundException"
1480//
1481//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1482//
1483//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1484//
1485// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSmsChannel
1486func (c *Pinpoint) DeleteSmsChannel(input *DeleteSmsChannelInput) (*DeleteSmsChannelOutput, error) {
1487	req, out := c.DeleteSmsChannelRequest(input)
1488	return out, req.Send()
1489}
1490
1491// DeleteSmsChannelWithContext is the same as DeleteSmsChannel with the addition of
1492// the ability to pass a context and additional request options.
1493//
1494// See DeleteSmsChannel for details on how to use this API operation.
1495//
1496// The context must be non-nil and will be used for request cancellation. If
1497// the context is nil a panic will occur. In the future the SDK may create
1498// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1499// for more information on using Contexts.
1500func (c *Pinpoint) DeleteSmsChannelWithContext(ctx aws.Context, input *DeleteSmsChannelInput, opts ...request.Option) (*DeleteSmsChannelOutput, error) {
1501	req, out := c.DeleteSmsChannelRequest(input)
1502	req.SetContext(ctx)
1503	req.ApplyOptions(opts...)
1504	return out, req.Send()
1505}
1506
1507const opGetAdmChannel = "GetAdmChannel"
1508
1509// GetAdmChannelRequest generates a "aws/request.Request" representing the
1510// client's request for the GetAdmChannel operation. The "output" return
1511// value will be populated with the request's response once the request complets
1512// successfuly.
1513//
1514// Use "Send" method on the returned Request to send the API call to the service.
1515// the "output" return value is not valid until after Send returns without error.
1516//
1517// See GetAdmChannel for more information on using the GetAdmChannel
1518// API call, and error handling.
1519//
1520// This method is useful when you want to inject custom logic or configuration
1521// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1522//
1523//
1524//    // Example sending a request using the GetAdmChannelRequest method.
1525//    req, resp := client.GetAdmChannelRequest(params)
1526//
1527//    err := req.Send()
1528//    if err == nil { // resp is now filled
1529//        fmt.Println(resp)
1530//    }
1531//
1532// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAdmChannel
1533func (c *Pinpoint) GetAdmChannelRequest(input *GetAdmChannelInput) (req *request.Request, output *GetAdmChannelOutput) {
1534	op := &request.Operation{
1535		Name:       opGetAdmChannel,
1536		HTTPMethod: "GET",
1537		HTTPPath:   "/v1/apps/{application-id}/channels/adm",
1538	}
1539
1540	if input == nil {
1541		input = &GetAdmChannelInput{}
1542	}
1543
1544	output = &GetAdmChannelOutput{}
1545	req = c.newRequest(op, input, output)
1546	return
1547}
1548
1549// GetAdmChannel API operation for Amazon Pinpoint.
1550//
1551// Get an ADM channel
1552//
1553// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1554// with awserr.Error's Code and Message methods to get detailed information about
1555// the error.
1556//
1557// See the AWS API reference guide for Amazon Pinpoint's
1558// API operation GetAdmChannel for usage and error information.
1559//
1560// Returned Error Codes:
1561//   * ErrCodeBadRequestException "BadRequestException"
1562//
1563//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1564//
1565//   * ErrCodeForbiddenException "ForbiddenException"
1566//
1567//   * ErrCodeNotFoundException "NotFoundException"
1568//
1569//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1570//
1571//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1572//
1573// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAdmChannel
1574func (c *Pinpoint) GetAdmChannel(input *GetAdmChannelInput) (*GetAdmChannelOutput, error) {
1575	req, out := c.GetAdmChannelRequest(input)
1576	return out, req.Send()
1577}
1578
1579// GetAdmChannelWithContext is the same as GetAdmChannel with the addition of
1580// the ability to pass a context and additional request options.
1581//
1582// See GetAdmChannel for details on how to use this API operation.
1583//
1584// The context must be non-nil and will be used for request cancellation. If
1585// the context is nil a panic will occur. In the future the SDK may create
1586// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1587// for more information on using Contexts.
1588func (c *Pinpoint) GetAdmChannelWithContext(ctx aws.Context, input *GetAdmChannelInput, opts ...request.Option) (*GetAdmChannelOutput, error) {
1589	req, out := c.GetAdmChannelRequest(input)
1590	req.SetContext(ctx)
1591	req.ApplyOptions(opts...)
1592	return out, req.Send()
1593}
1594
1595const opGetApnsChannel = "GetApnsChannel"
1596
1597// GetApnsChannelRequest generates a "aws/request.Request" representing the
1598// client's request for the GetApnsChannel operation. The "output" return
1599// value will be populated with the request's response once the request complets
1600// successfuly.
1601//
1602// Use "Send" method on the returned Request to send the API call to the service.
1603// the "output" return value is not valid until after Send returns without error.
1604//
1605// See GetApnsChannel for more information on using the GetApnsChannel
1606// API call, and error handling.
1607//
1608// This method is useful when you want to inject custom logic or configuration
1609// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1610//
1611//
1612//    // Example sending a request using the GetApnsChannelRequest method.
1613//    req, resp := client.GetApnsChannelRequest(params)
1614//
1615//    err := req.Send()
1616//    if err == nil { // resp is now filled
1617//        fmt.Println(resp)
1618//    }
1619//
1620// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsChannel
1621func (c *Pinpoint) GetApnsChannelRequest(input *GetApnsChannelInput) (req *request.Request, output *GetApnsChannelOutput) {
1622	op := &request.Operation{
1623		Name:       opGetApnsChannel,
1624		HTTPMethod: "GET",
1625		HTTPPath:   "/v1/apps/{application-id}/channels/apns",
1626	}
1627
1628	if input == nil {
1629		input = &GetApnsChannelInput{}
1630	}
1631
1632	output = &GetApnsChannelOutput{}
1633	req = c.newRequest(op, input, output)
1634	return
1635}
1636
1637// GetApnsChannel API operation for Amazon Pinpoint.
1638//
1639// Returns information about the APNs channel for an app.
1640//
1641// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1642// with awserr.Error's Code and Message methods to get detailed information about
1643// the error.
1644//
1645// See the AWS API reference guide for Amazon Pinpoint's
1646// API operation GetApnsChannel for usage and error information.
1647//
1648// Returned Error Codes:
1649//   * ErrCodeBadRequestException "BadRequestException"
1650//
1651//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1652//
1653//   * ErrCodeForbiddenException "ForbiddenException"
1654//
1655//   * ErrCodeNotFoundException "NotFoundException"
1656//
1657//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1658//
1659//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1660//
1661// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsChannel
1662func (c *Pinpoint) GetApnsChannel(input *GetApnsChannelInput) (*GetApnsChannelOutput, error) {
1663	req, out := c.GetApnsChannelRequest(input)
1664	return out, req.Send()
1665}
1666
1667// GetApnsChannelWithContext is the same as GetApnsChannel with the addition of
1668// the ability to pass a context and additional request options.
1669//
1670// See GetApnsChannel for details on how to use this API operation.
1671//
1672// The context must be non-nil and will be used for request cancellation. If
1673// the context is nil a panic will occur. In the future the SDK may create
1674// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1675// for more information on using Contexts.
1676func (c *Pinpoint) GetApnsChannelWithContext(ctx aws.Context, input *GetApnsChannelInput, opts ...request.Option) (*GetApnsChannelOutput, error) {
1677	req, out := c.GetApnsChannelRequest(input)
1678	req.SetContext(ctx)
1679	req.ApplyOptions(opts...)
1680	return out, req.Send()
1681}
1682
1683const opGetApnsSandboxChannel = "GetApnsSandboxChannel"
1684
1685// GetApnsSandboxChannelRequest generates a "aws/request.Request" representing the
1686// client's request for the GetApnsSandboxChannel operation. The "output" return
1687// value will be populated with the request's response once the request complets
1688// successfuly.
1689//
1690// Use "Send" method on the returned Request to send the API call to the service.
1691// the "output" return value is not valid until after Send returns without error.
1692//
1693// See GetApnsSandboxChannel for more information on using the GetApnsSandboxChannel
1694// API call, and error handling.
1695//
1696// This method is useful when you want to inject custom logic or configuration
1697// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1698//
1699//
1700//    // Example sending a request using the GetApnsSandboxChannelRequest method.
1701//    req, resp := client.GetApnsSandboxChannelRequest(params)
1702//
1703//    err := req.Send()
1704//    if err == nil { // resp is now filled
1705//        fmt.Println(resp)
1706//    }
1707//
1708// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsSandboxChannel
1709func (c *Pinpoint) GetApnsSandboxChannelRequest(input *GetApnsSandboxChannelInput) (req *request.Request, output *GetApnsSandboxChannelOutput) {
1710	op := &request.Operation{
1711		Name:       opGetApnsSandboxChannel,
1712		HTTPMethod: "GET",
1713		HTTPPath:   "/v1/apps/{application-id}/channels/apns_sandbox",
1714	}
1715
1716	if input == nil {
1717		input = &GetApnsSandboxChannelInput{}
1718	}
1719
1720	output = &GetApnsSandboxChannelOutput{}
1721	req = c.newRequest(op, input, output)
1722	return
1723}
1724
1725// GetApnsSandboxChannel API operation for Amazon Pinpoint.
1726//
1727// Get an APNS sandbox channel
1728//
1729// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1730// with awserr.Error's Code and Message methods to get detailed information about
1731// the error.
1732//
1733// See the AWS API reference guide for Amazon Pinpoint's
1734// API operation GetApnsSandboxChannel for usage and error information.
1735//
1736// Returned Error Codes:
1737//   * ErrCodeBadRequestException "BadRequestException"
1738//
1739//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1740//
1741//   * ErrCodeForbiddenException "ForbiddenException"
1742//
1743//   * ErrCodeNotFoundException "NotFoundException"
1744//
1745//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1746//
1747//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1748//
1749// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsSandboxChannel
1750func (c *Pinpoint) GetApnsSandboxChannel(input *GetApnsSandboxChannelInput) (*GetApnsSandboxChannelOutput, error) {
1751	req, out := c.GetApnsSandboxChannelRequest(input)
1752	return out, req.Send()
1753}
1754
1755// GetApnsSandboxChannelWithContext is the same as GetApnsSandboxChannel with the addition of
1756// the ability to pass a context and additional request options.
1757//
1758// See GetApnsSandboxChannel for details on how to use this API operation.
1759//
1760// The context must be non-nil and will be used for request cancellation. If
1761// the context is nil a panic will occur. In the future the SDK may create
1762// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1763// for more information on using Contexts.
1764func (c *Pinpoint) GetApnsSandboxChannelWithContext(ctx aws.Context, input *GetApnsSandboxChannelInput, opts ...request.Option) (*GetApnsSandboxChannelOutput, error) {
1765	req, out := c.GetApnsSandboxChannelRequest(input)
1766	req.SetContext(ctx)
1767	req.ApplyOptions(opts...)
1768	return out, req.Send()
1769}
1770
1771const opGetApnsVoipChannel = "GetApnsVoipChannel"
1772
1773// GetApnsVoipChannelRequest generates a "aws/request.Request" representing the
1774// client's request for the GetApnsVoipChannel operation. The "output" return
1775// value will be populated with the request's response once the request complets
1776// successfuly.
1777//
1778// Use "Send" method on the returned Request to send the API call to the service.
1779// the "output" return value is not valid until after Send returns without error.
1780//
1781// See GetApnsVoipChannel for more information on using the GetApnsVoipChannel
1782// API call, and error handling.
1783//
1784// This method is useful when you want to inject custom logic or configuration
1785// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1786//
1787//
1788//    // Example sending a request using the GetApnsVoipChannelRequest method.
1789//    req, resp := client.GetApnsVoipChannelRequest(params)
1790//
1791//    err := req.Send()
1792//    if err == nil { // resp is now filled
1793//        fmt.Println(resp)
1794//    }
1795//
1796// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipChannel
1797func (c *Pinpoint) GetApnsVoipChannelRequest(input *GetApnsVoipChannelInput) (req *request.Request, output *GetApnsVoipChannelOutput) {
1798	op := &request.Operation{
1799		Name:       opGetApnsVoipChannel,
1800		HTTPMethod: "GET",
1801		HTTPPath:   "/v1/apps/{application-id}/channels/apns_voip",
1802	}
1803
1804	if input == nil {
1805		input = &GetApnsVoipChannelInput{}
1806	}
1807
1808	output = &GetApnsVoipChannelOutput{}
1809	req = c.newRequest(op, input, output)
1810	return
1811}
1812
1813// GetApnsVoipChannel API operation for Amazon Pinpoint.
1814//
1815// Get an APNS Voip channel
1816//
1817// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1818// with awserr.Error's Code and Message methods to get detailed information about
1819// the error.
1820//
1821// See the AWS API reference guide for Amazon Pinpoint's
1822// API operation GetApnsVoipChannel for usage and error information.
1823//
1824// Returned Error Codes:
1825//   * ErrCodeBadRequestException "BadRequestException"
1826//
1827//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1828//
1829//   * ErrCodeForbiddenException "ForbiddenException"
1830//
1831//   * ErrCodeNotFoundException "NotFoundException"
1832//
1833//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1834//
1835//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1836//
1837// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipChannel
1838func (c *Pinpoint) GetApnsVoipChannel(input *GetApnsVoipChannelInput) (*GetApnsVoipChannelOutput, error) {
1839	req, out := c.GetApnsVoipChannelRequest(input)
1840	return out, req.Send()
1841}
1842
1843// GetApnsVoipChannelWithContext is the same as GetApnsVoipChannel with the addition of
1844// the ability to pass a context and additional request options.
1845//
1846// See GetApnsVoipChannel for details on how to use this API operation.
1847//
1848// The context must be non-nil and will be used for request cancellation. If
1849// the context is nil a panic will occur. In the future the SDK may create
1850// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1851// for more information on using Contexts.
1852func (c *Pinpoint) GetApnsVoipChannelWithContext(ctx aws.Context, input *GetApnsVoipChannelInput, opts ...request.Option) (*GetApnsVoipChannelOutput, error) {
1853	req, out := c.GetApnsVoipChannelRequest(input)
1854	req.SetContext(ctx)
1855	req.ApplyOptions(opts...)
1856	return out, req.Send()
1857}
1858
1859const opGetApnsVoipSandboxChannel = "GetApnsVoipSandboxChannel"
1860
1861// GetApnsVoipSandboxChannelRequest generates a "aws/request.Request" representing the
1862// client's request for the GetApnsVoipSandboxChannel operation. The "output" return
1863// value will be populated with the request's response once the request complets
1864// successfuly.
1865//
1866// Use "Send" method on the returned Request to send the API call to the service.
1867// the "output" return value is not valid until after Send returns without error.
1868//
1869// See GetApnsVoipSandboxChannel for more information on using the GetApnsVoipSandboxChannel
1870// API call, and error handling.
1871//
1872// This method is useful when you want to inject custom logic or configuration
1873// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1874//
1875//
1876//    // Example sending a request using the GetApnsVoipSandboxChannelRequest method.
1877//    req, resp := client.GetApnsVoipSandboxChannelRequest(params)
1878//
1879//    err := req.Send()
1880//    if err == nil { // resp is now filled
1881//        fmt.Println(resp)
1882//    }
1883//
1884// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipSandboxChannel
1885func (c *Pinpoint) GetApnsVoipSandboxChannelRequest(input *GetApnsVoipSandboxChannelInput) (req *request.Request, output *GetApnsVoipSandboxChannelOutput) {
1886	op := &request.Operation{
1887		Name:       opGetApnsVoipSandboxChannel,
1888		HTTPMethod: "GET",
1889		HTTPPath:   "/v1/apps/{application-id}/channels/apns_voip_sandbox",
1890	}
1891
1892	if input == nil {
1893		input = &GetApnsVoipSandboxChannelInput{}
1894	}
1895
1896	output = &GetApnsVoipSandboxChannelOutput{}
1897	req = c.newRequest(op, input, output)
1898	return
1899}
1900
1901// GetApnsVoipSandboxChannel API operation for Amazon Pinpoint.
1902//
1903// Get an APNS VoipSandbox channel
1904//
1905// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1906// with awserr.Error's Code and Message methods to get detailed information about
1907// the error.
1908//
1909// See the AWS API reference guide for Amazon Pinpoint's
1910// API operation GetApnsVoipSandboxChannel for usage and error information.
1911//
1912// Returned Error Codes:
1913//   * ErrCodeBadRequestException "BadRequestException"
1914//
1915//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
1916//
1917//   * ErrCodeForbiddenException "ForbiddenException"
1918//
1919//   * ErrCodeNotFoundException "NotFoundException"
1920//
1921//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
1922//
1923//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
1924//
1925// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipSandboxChannel
1926func (c *Pinpoint) GetApnsVoipSandboxChannel(input *GetApnsVoipSandboxChannelInput) (*GetApnsVoipSandboxChannelOutput, error) {
1927	req, out := c.GetApnsVoipSandboxChannelRequest(input)
1928	return out, req.Send()
1929}
1930
1931// GetApnsVoipSandboxChannelWithContext is the same as GetApnsVoipSandboxChannel with the addition of
1932// the ability to pass a context and additional request options.
1933//
1934// See GetApnsVoipSandboxChannel for details on how to use this API operation.
1935//
1936// The context must be non-nil and will be used for request cancellation. If
1937// the context is nil a panic will occur. In the future the SDK may create
1938// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1939// for more information on using Contexts.
1940func (c *Pinpoint) GetApnsVoipSandboxChannelWithContext(ctx aws.Context, input *GetApnsVoipSandboxChannelInput, opts ...request.Option) (*GetApnsVoipSandboxChannelOutput, error) {
1941	req, out := c.GetApnsVoipSandboxChannelRequest(input)
1942	req.SetContext(ctx)
1943	req.ApplyOptions(opts...)
1944	return out, req.Send()
1945}
1946
1947const opGetApp = "GetApp"
1948
1949// GetAppRequest generates a "aws/request.Request" representing the
1950// client's request for the GetApp operation. The "output" return
1951// value will be populated with the request's response once the request complets
1952// successfuly.
1953//
1954// Use "Send" method on the returned Request to send the API call to the service.
1955// the "output" return value is not valid until after Send returns without error.
1956//
1957// See GetApp for more information on using the GetApp
1958// API call, and error handling.
1959//
1960// This method is useful when you want to inject custom logic or configuration
1961// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1962//
1963//
1964//    // Example sending a request using the GetAppRequest method.
1965//    req, resp := client.GetAppRequest(params)
1966//
1967//    err := req.Send()
1968//    if err == nil { // resp is now filled
1969//        fmt.Println(resp)
1970//    }
1971//
1972// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApp
1973func (c *Pinpoint) GetAppRequest(input *GetAppInput) (req *request.Request, output *GetAppOutput) {
1974	op := &request.Operation{
1975		Name:       opGetApp,
1976		HTTPMethod: "GET",
1977		HTTPPath:   "/v1/apps/{application-id}",
1978	}
1979
1980	if input == nil {
1981		input = &GetAppInput{}
1982	}
1983
1984	output = &GetAppOutput{}
1985	req = c.newRequest(op, input, output)
1986	return
1987}
1988
1989// GetApp API operation for Amazon Pinpoint.
1990//
1991// Returns information about an app.
1992//
1993// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1994// with awserr.Error's Code and Message methods to get detailed information about
1995// the error.
1996//
1997// See the AWS API reference guide for Amazon Pinpoint's
1998// API operation GetApp for usage and error information.
1999//
2000// Returned Error Codes:
2001//   * ErrCodeBadRequestException "BadRequestException"
2002//
2003//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2004//
2005//   * ErrCodeForbiddenException "ForbiddenException"
2006//
2007//   * ErrCodeNotFoundException "NotFoundException"
2008//
2009//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2010//
2011//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2012//
2013// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApp
2014func (c *Pinpoint) GetApp(input *GetAppInput) (*GetAppOutput, error) {
2015	req, out := c.GetAppRequest(input)
2016	return out, req.Send()
2017}
2018
2019// GetAppWithContext is the same as GetApp with the addition of
2020// the ability to pass a context and additional request options.
2021//
2022// See GetApp for details on how to use this API operation.
2023//
2024// The context must be non-nil and will be used for request cancellation. If
2025// the context is nil a panic will occur. In the future the SDK may create
2026// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2027// for more information on using Contexts.
2028func (c *Pinpoint) GetAppWithContext(ctx aws.Context, input *GetAppInput, opts ...request.Option) (*GetAppOutput, error) {
2029	req, out := c.GetAppRequest(input)
2030	req.SetContext(ctx)
2031	req.ApplyOptions(opts...)
2032	return out, req.Send()
2033}
2034
2035const opGetApplicationSettings = "GetApplicationSettings"
2036
2037// GetApplicationSettingsRequest generates a "aws/request.Request" representing the
2038// client's request for the GetApplicationSettings operation. The "output" return
2039// value will be populated with the request's response once the request complets
2040// successfuly.
2041//
2042// Use "Send" method on the returned Request to send the API call to the service.
2043// the "output" return value is not valid until after Send returns without error.
2044//
2045// See GetApplicationSettings for more information on using the GetApplicationSettings
2046// API call, and error handling.
2047//
2048// This method is useful when you want to inject custom logic or configuration
2049// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2050//
2051//
2052//    // Example sending a request using the GetApplicationSettingsRequest method.
2053//    req, resp := client.GetApplicationSettingsRequest(params)
2054//
2055//    err := req.Send()
2056//    if err == nil { // resp is now filled
2057//        fmt.Println(resp)
2058//    }
2059//
2060// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApplicationSettings
2061func (c *Pinpoint) GetApplicationSettingsRequest(input *GetApplicationSettingsInput) (req *request.Request, output *GetApplicationSettingsOutput) {
2062	op := &request.Operation{
2063		Name:       opGetApplicationSettings,
2064		HTTPMethod: "GET",
2065		HTTPPath:   "/v1/apps/{application-id}/settings",
2066	}
2067
2068	if input == nil {
2069		input = &GetApplicationSettingsInput{}
2070	}
2071
2072	output = &GetApplicationSettingsOutput{}
2073	req = c.newRequest(op, input, output)
2074	return
2075}
2076
2077// GetApplicationSettings API operation for Amazon Pinpoint.
2078//
2079// Used to request the settings for an app.
2080//
2081// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2082// with awserr.Error's Code and Message methods to get detailed information about
2083// the error.
2084//
2085// See the AWS API reference guide for Amazon Pinpoint's
2086// API operation GetApplicationSettings for usage and error information.
2087//
2088// Returned Error Codes:
2089//   * ErrCodeBadRequestException "BadRequestException"
2090//
2091//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2092//
2093//   * ErrCodeForbiddenException "ForbiddenException"
2094//
2095//   * ErrCodeNotFoundException "NotFoundException"
2096//
2097//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2098//
2099//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2100//
2101// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApplicationSettings
2102func (c *Pinpoint) GetApplicationSettings(input *GetApplicationSettingsInput) (*GetApplicationSettingsOutput, error) {
2103	req, out := c.GetApplicationSettingsRequest(input)
2104	return out, req.Send()
2105}
2106
2107// GetApplicationSettingsWithContext is the same as GetApplicationSettings with the addition of
2108// the ability to pass a context and additional request options.
2109//
2110// See GetApplicationSettings for details on how to use this API operation.
2111//
2112// The context must be non-nil and will be used for request cancellation. If
2113// the context is nil a panic will occur. In the future the SDK may create
2114// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2115// for more information on using Contexts.
2116func (c *Pinpoint) GetApplicationSettingsWithContext(ctx aws.Context, input *GetApplicationSettingsInput, opts ...request.Option) (*GetApplicationSettingsOutput, error) {
2117	req, out := c.GetApplicationSettingsRequest(input)
2118	req.SetContext(ctx)
2119	req.ApplyOptions(opts...)
2120	return out, req.Send()
2121}
2122
2123const opGetApps = "GetApps"
2124
2125// GetAppsRequest generates a "aws/request.Request" representing the
2126// client's request for the GetApps operation. The "output" return
2127// value will be populated with the request's response once the request complets
2128// successfuly.
2129//
2130// Use "Send" method on the returned Request to send the API call to the service.
2131// the "output" return value is not valid until after Send returns without error.
2132//
2133// See GetApps for more information on using the GetApps
2134// API call, and error handling.
2135//
2136// This method is useful when you want to inject custom logic or configuration
2137// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2138//
2139//
2140//    // Example sending a request using the GetAppsRequest method.
2141//    req, resp := client.GetAppsRequest(params)
2142//
2143//    err := req.Send()
2144//    if err == nil { // resp is now filled
2145//        fmt.Println(resp)
2146//    }
2147//
2148// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApps
2149func (c *Pinpoint) GetAppsRequest(input *GetAppsInput) (req *request.Request, output *GetAppsOutput) {
2150	op := &request.Operation{
2151		Name:       opGetApps,
2152		HTTPMethod: "GET",
2153		HTTPPath:   "/v1/apps",
2154	}
2155
2156	if input == nil {
2157		input = &GetAppsInput{}
2158	}
2159
2160	output = &GetAppsOutput{}
2161	req = c.newRequest(op, input, output)
2162	return
2163}
2164
2165// GetApps API operation for Amazon Pinpoint.
2166//
2167// Returns information about your apps.
2168//
2169// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2170// with awserr.Error's Code and Message methods to get detailed information about
2171// the error.
2172//
2173// See the AWS API reference guide for Amazon Pinpoint's
2174// API operation GetApps for usage and error information.
2175//
2176// Returned Error Codes:
2177//   * ErrCodeBadRequestException "BadRequestException"
2178//
2179//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2180//
2181//   * ErrCodeForbiddenException "ForbiddenException"
2182//
2183//   * ErrCodeNotFoundException "NotFoundException"
2184//
2185//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2186//
2187//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2188//
2189// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApps
2190func (c *Pinpoint) GetApps(input *GetAppsInput) (*GetAppsOutput, error) {
2191	req, out := c.GetAppsRequest(input)
2192	return out, req.Send()
2193}
2194
2195// GetAppsWithContext is the same as GetApps with the addition of
2196// the ability to pass a context and additional request options.
2197//
2198// See GetApps for details on how to use this API operation.
2199//
2200// The context must be non-nil and will be used for request cancellation. If
2201// the context is nil a panic will occur. In the future the SDK may create
2202// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2203// for more information on using Contexts.
2204func (c *Pinpoint) GetAppsWithContext(ctx aws.Context, input *GetAppsInput, opts ...request.Option) (*GetAppsOutput, error) {
2205	req, out := c.GetAppsRequest(input)
2206	req.SetContext(ctx)
2207	req.ApplyOptions(opts...)
2208	return out, req.Send()
2209}
2210
2211const opGetBaiduChannel = "GetBaiduChannel"
2212
2213// GetBaiduChannelRequest generates a "aws/request.Request" representing the
2214// client's request for the GetBaiduChannel operation. The "output" return
2215// value will be populated with the request's response once the request complets
2216// successfuly.
2217//
2218// Use "Send" method on the returned Request to send the API call to the service.
2219// the "output" return value is not valid until after Send returns without error.
2220//
2221// See GetBaiduChannel for more information on using the GetBaiduChannel
2222// API call, and error handling.
2223//
2224// This method is useful when you want to inject custom logic or configuration
2225// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2226//
2227//
2228//    // Example sending a request using the GetBaiduChannelRequest method.
2229//    req, resp := client.GetBaiduChannelRequest(params)
2230//
2231//    err := req.Send()
2232//    if err == nil { // resp is now filled
2233//        fmt.Println(resp)
2234//    }
2235//
2236// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetBaiduChannel
2237func (c *Pinpoint) GetBaiduChannelRequest(input *GetBaiduChannelInput) (req *request.Request, output *GetBaiduChannelOutput) {
2238	op := &request.Operation{
2239		Name:       opGetBaiduChannel,
2240		HTTPMethod: "GET",
2241		HTTPPath:   "/v1/apps/{application-id}/channels/baidu",
2242	}
2243
2244	if input == nil {
2245		input = &GetBaiduChannelInput{}
2246	}
2247
2248	output = &GetBaiduChannelOutput{}
2249	req = c.newRequest(op, input, output)
2250	return
2251}
2252
2253// GetBaiduChannel API operation for Amazon Pinpoint.
2254//
2255// Get a BAIDU GCM channel
2256//
2257// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2258// with awserr.Error's Code and Message methods to get detailed information about
2259// the error.
2260//
2261// See the AWS API reference guide for Amazon Pinpoint's
2262// API operation GetBaiduChannel for usage and error information.
2263//
2264// Returned Error Codes:
2265//   * ErrCodeBadRequestException "BadRequestException"
2266//
2267//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2268//
2269//   * ErrCodeForbiddenException "ForbiddenException"
2270//
2271//   * ErrCodeNotFoundException "NotFoundException"
2272//
2273//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2274//
2275//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2276//
2277// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetBaiduChannel
2278func (c *Pinpoint) GetBaiduChannel(input *GetBaiduChannelInput) (*GetBaiduChannelOutput, error) {
2279	req, out := c.GetBaiduChannelRequest(input)
2280	return out, req.Send()
2281}
2282
2283// GetBaiduChannelWithContext is the same as GetBaiduChannel with the addition of
2284// the ability to pass a context and additional request options.
2285//
2286// See GetBaiduChannel for details on how to use this API operation.
2287//
2288// The context must be non-nil and will be used for request cancellation. If
2289// the context is nil a panic will occur. In the future the SDK may create
2290// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2291// for more information on using Contexts.
2292func (c *Pinpoint) GetBaiduChannelWithContext(ctx aws.Context, input *GetBaiduChannelInput, opts ...request.Option) (*GetBaiduChannelOutput, error) {
2293	req, out := c.GetBaiduChannelRequest(input)
2294	req.SetContext(ctx)
2295	req.ApplyOptions(opts...)
2296	return out, req.Send()
2297}
2298
2299const opGetCampaign = "GetCampaign"
2300
2301// GetCampaignRequest generates a "aws/request.Request" representing the
2302// client's request for the GetCampaign operation. The "output" return
2303// value will be populated with the request's response once the request complets
2304// successfuly.
2305//
2306// Use "Send" method on the returned Request to send the API call to the service.
2307// the "output" return value is not valid until after Send returns without error.
2308//
2309// See GetCampaign for more information on using the GetCampaign
2310// API call, and error handling.
2311//
2312// This method is useful when you want to inject custom logic or configuration
2313// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2314//
2315//
2316//    // Example sending a request using the GetCampaignRequest method.
2317//    req, resp := client.GetCampaignRequest(params)
2318//
2319//    err := req.Send()
2320//    if err == nil { // resp is now filled
2321//        fmt.Println(resp)
2322//    }
2323//
2324// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaign
2325func (c *Pinpoint) GetCampaignRequest(input *GetCampaignInput) (req *request.Request, output *GetCampaignOutput) {
2326	op := &request.Operation{
2327		Name:       opGetCampaign,
2328		HTTPMethod: "GET",
2329		HTTPPath:   "/v1/apps/{application-id}/campaigns/{campaign-id}",
2330	}
2331
2332	if input == nil {
2333		input = &GetCampaignInput{}
2334	}
2335
2336	output = &GetCampaignOutput{}
2337	req = c.newRequest(op, input, output)
2338	return
2339}
2340
2341// GetCampaign API operation for Amazon Pinpoint.
2342//
2343// Returns information about a campaign.
2344//
2345// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2346// with awserr.Error's Code and Message methods to get detailed information about
2347// the error.
2348//
2349// See the AWS API reference guide for Amazon Pinpoint's
2350// API operation GetCampaign for usage and error information.
2351//
2352// Returned Error Codes:
2353//   * ErrCodeBadRequestException "BadRequestException"
2354//
2355//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2356//
2357//   * ErrCodeForbiddenException "ForbiddenException"
2358//
2359//   * ErrCodeNotFoundException "NotFoundException"
2360//
2361//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2362//
2363//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2364//
2365// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaign
2366func (c *Pinpoint) GetCampaign(input *GetCampaignInput) (*GetCampaignOutput, error) {
2367	req, out := c.GetCampaignRequest(input)
2368	return out, req.Send()
2369}
2370
2371// GetCampaignWithContext is the same as GetCampaign with the addition of
2372// the ability to pass a context and additional request options.
2373//
2374// See GetCampaign for details on how to use this API operation.
2375//
2376// The context must be non-nil and will be used for request cancellation. If
2377// the context is nil a panic will occur. In the future the SDK may create
2378// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2379// for more information on using Contexts.
2380func (c *Pinpoint) GetCampaignWithContext(ctx aws.Context, input *GetCampaignInput, opts ...request.Option) (*GetCampaignOutput, error) {
2381	req, out := c.GetCampaignRequest(input)
2382	req.SetContext(ctx)
2383	req.ApplyOptions(opts...)
2384	return out, req.Send()
2385}
2386
2387const opGetCampaignActivities = "GetCampaignActivities"
2388
2389// GetCampaignActivitiesRequest generates a "aws/request.Request" representing the
2390// client's request for the GetCampaignActivities operation. The "output" return
2391// value will be populated with the request's response once the request complets
2392// successfuly.
2393//
2394// Use "Send" method on the returned Request to send the API call to the service.
2395// the "output" return value is not valid until after Send returns without error.
2396//
2397// See GetCampaignActivities for more information on using the GetCampaignActivities
2398// API call, and error handling.
2399//
2400// This method is useful when you want to inject custom logic or configuration
2401// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2402//
2403//
2404//    // Example sending a request using the GetCampaignActivitiesRequest method.
2405//    req, resp := client.GetCampaignActivitiesRequest(params)
2406//
2407//    err := req.Send()
2408//    if err == nil { // resp is now filled
2409//        fmt.Println(resp)
2410//    }
2411//
2412// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignActivities
2413func (c *Pinpoint) GetCampaignActivitiesRequest(input *GetCampaignActivitiesInput) (req *request.Request, output *GetCampaignActivitiesOutput) {
2414	op := &request.Operation{
2415		Name:       opGetCampaignActivities,
2416		HTTPMethod: "GET",
2417		HTTPPath:   "/v1/apps/{application-id}/campaigns/{campaign-id}/activities",
2418	}
2419
2420	if input == nil {
2421		input = &GetCampaignActivitiesInput{}
2422	}
2423
2424	output = &GetCampaignActivitiesOutput{}
2425	req = c.newRequest(op, input, output)
2426	return
2427}
2428
2429// GetCampaignActivities API operation for Amazon Pinpoint.
2430//
2431// Returns information about the activity performed by a campaign.
2432//
2433// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2434// with awserr.Error's Code and Message methods to get detailed information about
2435// the error.
2436//
2437// See the AWS API reference guide for Amazon Pinpoint's
2438// API operation GetCampaignActivities for usage and error information.
2439//
2440// Returned Error Codes:
2441//   * ErrCodeBadRequestException "BadRequestException"
2442//
2443//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2444//
2445//   * ErrCodeForbiddenException "ForbiddenException"
2446//
2447//   * ErrCodeNotFoundException "NotFoundException"
2448//
2449//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2450//
2451//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2452//
2453// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignActivities
2454func (c *Pinpoint) GetCampaignActivities(input *GetCampaignActivitiesInput) (*GetCampaignActivitiesOutput, error) {
2455	req, out := c.GetCampaignActivitiesRequest(input)
2456	return out, req.Send()
2457}
2458
2459// GetCampaignActivitiesWithContext is the same as GetCampaignActivities with the addition of
2460// the ability to pass a context and additional request options.
2461//
2462// See GetCampaignActivities for details on how to use this API operation.
2463//
2464// The context must be non-nil and will be used for request cancellation. If
2465// the context is nil a panic will occur. In the future the SDK may create
2466// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2467// for more information on using Contexts.
2468func (c *Pinpoint) GetCampaignActivitiesWithContext(ctx aws.Context, input *GetCampaignActivitiesInput, opts ...request.Option) (*GetCampaignActivitiesOutput, error) {
2469	req, out := c.GetCampaignActivitiesRequest(input)
2470	req.SetContext(ctx)
2471	req.ApplyOptions(opts...)
2472	return out, req.Send()
2473}
2474
2475const opGetCampaignVersion = "GetCampaignVersion"
2476
2477// GetCampaignVersionRequest generates a "aws/request.Request" representing the
2478// client's request for the GetCampaignVersion operation. The "output" return
2479// value will be populated with the request's response once the request complets
2480// successfuly.
2481//
2482// Use "Send" method on the returned Request to send the API call to the service.
2483// the "output" return value is not valid until after Send returns without error.
2484//
2485// See GetCampaignVersion for more information on using the GetCampaignVersion
2486// API call, and error handling.
2487//
2488// This method is useful when you want to inject custom logic or configuration
2489// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2490//
2491//
2492//    // Example sending a request using the GetCampaignVersionRequest method.
2493//    req, resp := client.GetCampaignVersionRequest(params)
2494//
2495//    err := req.Send()
2496//    if err == nil { // resp is now filled
2497//        fmt.Println(resp)
2498//    }
2499//
2500// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersion
2501func (c *Pinpoint) GetCampaignVersionRequest(input *GetCampaignVersionInput) (req *request.Request, output *GetCampaignVersionOutput) {
2502	op := &request.Operation{
2503		Name:       opGetCampaignVersion,
2504		HTTPMethod: "GET",
2505		HTTPPath:   "/v1/apps/{application-id}/campaigns/{campaign-id}/versions/{version}",
2506	}
2507
2508	if input == nil {
2509		input = &GetCampaignVersionInput{}
2510	}
2511
2512	output = &GetCampaignVersionOutput{}
2513	req = c.newRequest(op, input, output)
2514	return
2515}
2516
2517// GetCampaignVersion API operation for Amazon Pinpoint.
2518//
2519// Returns information about a specific version of a campaign.
2520//
2521// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2522// with awserr.Error's Code and Message methods to get detailed information about
2523// the error.
2524//
2525// See the AWS API reference guide for Amazon Pinpoint's
2526// API operation GetCampaignVersion for usage and error information.
2527//
2528// Returned Error Codes:
2529//   * ErrCodeBadRequestException "BadRequestException"
2530//
2531//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2532//
2533//   * ErrCodeForbiddenException "ForbiddenException"
2534//
2535//   * ErrCodeNotFoundException "NotFoundException"
2536//
2537//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2538//
2539//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2540//
2541// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersion
2542func (c *Pinpoint) GetCampaignVersion(input *GetCampaignVersionInput) (*GetCampaignVersionOutput, error) {
2543	req, out := c.GetCampaignVersionRequest(input)
2544	return out, req.Send()
2545}
2546
2547// GetCampaignVersionWithContext is the same as GetCampaignVersion with the addition of
2548// the ability to pass a context and additional request options.
2549//
2550// See GetCampaignVersion for details on how to use this API operation.
2551//
2552// The context must be non-nil and will be used for request cancellation. If
2553// the context is nil a panic will occur. In the future the SDK may create
2554// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2555// for more information on using Contexts.
2556func (c *Pinpoint) GetCampaignVersionWithContext(ctx aws.Context, input *GetCampaignVersionInput, opts ...request.Option) (*GetCampaignVersionOutput, error) {
2557	req, out := c.GetCampaignVersionRequest(input)
2558	req.SetContext(ctx)
2559	req.ApplyOptions(opts...)
2560	return out, req.Send()
2561}
2562
2563const opGetCampaignVersions = "GetCampaignVersions"
2564
2565// GetCampaignVersionsRequest generates a "aws/request.Request" representing the
2566// client's request for the GetCampaignVersions operation. The "output" return
2567// value will be populated with the request's response once the request complets
2568// successfuly.
2569//
2570// Use "Send" method on the returned Request to send the API call to the service.
2571// the "output" return value is not valid until after Send returns without error.
2572//
2573// See GetCampaignVersions for more information on using the GetCampaignVersions
2574// API call, and error handling.
2575//
2576// This method is useful when you want to inject custom logic or configuration
2577// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2578//
2579//
2580//    // Example sending a request using the GetCampaignVersionsRequest method.
2581//    req, resp := client.GetCampaignVersionsRequest(params)
2582//
2583//    err := req.Send()
2584//    if err == nil { // resp is now filled
2585//        fmt.Println(resp)
2586//    }
2587//
2588// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersions
2589func (c *Pinpoint) GetCampaignVersionsRequest(input *GetCampaignVersionsInput) (req *request.Request, output *GetCampaignVersionsOutput) {
2590	op := &request.Operation{
2591		Name:       opGetCampaignVersions,
2592		HTTPMethod: "GET",
2593		HTTPPath:   "/v1/apps/{application-id}/campaigns/{campaign-id}/versions",
2594	}
2595
2596	if input == nil {
2597		input = &GetCampaignVersionsInput{}
2598	}
2599
2600	output = &GetCampaignVersionsOutput{}
2601	req = c.newRequest(op, input, output)
2602	return
2603}
2604
2605// GetCampaignVersions API operation for Amazon Pinpoint.
2606//
2607// Returns information about your campaign versions.
2608//
2609// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2610// with awserr.Error's Code and Message methods to get detailed information about
2611// the error.
2612//
2613// See the AWS API reference guide for Amazon Pinpoint's
2614// API operation GetCampaignVersions for usage and error information.
2615//
2616// Returned Error Codes:
2617//   * ErrCodeBadRequestException "BadRequestException"
2618//
2619//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2620//
2621//   * ErrCodeForbiddenException "ForbiddenException"
2622//
2623//   * ErrCodeNotFoundException "NotFoundException"
2624//
2625//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2626//
2627//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2628//
2629// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersions
2630func (c *Pinpoint) GetCampaignVersions(input *GetCampaignVersionsInput) (*GetCampaignVersionsOutput, error) {
2631	req, out := c.GetCampaignVersionsRequest(input)
2632	return out, req.Send()
2633}
2634
2635// GetCampaignVersionsWithContext is the same as GetCampaignVersions with the addition of
2636// the ability to pass a context and additional request options.
2637//
2638// See GetCampaignVersions for details on how to use this API operation.
2639//
2640// The context must be non-nil and will be used for request cancellation. If
2641// the context is nil a panic will occur. In the future the SDK may create
2642// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2643// for more information on using Contexts.
2644func (c *Pinpoint) GetCampaignVersionsWithContext(ctx aws.Context, input *GetCampaignVersionsInput, opts ...request.Option) (*GetCampaignVersionsOutput, error) {
2645	req, out := c.GetCampaignVersionsRequest(input)
2646	req.SetContext(ctx)
2647	req.ApplyOptions(opts...)
2648	return out, req.Send()
2649}
2650
2651const opGetCampaigns = "GetCampaigns"
2652
2653// GetCampaignsRequest generates a "aws/request.Request" representing the
2654// client's request for the GetCampaigns operation. The "output" return
2655// value will be populated with the request's response once the request complets
2656// successfuly.
2657//
2658// Use "Send" method on the returned Request to send the API call to the service.
2659// the "output" return value is not valid until after Send returns without error.
2660//
2661// See GetCampaigns for more information on using the GetCampaigns
2662// API call, and error handling.
2663//
2664// This method is useful when you want to inject custom logic or configuration
2665// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2666//
2667//
2668//    // Example sending a request using the GetCampaignsRequest method.
2669//    req, resp := client.GetCampaignsRequest(params)
2670//
2671//    err := req.Send()
2672//    if err == nil { // resp is now filled
2673//        fmt.Println(resp)
2674//    }
2675//
2676// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaigns
2677func (c *Pinpoint) GetCampaignsRequest(input *GetCampaignsInput) (req *request.Request, output *GetCampaignsOutput) {
2678	op := &request.Operation{
2679		Name:       opGetCampaigns,
2680		HTTPMethod: "GET",
2681		HTTPPath:   "/v1/apps/{application-id}/campaigns",
2682	}
2683
2684	if input == nil {
2685		input = &GetCampaignsInput{}
2686	}
2687
2688	output = &GetCampaignsOutput{}
2689	req = c.newRequest(op, input, output)
2690	return
2691}
2692
2693// GetCampaigns API operation for Amazon Pinpoint.
2694//
2695// Returns information about your campaigns.
2696//
2697// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2698// with awserr.Error's Code and Message methods to get detailed information about
2699// the error.
2700//
2701// See the AWS API reference guide for Amazon Pinpoint's
2702// API operation GetCampaigns for usage and error information.
2703//
2704// Returned Error Codes:
2705//   * ErrCodeBadRequestException "BadRequestException"
2706//
2707//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2708//
2709//   * ErrCodeForbiddenException "ForbiddenException"
2710//
2711//   * ErrCodeNotFoundException "NotFoundException"
2712//
2713//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2714//
2715//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2716//
2717// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaigns
2718func (c *Pinpoint) GetCampaigns(input *GetCampaignsInput) (*GetCampaignsOutput, error) {
2719	req, out := c.GetCampaignsRequest(input)
2720	return out, req.Send()
2721}
2722
2723// GetCampaignsWithContext is the same as GetCampaigns with the addition of
2724// the ability to pass a context and additional request options.
2725//
2726// See GetCampaigns for details on how to use this API operation.
2727//
2728// The context must be non-nil and will be used for request cancellation. If
2729// the context is nil a panic will occur. In the future the SDK may create
2730// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2731// for more information on using Contexts.
2732func (c *Pinpoint) GetCampaignsWithContext(ctx aws.Context, input *GetCampaignsInput, opts ...request.Option) (*GetCampaignsOutput, error) {
2733	req, out := c.GetCampaignsRequest(input)
2734	req.SetContext(ctx)
2735	req.ApplyOptions(opts...)
2736	return out, req.Send()
2737}
2738
2739const opGetEmailChannel = "GetEmailChannel"
2740
2741// GetEmailChannelRequest generates a "aws/request.Request" representing the
2742// client's request for the GetEmailChannel operation. The "output" return
2743// value will be populated with the request's response once the request complets
2744// successfuly.
2745//
2746// Use "Send" method on the returned Request to send the API call to the service.
2747// the "output" return value is not valid until after Send returns without error.
2748//
2749// See GetEmailChannel for more information on using the GetEmailChannel
2750// API call, and error handling.
2751//
2752// This method is useful when you want to inject custom logic or configuration
2753// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2754//
2755//
2756//    // Example sending a request using the GetEmailChannelRequest method.
2757//    req, resp := client.GetEmailChannelRequest(params)
2758//
2759//    err := req.Send()
2760//    if err == nil { // resp is now filled
2761//        fmt.Println(resp)
2762//    }
2763//
2764// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEmailChannel
2765func (c *Pinpoint) GetEmailChannelRequest(input *GetEmailChannelInput) (req *request.Request, output *GetEmailChannelOutput) {
2766	op := &request.Operation{
2767		Name:       opGetEmailChannel,
2768		HTTPMethod: "GET",
2769		HTTPPath:   "/v1/apps/{application-id}/channels/email",
2770	}
2771
2772	if input == nil {
2773		input = &GetEmailChannelInput{}
2774	}
2775
2776	output = &GetEmailChannelOutput{}
2777	req = c.newRequest(op, input, output)
2778	return
2779}
2780
2781// GetEmailChannel API operation for Amazon Pinpoint.
2782//
2783// Get an email channel
2784//
2785// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2786// with awserr.Error's Code and Message methods to get detailed information about
2787// the error.
2788//
2789// See the AWS API reference guide for Amazon Pinpoint's
2790// API operation GetEmailChannel for usage and error information.
2791//
2792// Returned Error Codes:
2793//   * ErrCodeBadRequestException "BadRequestException"
2794//
2795//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2796//
2797//   * ErrCodeForbiddenException "ForbiddenException"
2798//
2799//   * ErrCodeNotFoundException "NotFoundException"
2800//
2801//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2802//
2803//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2804//
2805// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEmailChannel
2806func (c *Pinpoint) GetEmailChannel(input *GetEmailChannelInput) (*GetEmailChannelOutput, error) {
2807	req, out := c.GetEmailChannelRequest(input)
2808	return out, req.Send()
2809}
2810
2811// GetEmailChannelWithContext is the same as GetEmailChannel with the addition of
2812// the ability to pass a context and additional request options.
2813//
2814// See GetEmailChannel for details on how to use this API operation.
2815//
2816// The context must be non-nil and will be used for request cancellation. If
2817// the context is nil a panic will occur. In the future the SDK may create
2818// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2819// for more information on using Contexts.
2820func (c *Pinpoint) GetEmailChannelWithContext(ctx aws.Context, input *GetEmailChannelInput, opts ...request.Option) (*GetEmailChannelOutput, error) {
2821	req, out := c.GetEmailChannelRequest(input)
2822	req.SetContext(ctx)
2823	req.ApplyOptions(opts...)
2824	return out, req.Send()
2825}
2826
2827const opGetEndpoint = "GetEndpoint"
2828
2829// GetEndpointRequest generates a "aws/request.Request" representing the
2830// client's request for the GetEndpoint operation. The "output" return
2831// value will be populated with the request's response once the request complets
2832// successfuly.
2833//
2834// Use "Send" method on the returned Request to send the API call to the service.
2835// the "output" return value is not valid until after Send returns without error.
2836//
2837// See GetEndpoint for more information on using the GetEndpoint
2838// API call, and error handling.
2839//
2840// This method is useful when you want to inject custom logic or configuration
2841// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2842//
2843//
2844//    // Example sending a request using the GetEndpointRequest method.
2845//    req, resp := client.GetEndpointRequest(params)
2846//
2847//    err := req.Send()
2848//    if err == nil { // resp is now filled
2849//        fmt.Println(resp)
2850//    }
2851//
2852// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEndpoint
2853func (c *Pinpoint) GetEndpointRequest(input *GetEndpointInput) (req *request.Request, output *GetEndpointOutput) {
2854	op := &request.Operation{
2855		Name:       opGetEndpoint,
2856		HTTPMethod: "GET",
2857		HTTPPath:   "/v1/apps/{application-id}/endpoints/{endpoint-id}",
2858	}
2859
2860	if input == nil {
2861		input = &GetEndpointInput{}
2862	}
2863
2864	output = &GetEndpointOutput{}
2865	req = c.newRequest(op, input, output)
2866	return
2867}
2868
2869// GetEndpoint API operation for Amazon Pinpoint.
2870//
2871// Returns information about an endpoint.
2872//
2873// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2874// with awserr.Error's Code and Message methods to get detailed information about
2875// the error.
2876//
2877// See the AWS API reference guide for Amazon Pinpoint's
2878// API operation GetEndpoint for usage and error information.
2879//
2880// Returned Error Codes:
2881//   * ErrCodeBadRequestException "BadRequestException"
2882//
2883//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2884//
2885//   * ErrCodeForbiddenException "ForbiddenException"
2886//
2887//   * ErrCodeNotFoundException "NotFoundException"
2888//
2889//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2890//
2891//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2892//
2893// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEndpoint
2894func (c *Pinpoint) GetEndpoint(input *GetEndpointInput) (*GetEndpointOutput, error) {
2895	req, out := c.GetEndpointRequest(input)
2896	return out, req.Send()
2897}
2898
2899// GetEndpointWithContext is the same as GetEndpoint with the addition of
2900// the ability to pass a context and additional request options.
2901//
2902// See GetEndpoint for details on how to use this API operation.
2903//
2904// The context must be non-nil and will be used for request cancellation. If
2905// the context is nil a panic will occur. In the future the SDK may create
2906// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2907// for more information on using Contexts.
2908func (c *Pinpoint) GetEndpointWithContext(ctx aws.Context, input *GetEndpointInput, opts ...request.Option) (*GetEndpointOutput, error) {
2909	req, out := c.GetEndpointRequest(input)
2910	req.SetContext(ctx)
2911	req.ApplyOptions(opts...)
2912	return out, req.Send()
2913}
2914
2915const opGetEventStream = "GetEventStream"
2916
2917// GetEventStreamRequest generates a "aws/request.Request" representing the
2918// client's request for the GetEventStream operation. The "output" return
2919// value will be populated with the request's response once the request complets
2920// successfuly.
2921//
2922// Use "Send" method on the returned Request to send the API call to the service.
2923// the "output" return value is not valid until after Send returns without error.
2924//
2925// See GetEventStream for more information on using the GetEventStream
2926// API call, and error handling.
2927//
2928// This method is useful when you want to inject custom logic or configuration
2929// into the SDK's request lifecycle. Such as custom headers, or retry logic.
2930//
2931//
2932//    // Example sending a request using the GetEventStreamRequest method.
2933//    req, resp := client.GetEventStreamRequest(params)
2934//
2935//    err := req.Send()
2936//    if err == nil { // resp is now filled
2937//        fmt.Println(resp)
2938//    }
2939//
2940// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEventStream
2941func (c *Pinpoint) GetEventStreamRequest(input *GetEventStreamInput) (req *request.Request, output *GetEventStreamOutput) {
2942	op := &request.Operation{
2943		Name:       opGetEventStream,
2944		HTTPMethod: "GET",
2945		HTTPPath:   "/v1/apps/{application-id}/eventstream",
2946	}
2947
2948	if input == nil {
2949		input = &GetEventStreamInput{}
2950	}
2951
2952	output = &GetEventStreamOutput{}
2953	req = c.newRequest(op, input, output)
2954	return
2955}
2956
2957// GetEventStream API operation for Amazon Pinpoint.
2958//
2959// Returns the event stream for an app.
2960//
2961// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
2962// with awserr.Error's Code and Message methods to get detailed information about
2963// the error.
2964//
2965// See the AWS API reference guide for Amazon Pinpoint's
2966// API operation GetEventStream for usage and error information.
2967//
2968// Returned Error Codes:
2969//   * ErrCodeBadRequestException "BadRequestException"
2970//
2971//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
2972//
2973//   * ErrCodeForbiddenException "ForbiddenException"
2974//
2975//   * ErrCodeNotFoundException "NotFoundException"
2976//
2977//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
2978//
2979//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
2980//
2981// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEventStream
2982func (c *Pinpoint) GetEventStream(input *GetEventStreamInput) (*GetEventStreamOutput, error) {
2983	req, out := c.GetEventStreamRequest(input)
2984	return out, req.Send()
2985}
2986
2987// GetEventStreamWithContext is the same as GetEventStream with the addition of
2988// the ability to pass a context and additional request options.
2989//
2990// See GetEventStream for details on how to use this API operation.
2991//
2992// The context must be non-nil and will be used for request cancellation. If
2993// the context is nil a panic will occur. In the future the SDK may create
2994// sub-contexts for http.Requests. See https://golang.org/pkg/context/
2995// for more information on using Contexts.
2996func (c *Pinpoint) GetEventStreamWithContext(ctx aws.Context, input *GetEventStreamInput, opts ...request.Option) (*GetEventStreamOutput, error) {
2997	req, out := c.GetEventStreamRequest(input)
2998	req.SetContext(ctx)
2999	req.ApplyOptions(opts...)
3000	return out, req.Send()
3001}
3002
3003const opGetGcmChannel = "GetGcmChannel"
3004
3005// GetGcmChannelRequest generates a "aws/request.Request" representing the
3006// client's request for the GetGcmChannel operation. The "output" return
3007// value will be populated with the request's response once the request complets
3008// successfuly.
3009//
3010// Use "Send" method on the returned Request to send the API call to the service.
3011// the "output" return value is not valid until after Send returns without error.
3012//
3013// See GetGcmChannel for more information on using the GetGcmChannel
3014// API call, and error handling.
3015//
3016// This method is useful when you want to inject custom logic or configuration
3017// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3018//
3019//
3020//    // Example sending a request using the GetGcmChannelRequest method.
3021//    req, resp := client.GetGcmChannelRequest(params)
3022//
3023//    err := req.Send()
3024//    if err == nil { // resp is now filled
3025//        fmt.Println(resp)
3026//    }
3027//
3028// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetGcmChannel
3029func (c *Pinpoint) GetGcmChannelRequest(input *GetGcmChannelInput) (req *request.Request, output *GetGcmChannelOutput) {
3030	op := &request.Operation{
3031		Name:       opGetGcmChannel,
3032		HTTPMethod: "GET",
3033		HTTPPath:   "/v1/apps/{application-id}/channels/gcm",
3034	}
3035
3036	if input == nil {
3037		input = &GetGcmChannelInput{}
3038	}
3039
3040	output = &GetGcmChannelOutput{}
3041	req = c.newRequest(op, input, output)
3042	return
3043}
3044
3045// GetGcmChannel API operation for Amazon Pinpoint.
3046//
3047// Returns information about the GCM channel for an app.
3048//
3049// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3050// with awserr.Error's Code and Message methods to get detailed information about
3051// the error.
3052//
3053// See the AWS API reference guide for Amazon Pinpoint's
3054// API operation GetGcmChannel for usage and error information.
3055//
3056// Returned Error Codes:
3057//   * ErrCodeBadRequestException "BadRequestException"
3058//
3059//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3060//
3061//   * ErrCodeForbiddenException "ForbiddenException"
3062//
3063//   * ErrCodeNotFoundException "NotFoundException"
3064//
3065//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3066//
3067//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3068//
3069// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetGcmChannel
3070func (c *Pinpoint) GetGcmChannel(input *GetGcmChannelInput) (*GetGcmChannelOutput, error) {
3071	req, out := c.GetGcmChannelRequest(input)
3072	return out, req.Send()
3073}
3074
3075// GetGcmChannelWithContext is the same as GetGcmChannel with the addition of
3076// the ability to pass a context and additional request options.
3077//
3078// See GetGcmChannel for details on how to use this API operation.
3079//
3080// The context must be non-nil and will be used for request cancellation. If
3081// the context is nil a panic will occur. In the future the SDK may create
3082// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3083// for more information on using Contexts.
3084func (c *Pinpoint) GetGcmChannelWithContext(ctx aws.Context, input *GetGcmChannelInput, opts ...request.Option) (*GetGcmChannelOutput, error) {
3085	req, out := c.GetGcmChannelRequest(input)
3086	req.SetContext(ctx)
3087	req.ApplyOptions(opts...)
3088	return out, req.Send()
3089}
3090
3091const opGetImportJob = "GetImportJob"
3092
3093// GetImportJobRequest generates a "aws/request.Request" representing the
3094// client's request for the GetImportJob operation. The "output" return
3095// value will be populated with the request's response once the request complets
3096// successfuly.
3097//
3098// Use "Send" method on the returned Request to send the API call to the service.
3099// the "output" return value is not valid until after Send returns without error.
3100//
3101// See GetImportJob for more information on using the GetImportJob
3102// API call, and error handling.
3103//
3104// This method is useful when you want to inject custom logic or configuration
3105// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3106//
3107//
3108//    // Example sending a request using the GetImportJobRequest method.
3109//    req, resp := client.GetImportJobRequest(params)
3110//
3111//    err := req.Send()
3112//    if err == nil { // resp is now filled
3113//        fmt.Println(resp)
3114//    }
3115//
3116// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJob
3117func (c *Pinpoint) GetImportJobRequest(input *GetImportJobInput) (req *request.Request, output *GetImportJobOutput) {
3118	op := &request.Operation{
3119		Name:       opGetImportJob,
3120		HTTPMethod: "GET",
3121		HTTPPath:   "/v1/apps/{application-id}/jobs/import/{job-id}",
3122	}
3123
3124	if input == nil {
3125		input = &GetImportJobInput{}
3126	}
3127
3128	output = &GetImportJobOutput{}
3129	req = c.newRequest(op, input, output)
3130	return
3131}
3132
3133// GetImportJob API operation for Amazon Pinpoint.
3134//
3135// Returns information about an import job.
3136//
3137// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3138// with awserr.Error's Code and Message methods to get detailed information about
3139// the error.
3140//
3141// See the AWS API reference guide for Amazon Pinpoint's
3142// API operation GetImportJob for usage and error information.
3143//
3144// Returned Error Codes:
3145//   * ErrCodeBadRequestException "BadRequestException"
3146//
3147//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3148//
3149//   * ErrCodeForbiddenException "ForbiddenException"
3150//
3151//   * ErrCodeNotFoundException "NotFoundException"
3152//
3153//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3154//
3155//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3156//
3157// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJob
3158func (c *Pinpoint) GetImportJob(input *GetImportJobInput) (*GetImportJobOutput, error) {
3159	req, out := c.GetImportJobRequest(input)
3160	return out, req.Send()
3161}
3162
3163// GetImportJobWithContext is the same as GetImportJob with the addition of
3164// the ability to pass a context and additional request options.
3165//
3166// See GetImportJob for details on how to use this API operation.
3167//
3168// The context must be non-nil and will be used for request cancellation. If
3169// the context is nil a panic will occur. In the future the SDK may create
3170// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3171// for more information on using Contexts.
3172func (c *Pinpoint) GetImportJobWithContext(ctx aws.Context, input *GetImportJobInput, opts ...request.Option) (*GetImportJobOutput, error) {
3173	req, out := c.GetImportJobRequest(input)
3174	req.SetContext(ctx)
3175	req.ApplyOptions(opts...)
3176	return out, req.Send()
3177}
3178
3179const opGetImportJobs = "GetImportJobs"
3180
3181// GetImportJobsRequest generates a "aws/request.Request" representing the
3182// client's request for the GetImportJobs operation. The "output" return
3183// value will be populated with the request's response once the request complets
3184// successfuly.
3185//
3186// Use "Send" method on the returned Request to send the API call to the service.
3187// the "output" return value is not valid until after Send returns without error.
3188//
3189// See GetImportJobs for more information on using the GetImportJobs
3190// API call, and error handling.
3191//
3192// This method is useful when you want to inject custom logic or configuration
3193// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3194//
3195//
3196//    // Example sending a request using the GetImportJobsRequest method.
3197//    req, resp := client.GetImportJobsRequest(params)
3198//
3199//    err := req.Send()
3200//    if err == nil { // resp is now filled
3201//        fmt.Println(resp)
3202//    }
3203//
3204// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJobs
3205func (c *Pinpoint) GetImportJobsRequest(input *GetImportJobsInput) (req *request.Request, output *GetImportJobsOutput) {
3206	op := &request.Operation{
3207		Name:       opGetImportJobs,
3208		HTTPMethod: "GET",
3209		HTTPPath:   "/v1/apps/{application-id}/jobs/import",
3210	}
3211
3212	if input == nil {
3213		input = &GetImportJobsInput{}
3214	}
3215
3216	output = &GetImportJobsOutput{}
3217	req = c.newRequest(op, input, output)
3218	return
3219}
3220
3221// GetImportJobs API operation for Amazon Pinpoint.
3222//
3223// Returns information about your import jobs.
3224//
3225// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3226// with awserr.Error's Code and Message methods to get detailed information about
3227// the error.
3228//
3229// See the AWS API reference guide for Amazon Pinpoint's
3230// API operation GetImportJobs for usage and error information.
3231//
3232// Returned Error Codes:
3233//   * ErrCodeBadRequestException "BadRequestException"
3234//
3235//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3236//
3237//   * ErrCodeForbiddenException "ForbiddenException"
3238//
3239//   * ErrCodeNotFoundException "NotFoundException"
3240//
3241//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3242//
3243//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3244//
3245// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJobs
3246func (c *Pinpoint) GetImportJobs(input *GetImportJobsInput) (*GetImportJobsOutput, error) {
3247	req, out := c.GetImportJobsRequest(input)
3248	return out, req.Send()
3249}
3250
3251// GetImportJobsWithContext is the same as GetImportJobs with the addition of
3252// the ability to pass a context and additional request options.
3253//
3254// See GetImportJobs for details on how to use this API operation.
3255//
3256// The context must be non-nil and will be used for request cancellation. If
3257// the context is nil a panic will occur. In the future the SDK may create
3258// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3259// for more information on using Contexts.
3260func (c *Pinpoint) GetImportJobsWithContext(ctx aws.Context, input *GetImportJobsInput, opts ...request.Option) (*GetImportJobsOutput, error) {
3261	req, out := c.GetImportJobsRequest(input)
3262	req.SetContext(ctx)
3263	req.ApplyOptions(opts...)
3264	return out, req.Send()
3265}
3266
3267const opGetSegment = "GetSegment"
3268
3269// GetSegmentRequest generates a "aws/request.Request" representing the
3270// client's request for the GetSegment operation. The "output" return
3271// value will be populated with the request's response once the request complets
3272// successfuly.
3273//
3274// Use "Send" method on the returned Request to send the API call to the service.
3275// the "output" return value is not valid until after Send returns without error.
3276//
3277// See GetSegment for more information on using the GetSegment
3278// API call, and error handling.
3279//
3280// This method is useful when you want to inject custom logic or configuration
3281// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3282//
3283//
3284//    // Example sending a request using the GetSegmentRequest method.
3285//    req, resp := client.GetSegmentRequest(params)
3286//
3287//    err := req.Send()
3288//    if err == nil { // resp is now filled
3289//        fmt.Println(resp)
3290//    }
3291//
3292// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegment
3293func (c *Pinpoint) GetSegmentRequest(input *GetSegmentInput) (req *request.Request, output *GetSegmentOutput) {
3294	op := &request.Operation{
3295		Name:       opGetSegment,
3296		HTTPMethod: "GET",
3297		HTTPPath:   "/v1/apps/{application-id}/segments/{segment-id}",
3298	}
3299
3300	if input == nil {
3301		input = &GetSegmentInput{}
3302	}
3303
3304	output = &GetSegmentOutput{}
3305	req = c.newRequest(op, input, output)
3306	return
3307}
3308
3309// GetSegment API operation for Amazon Pinpoint.
3310//
3311// Returns information about a segment.
3312//
3313// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3314// with awserr.Error's Code and Message methods to get detailed information about
3315// the error.
3316//
3317// See the AWS API reference guide for Amazon Pinpoint's
3318// API operation GetSegment for usage and error information.
3319//
3320// Returned Error Codes:
3321//   * ErrCodeBadRequestException "BadRequestException"
3322//
3323//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3324//
3325//   * ErrCodeForbiddenException "ForbiddenException"
3326//
3327//   * ErrCodeNotFoundException "NotFoundException"
3328//
3329//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3330//
3331//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3332//
3333// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegment
3334func (c *Pinpoint) GetSegment(input *GetSegmentInput) (*GetSegmentOutput, error) {
3335	req, out := c.GetSegmentRequest(input)
3336	return out, req.Send()
3337}
3338
3339// GetSegmentWithContext is the same as GetSegment with the addition of
3340// the ability to pass a context and additional request options.
3341//
3342// See GetSegment for details on how to use this API operation.
3343//
3344// The context must be non-nil and will be used for request cancellation. If
3345// the context is nil a panic will occur. In the future the SDK may create
3346// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3347// for more information on using Contexts.
3348func (c *Pinpoint) GetSegmentWithContext(ctx aws.Context, input *GetSegmentInput, opts ...request.Option) (*GetSegmentOutput, error) {
3349	req, out := c.GetSegmentRequest(input)
3350	req.SetContext(ctx)
3351	req.ApplyOptions(opts...)
3352	return out, req.Send()
3353}
3354
3355const opGetSegmentImportJobs = "GetSegmentImportJobs"
3356
3357// GetSegmentImportJobsRequest generates a "aws/request.Request" representing the
3358// client's request for the GetSegmentImportJobs operation. The "output" return
3359// value will be populated with the request's response once the request complets
3360// successfuly.
3361//
3362// Use "Send" method on the returned Request to send the API call to the service.
3363// the "output" return value is not valid until after Send returns without error.
3364//
3365// See GetSegmentImportJobs for more information on using the GetSegmentImportJobs
3366// API call, and error handling.
3367//
3368// This method is useful when you want to inject custom logic or configuration
3369// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3370//
3371//
3372//    // Example sending a request using the GetSegmentImportJobsRequest method.
3373//    req, resp := client.GetSegmentImportJobsRequest(params)
3374//
3375//    err := req.Send()
3376//    if err == nil { // resp is now filled
3377//        fmt.Println(resp)
3378//    }
3379//
3380// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentImportJobs
3381func (c *Pinpoint) GetSegmentImportJobsRequest(input *GetSegmentImportJobsInput) (req *request.Request, output *GetSegmentImportJobsOutput) {
3382	op := &request.Operation{
3383		Name:       opGetSegmentImportJobs,
3384		HTTPMethod: "GET",
3385		HTTPPath:   "/v1/apps/{application-id}/segments/{segment-id}/jobs/import",
3386	}
3387
3388	if input == nil {
3389		input = &GetSegmentImportJobsInput{}
3390	}
3391
3392	output = &GetSegmentImportJobsOutput{}
3393	req = c.newRequest(op, input, output)
3394	return
3395}
3396
3397// GetSegmentImportJobs API operation for Amazon Pinpoint.
3398//
3399// Returns a list of import jobs for a specific segment.
3400//
3401// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3402// with awserr.Error's Code and Message methods to get detailed information about
3403// the error.
3404//
3405// See the AWS API reference guide for Amazon Pinpoint's
3406// API operation GetSegmentImportJobs for usage and error information.
3407//
3408// Returned Error Codes:
3409//   * ErrCodeBadRequestException "BadRequestException"
3410//
3411//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3412//
3413//   * ErrCodeForbiddenException "ForbiddenException"
3414//
3415//   * ErrCodeNotFoundException "NotFoundException"
3416//
3417//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3418//
3419//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3420//
3421// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentImportJobs
3422func (c *Pinpoint) GetSegmentImportJobs(input *GetSegmentImportJobsInput) (*GetSegmentImportJobsOutput, error) {
3423	req, out := c.GetSegmentImportJobsRequest(input)
3424	return out, req.Send()
3425}
3426
3427// GetSegmentImportJobsWithContext is the same as GetSegmentImportJobs with the addition of
3428// the ability to pass a context and additional request options.
3429//
3430// See GetSegmentImportJobs for details on how to use this API operation.
3431//
3432// The context must be non-nil and will be used for request cancellation. If
3433// the context is nil a panic will occur. In the future the SDK may create
3434// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3435// for more information on using Contexts.
3436func (c *Pinpoint) GetSegmentImportJobsWithContext(ctx aws.Context, input *GetSegmentImportJobsInput, opts ...request.Option) (*GetSegmentImportJobsOutput, error) {
3437	req, out := c.GetSegmentImportJobsRequest(input)
3438	req.SetContext(ctx)
3439	req.ApplyOptions(opts...)
3440	return out, req.Send()
3441}
3442
3443const opGetSegmentVersion = "GetSegmentVersion"
3444
3445// GetSegmentVersionRequest generates a "aws/request.Request" representing the
3446// client's request for the GetSegmentVersion operation. The "output" return
3447// value will be populated with the request's response once the request complets
3448// successfuly.
3449//
3450// Use "Send" method on the returned Request to send the API call to the service.
3451// the "output" return value is not valid until after Send returns without error.
3452//
3453// See GetSegmentVersion for more information on using the GetSegmentVersion
3454// API call, and error handling.
3455//
3456// This method is useful when you want to inject custom logic or configuration
3457// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3458//
3459//
3460//    // Example sending a request using the GetSegmentVersionRequest method.
3461//    req, resp := client.GetSegmentVersionRequest(params)
3462//
3463//    err := req.Send()
3464//    if err == nil { // resp is now filled
3465//        fmt.Println(resp)
3466//    }
3467//
3468// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersion
3469func (c *Pinpoint) GetSegmentVersionRequest(input *GetSegmentVersionInput) (req *request.Request, output *GetSegmentVersionOutput) {
3470	op := &request.Operation{
3471		Name:       opGetSegmentVersion,
3472		HTTPMethod: "GET",
3473		HTTPPath:   "/v1/apps/{application-id}/segments/{segment-id}/versions/{version}",
3474	}
3475
3476	if input == nil {
3477		input = &GetSegmentVersionInput{}
3478	}
3479
3480	output = &GetSegmentVersionOutput{}
3481	req = c.newRequest(op, input, output)
3482	return
3483}
3484
3485// GetSegmentVersion API operation for Amazon Pinpoint.
3486//
3487// Returns information about a segment version.
3488//
3489// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3490// with awserr.Error's Code and Message methods to get detailed information about
3491// the error.
3492//
3493// See the AWS API reference guide for Amazon Pinpoint's
3494// API operation GetSegmentVersion for usage and error information.
3495//
3496// Returned Error Codes:
3497//   * ErrCodeBadRequestException "BadRequestException"
3498//
3499//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3500//
3501//   * ErrCodeForbiddenException "ForbiddenException"
3502//
3503//   * ErrCodeNotFoundException "NotFoundException"
3504//
3505//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3506//
3507//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3508//
3509// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersion
3510func (c *Pinpoint) GetSegmentVersion(input *GetSegmentVersionInput) (*GetSegmentVersionOutput, error) {
3511	req, out := c.GetSegmentVersionRequest(input)
3512	return out, req.Send()
3513}
3514
3515// GetSegmentVersionWithContext is the same as GetSegmentVersion with the addition of
3516// the ability to pass a context and additional request options.
3517//
3518// See GetSegmentVersion for details on how to use this API operation.
3519//
3520// The context must be non-nil and will be used for request cancellation. If
3521// the context is nil a panic will occur. In the future the SDK may create
3522// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3523// for more information on using Contexts.
3524func (c *Pinpoint) GetSegmentVersionWithContext(ctx aws.Context, input *GetSegmentVersionInput, opts ...request.Option) (*GetSegmentVersionOutput, error) {
3525	req, out := c.GetSegmentVersionRequest(input)
3526	req.SetContext(ctx)
3527	req.ApplyOptions(opts...)
3528	return out, req.Send()
3529}
3530
3531const opGetSegmentVersions = "GetSegmentVersions"
3532
3533// GetSegmentVersionsRequest generates a "aws/request.Request" representing the
3534// client's request for the GetSegmentVersions operation. The "output" return
3535// value will be populated with the request's response once the request complets
3536// successfuly.
3537//
3538// Use "Send" method on the returned Request to send the API call to the service.
3539// the "output" return value is not valid until after Send returns without error.
3540//
3541// See GetSegmentVersions for more information on using the GetSegmentVersions
3542// API call, and error handling.
3543//
3544// This method is useful when you want to inject custom logic or configuration
3545// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3546//
3547//
3548//    // Example sending a request using the GetSegmentVersionsRequest method.
3549//    req, resp := client.GetSegmentVersionsRequest(params)
3550//
3551//    err := req.Send()
3552//    if err == nil { // resp is now filled
3553//        fmt.Println(resp)
3554//    }
3555//
3556// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersions
3557func (c *Pinpoint) GetSegmentVersionsRequest(input *GetSegmentVersionsInput) (req *request.Request, output *GetSegmentVersionsOutput) {
3558	op := &request.Operation{
3559		Name:       opGetSegmentVersions,
3560		HTTPMethod: "GET",
3561		HTTPPath:   "/v1/apps/{application-id}/segments/{segment-id}/versions",
3562	}
3563
3564	if input == nil {
3565		input = &GetSegmentVersionsInput{}
3566	}
3567
3568	output = &GetSegmentVersionsOutput{}
3569	req = c.newRequest(op, input, output)
3570	return
3571}
3572
3573// GetSegmentVersions API operation for Amazon Pinpoint.
3574//
3575// Returns information about your segment versions.
3576//
3577// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3578// with awserr.Error's Code and Message methods to get detailed information about
3579// the error.
3580//
3581// See the AWS API reference guide for Amazon Pinpoint's
3582// API operation GetSegmentVersions for usage and error information.
3583//
3584// Returned Error Codes:
3585//   * ErrCodeBadRequestException "BadRequestException"
3586//
3587//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3588//
3589//   * ErrCodeForbiddenException "ForbiddenException"
3590//
3591//   * ErrCodeNotFoundException "NotFoundException"
3592//
3593//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3594//
3595//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3596//
3597// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersions
3598func (c *Pinpoint) GetSegmentVersions(input *GetSegmentVersionsInput) (*GetSegmentVersionsOutput, error) {
3599	req, out := c.GetSegmentVersionsRequest(input)
3600	return out, req.Send()
3601}
3602
3603// GetSegmentVersionsWithContext is the same as GetSegmentVersions with the addition of
3604// the ability to pass a context and additional request options.
3605//
3606// See GetSegmentVersions for details on how to use this API operation.
3607//
3608// The context must be non-nil and will be used for request cancellation. If
3609// the context is nil a panic will occur. In the future the SDK may create
3610// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3611// for more information on using Contexts.
3612func (c *Pinpoint) GetSegmentVersionsWithContext(ctx aws.Context, input *GetSegmentVersionsInput, opts ...request.Option) (*GetSegmentVersionsOutput, error) {
3613	req, out := c.GetSegmentVersionsRequest(input)
3614	req.SetContext(ctx)
3615	req.ApplyOptions(opts...)
3616	return out, req.Send()
3617}
3618
3619const opGetSegments = "GetSegments"
3620
3621// GetSegmentsRequest generates a "aws/request.Request" representing the
3622// client's request for the GetSegments operation. The "output" return
3623// value will be populated with the request's response once the request complets
3624// successfuly.
3625//
3626// Use "Send" method on the returned Request to send the API call to the service.
3627// the "output" return value is not valid until after Send returns without error.
3628//
3629// See GetSegments for more information on using the GetSegments
3630// API call, and error handling.
3631//
3632// This method is useful when you want to inject custom logic or configuration
3633// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3634//
3635//
3636//    // Example sending a request using the GetSegmentsRequest method.
3637//    req, resp := client.GetSegmentsRequest(params)
3638//
3639//    err := req.Send()
3640//    if err == nil { // resp is now filled
3641//        fmt.Println(resp)
3642//    }
3643//
3644// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegments
3645func (c *Pinpoint) GetSegmentsRequest(input *GetSegmentsInput) (req *request.Request, output *GetSegmentsOutput) {
3646	op := &request.Operation{
3647		Name:       opGetSegments,
3648		HTTPMethod: "GET",
3649		HTTPPath:   "/v1/apps/{application-id}/segments",
3650	}
3651
3652	if input == nil {
3653		input = &GetSegmentsInput{}
3654	}
3655
3656	output = &GetSegmentsOutput{}
3657	req = c.newRequest(op, input, output)
3658	return
3659}
3660
3661// GetSegments API operation for Amazon Pinpoint.
3662//
3663// Used to get information about your segments.
3664//
3665// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3666// with awserr.Error's Code and Message methods to get detailed information about
3667// the error.
3668//
3669// See the AWS API reference guide for Amazon Pinpoint's
3670// API operation GetSegments for usage and error information.
3671//
3672// Returned Error Codes:
3673//   * ErrCodeBadRequestException "BadRequestException"
3674//
3675//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3676//
3677//   * ErrCodeForbiddenException "ForbiddenException"
3678//
3679//   * ErrCodeNotFoundException "NotFoundException"
3680//
3681//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3682//
3683//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3684//
3685// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegments
3686func (c *Pinpoint) GetSegments(input *GetSegmentsInput) (*GetSegmentsOutput, error) {
3687	req, out := c.GetSegmentsRequest(input)
3688	return out, req.Send()
3689}
3690
3691// GetSegmentsWithContext is the same as GetSegments with the addition of
3692// the ability to pass a context and additional request options.
3693//
3694// See GetSegments for details on how to use this API operation.
3695//
3696// The context must be non-nil and will be used for request cancellation. If
3697// the context is nil a panic will occur. In the future the SDK may create
3698// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3699// for more information on using Contexts.
3700func (c *Pinpoint) GetSegmentsWithContext(ctx aws.Context, input *GetSegmentsInput, opts ...request.Option) (*GetSegmentsOutput, error) {
3701	req, out := c.GetSegmentsRequest(input)
3702	req.SetContext(ctx)
3703	req.ApplyOptions(opts...)
3704	return out, req.Send()
3705}
3706
3707const opGetSmsChannel = "GetSmsChannel"
3708
3709// GetSmsChannelRequest generates a "aws/request.Request" representing the
3710// client's request for the GetSmsChannel operation. The "output" return
3711// value will be populated with the request's response once the request complets
3712// successfuly.
3713//
3714// Use "Send" method on the returned Request to send the API call to the service.
3715// the "output" return value is not valid until after Send returns without error.
3716//
3717// See GetSmsChannel for more information on using the GetSmsChannel
3718// API call, and error handling.
3719//
3720// This method is useful when you want to inject custom logic or configuration
3721// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3722//
3723//
3724//    // Example sending a request using the GetSmsChannelRequest method.
3725//    req, resp := client.GetSmsChannelRequest(params)
3726//
3727//    err := req.Send()
3728//    if err == nil { // resp is now filled
3729//        fmt.Println(resp)
3730//    }
3731//
3732// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSmsChannel
3733func (c *Pinpoint) GetSmsChannelRequest(input *GetSmsChannelInput) (req *request.Request, output *GetSmsChannelOutput) {
3734	op := &request.Operation{
3735		Name:       opGetSmsChannel,
3736		HTTPMethod: "GET",
3737		HTTPPath:   "/v1/apps/{application-id}/channels/sms",
3738	}
3739
3740	if input == nil {
3741		input = &GetSmsChannelInput{}
3742	}
3743
3744	output = &GetSmsChannelOutput{}
3745	req = c.newRequest(op, input, output)
3746	return
3747}
3748
3749// GetSmsChannel API operation for Amazon Pinpoint.
3750//
3751// Get an SMS channel
3752//
3753// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3754// with awserr.Error's Code and Message methods to get detailed information about
3755// the error.
3756//
3757// See the AWS API reference guide for Amazon Pinpoint's
3758// API operation GetSmsChannel for usage and error information.
3759//
3760// Returned Error Codes:
3761//   * ErrCodeBadRequestException "BadRequestException"
3762//
3763//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3764//
3765//   * ErrCodeForbiddenException "ForbiddenException"
3766//
3767//   * ErrCodeNotFoundException "NotFoundException"
3768//
3769//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3770//
3771//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3772//
3773// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSmsChannel
3774func (c *Pinpoint) GetSmsChannel(input *GetSmsChannelInput) (*GetSmsChannelOutput, error) {
3775	req, out := c.GetSmsChannelRequest(input)
3776	return out, req.Send()
3777}
3778
3779// GetSmsChannelWithContext is the same as GetSmsChannel with the addition of
3780// the ability to pass a context and additional request options.
3781//
3782// See GetSmsChannel for details on how to use this API operation.
3783//
3784// The context must be non-nil and will be used for request cancellation. If
3785// the context is nil a panic will occur. In the future the SDK may create
3786// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3787// for more information on using Contexts.
3788func (c *Pinpoint) GetSmsChannelWithContext(ctx aws.Context, input *GetSmsChannelInput, opts ...request.Option) (*GetSmsChannelOutput, error) {
3789	req, out := c.GetSmsChannelRequest(input)
3790	req.SetContext(ctx)
3791	req.ApplyOptions(opts...)
3792	return out, req.Send()
3793}
3794
3795const opPutEventStream = "PutEventStream"
3796
3797// PutEventStreamRequest generates a "aws/request.Request" representing the
3798// client's request for the PutEventStream operation. The "output" return
3799// value will be populated with the request's response once the request complets
3800// successfuly.
3801//
3802// Use "Send" method on the returned Request to send the API call to the service.
3803// the "output" return value is not valid until after Send returns without error.
3804//
3805// See PutEventStream for more information on using the PutEventStream
3806// API call, and error handling.
3807//
3808// This method is useful when you want to inject custom logic or configuration
3809// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3810//
3811//
3812//    // Example sending a request using the PutEventStreamRequest method.
3813//    req, resp := client.PutEventStreamRequest(params)
3814//
3815//    err := req.Send()
3816//    if err == nil { // resp is now filled
3817//        fmt.Println(resp)
3818//    }
3819//
3820// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PutEventStream
3821func (c *Pinpoint) PutEventStreamRequest(input *PutEventStreamInput) (req *request.Request, output *PutEventStreamOutput) {
3822	op := &request.Operation{
3823		Name:       opPutEventStream,
3824		HTTPMethod: "POST",
3825		HTTPPath:   "/v1/apps/{application-id}/eventstream",
3826	}
3827
3828	if input == nil {
3829		input = &PutEventStreamInput{}
3830	}
3831
3832	output = &PutEventStreamOutput{}
3833	req = c.newRequest(op, input, output)
3834	return
3835}
3836
3837// PutEventStream API operation for Amazon Pinpoint.
3838//
3839// Use to create or update the event stream for an app.
3840//
3841// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3842// with awserr.Error's Code and Message methods to get detailed information about
3843// the error.
3844//
3845// See the AWS API reference guide for Amazon Pinpoint's
3846// API operation PutEventStream for usage and error information.
3847//
3848// Returned Error Codes:
3849//   * ErrCodeBadRequestException "BadRequestException"
3850//
3851//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3852//
3853//   * ErrCodeForbiddenException "ForbiddenException"
3854//
3855//   * ErrCodeNotFoundException "NotFoundException"
3856//
3857//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3858//
3859//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3860//
3861// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PutEventStream
3862func (c *Pinpoint) PutEventStream(input *PutEventStreamInput) (*PutEventStreamOutput, error) {
3863	req, out := c.PutEventStreamRequest(input)
3864	return out, req.Send()
3865}
3866
3867// PutEventStreamWithContext is the same as PutEventStream with the addition of
3868// the ability to pass a context and additional request options.
3869//
3870// See PutEventStream for details on how to use this API operation.
3871//
3872// The context must be non-nil and will be used for request cancellation. If
3873// the context is nil a panic will occur. In the future the SDK may create
3874// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3875// for more information on using Contexts.
3876func (c *Pinpoint) PutEventStreamWithContext(ctx aws.Context, input *PutEventStreamInput, opts ...request.Option) (*PutEventStreamOutput, error) {
3877	req, out := c.PutEventStreamRequest(input)
3878	req.SetContext(ctx)
3879	req.ApplyOptions(opts...)
3880	return out, req.Send()
3881}
3882
3883const opSendMessages = "SendMessages"
3884
3885// SendMessagesRequest generates a "aws/request.Request" representing the
3886// client's request for the SendMessages operation. The "output" return
3887// value will be populated with the request's response once the request complets
3888// successfuly.
3889//
3890// Use "Send" method on the returned Request to send the API call to the service.
3891// the "output" return value is not valid until after Send returns without error.
3892//
3893// See SendMessages for more information on using the SendMessages
3894// API call, and error handling.
3895//
3896// This method is useful when you want to inject custom logic or configuration
3897// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3898//
3899//
3900//    // Example sending a request using the SendMessagesRequest method.
3901//    req, resp := client.SendMessagesRequest(params)
3902//
3903//    err := req.Send()
3904//    if err == nil { // resp is now filled
3905//        fmt.Println(resp)
3906//    }
3907//
3908// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendMessages
3909func (c *Pinpoint) SendMessagesRequest(input *SendMessagesInput) (req *request.Request, output *SendMessagesOutput) {
3910	op := &request.Operation{
3911		Name:       opSendMessages,
3912		HTTPMethod: "POST",
3913		HTTPPath:   "/v1/apps/{application-id}/messages",
3914	}
3915
3916	if input == nil {
3917		input = &SendMessagesInput{}
3918	}
3919
3920	output = &SendMessagesOutput{}
3921	req = c.newRequest(op, input, output)
3922	return
3923}
3924
3925// SendMessages API operation for Amazon Pinpoint.
3926//
3927// Send a batch of messages
3928//
3929// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
3930// with awserr.Error's Code and Message methods to get detailed information about
3931// the error.
3932//
3933// See the AWS API reference guide for Amazon Pinpoint's
3934// API operation SendMessages for usage and error information.
3935//
3936// Returned Error Codes:
3937//   * ErrCodeBadRequestException "BadRequestException"
3938//
3939//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
3940//
3941//   * ErrCodeForbiddenException "ForbiddenException"
3942//
3943//   * ErrCodeNotFoundException "NotFoundException"
3944//
3945//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
3946//
3947//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
3948//
3949// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendMessages
3950func (c *Pinpoint) SendMessages(input *SendMessagesInput) (*SendMessagesOutput, error) {
3951	req, out := c.SendMessagesRequest(input)
3952	return out, req.Send()
3953}
3954
3955// SendMessagesWithContext is the same as SendMessages with the addition of
3956// the ability to pass a context and additional request options.
3957//
3958// See SendMessages for details on how to use this API operation.
3959//
3960// The context must be non-nil and will be used for request cancellation. If
3961// the context is nil a panic will occur. In the future the SDK may create
3962// sub-contexts for http.Requests. See https://golang.org/pkg/context/
3963// for more information on using Contexts.
3964func (c *Pinpoint) SendMessagesWithContext(ctx aws.Context, input *SendMessagesInput, opts ...request.Option) (*SendMessagesOutput, error) {
3965	req, out := c.SendMessagesRequest(input)
3966	req.SetContext(ctx)
3967	req.ApplyOptions(opts...)
3968	return out, req.Send()
3969}
3970
3971const opSendUsersMessages = "SendUsersMessages"
3972
3973// SendUsersMessagesRequest generates a "aws/request.Request" representing the
3974// client's request for the SendUsersMessages operation. The "output" return
3975// value will be populated with the request's response once the request complets
3976// successfuly.
3977//
3978// Use "Send" method on the returned Request to send the API call to the service.
3979// the "output" return value is not valid until after Send returns without error.
3980//
3981// See SendUsersMessages for more information on using the SendUsersMessages
3982// API call, and error handling.
3983//
3984// This method is useful when you want to inject custom logic or configuration
3985// into the SDK's request lifecycle. Such as custom headers, or retry logic.
3986//
3987//
3988//    // Example sending a request using the SendUsersMessagesRequest method.
3989//    req, resp := client.SendUsersMessagesRequest(params)
3990//
3991//    err := req.Send()
3992//    if err == nil { // resp is now filled
3993//        fmt.Println(resp)
3994//    }
3995//
3996// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessages
3997func (c *Pinpoint) SendUsersMessagesRequest(input *SendUsersMessagesInput) (req *request.Request, output *SendUsersMessagesOutput) {
3998	op := &request.Operation{
3999		Name:       opSendUsersMessages,
4000		HTTPMethod: "POST",
4001		HTTPPath:   "/v1/apps/{application-id}/users-messages",
4002	}
4003
4004	if input == nil {
4005		input = &SendUsersMessagesInput{}
4006	}
4007
4008	output = &SendUsersMessagesOutput{}
4009	req = c.newRequest(op, input, output)
4010	return
4011}
4012
4013// SendUsersMessages API operation for Amazon Pinpoint.
4014//
4015// Send a batch of messages to users
4016//
4017// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4018// with awserr.Error's Code and Message methods to get detailed information about
4019// the error.
4020//
4021// See the AWS API reference guide for Amazon Pinpoint's
4022// API operation SendUsersMessages for usage and error information.
4023//
4024// Returned Error Codes:
4025//   * ErrCodeBadRequestException "BadRequestException"
4026//
4027//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4028//
4029//   * ErrCodeForbiddenException "ForbiddenException"
4030//
4031//   * ErrCodeNotFoundException "NotFoundException"
4032//
4033//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4034//
4035//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4036//
4037// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessages
4038func (c *Pinpoint) SendUsersMessages(input *SendUsersMessagesInput) (*SendUsersMessagesOutput, error) {
4039	req, out := c.SendUsersMessagesRequest(input)
4040	return out, req.Send()
4041}
4042
4043// SendUsersMessagesWithContext is the same as SendUsersMessages with the addition of
4044// the ability to pass a context and additional request options.
4045//
4046// See SendUsersMessages for details on how to use this API operation.
4047//
4048// The context must be non-nil and will be used for request cancellation. If
4049// the context is nil a panic will occur. In the future the SDK may create
4050// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4051// for more information on using Contexts.
4052func (c *Pinpoint) SendUsersMessagesWithContext(ctx aws.Context, input *SendUsersMessagesInput, opts ...request.Option) (*SendUsersMessagesOutput, error) {
4053	req, out := c.SendUsersMessagesRequest(input)
4054	req.SetContext(ctx)
4055	req.ApplyOptions(opts...)
4056	return out, req.Send()
4057}
4058
4059const opUpdateAdmChannel = "UpdateAdmChannel"
4060
4061// UpdateAdmChannelRequest generates a "aws/request.Request" representing the
4062// client's request for the UpdateAdmChannel operation. The "output" return
4063// value will be populated with the request's response once the request complets
4064// successfuly.
4065//
4066// Use "Send" method on the returned Request to send the API call to the service.
4067// the "output" return value is not valid until after Send returns without error.
4068//
4069// See UpdateAdmChannel for more information on using the UpdateAdmChannel
4070// API call, and error handling.
4071//
4072// This method is useful when you want to inject custom logic or configuration
4073// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4074//
4075//
4076//    // Example sending a request using the UpdateAdmChannelRequest method.
4077//    req, resp := client.UpdateAdmChannelRequest(params)
4078//
4079//    err := req.Send()
4080//    if err == nil { // resp is now filled
4081//        fmt.Println(resp)
4082//    }
4083//
4084// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateAdmChannel
4085func (c *Pinpoint) UpdateAdmChannelRequest(input *UpdateAdmChannelInput) (req *request.Request, output *UpdateAdmChannelOutput) {
4086	op := &request.Operation{
4087		Name:       opUpdateAdmChannel,
4088		HTTPMethod: "PUT",
4089		HTTPPath:   "/v1/apps/{application-id}/channels/adm",
4090	}
4091
4092	if input == nil {
4093		input = &UpdateAdmChannelInput{}
4094	}
4095
4096	output = &UpdateAdmChannelOutput{}
4097	req = c.newRequest(op, input, output)
4098	return
4099}
4100
4101// UpdateAdmChannel API operation for Amazon Pinpoint.
4102//
4103// Update an ADM channel
4104//
4105// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4106// with awserr.Error's Code and Message methods to get detailed information about
4107// the error.
4108//
4109// See the AWS API reference guide for Amazon Pinpoint's
4110// API operation UpdateAdmChannel for usage and error information.
4111//
4112// Returned Error Codes:
4113//   * ErrCodeBadRequestException "BadRequestException"
4114//
4115//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4116//
4117//   * ErrCodeForbiddenException "ForbiddenException"
4118//
4119//   * ErrCodeNotFoundException "NotFoundException"
4120//
4121//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4122//
4123//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4124//
4125// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateAdmChannel
4126func (c *Pinpoint) UpdateAdmChannel(input *UpdateAdmChannelInput) (*UpdateAdmChannelOutput, error) {
4127	req, out := c.UpdateAdmChannelRequest(input)
4128	return out, req.Send()
4129}
4130
4131// UpdateAdmChannelWithContext is the same as UpdateAdmChannel with the addition of
4132// the ability to pass a context and additional request options.
4133//
4134// See UpdateAdmChannel for details on how to use this API operation.
4135//
4136// The context must be non-nil and will be used for request cancellation. If
4137// the context is nil a panic will occur. In the future the SDK may create
4138// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4139// for more information on using Contexts.
4140func (c *Pinpoint) UpdateAdmChannelWithContext(ctx aws.Context, input *UpdateAdmChannelInput, opts ...request.Option) (*UpdateAdmChannelOutput, error) {
4141	req, out := c.UpdateAdmChannelRequest(input)
4142	req.SetContext(ctx)
4143	req.ApplyOptions(opts...)
4144	return out, req.Send()
4145}
4146
4147const opUpdateApnsChannel = "UpdateApnsChannel"
4148
4149// UpdateApnsChannelRequest generates a "aws/request.Request" representing the
4150// client's request for the UpdateApnsChannel operation. The "output" return
4151// value will be populated with the request's response once the request complets
4152// successfuly.
4153//
4154// Use "Send" method on the returned Request to send the API call to the service.
4155// the "output" return value is not valid until after Send returns without error.
4156//
4157// See UpdateApnsChannel for more information on using the UpdateApnsChannel
4158// API call, and error handling.
4159//
4160// This method is useful when you want to inject custom logic or configuration
4161// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4162//
4163//
4164//    // Example sending a request using the UpdateApnsChannelRequest method.
4165//    req, resp := client.UpdateApnsChannelRequest(params)
4166//
4167//    err := req.Send()
4168//    if err == nil { // resp is now filled
4169//        fmt.Println(resp)
4170//    }
4171//
4172// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsChannel
4173func (c *Pinpoint) UpdateApnsChannelRequest(input *UpdateApnsChannelInput) (req *request.Request, output *UpdateApnsChannelOutput) {
4174	op := &request.Operation{
4175		Name:       opUpdateApnsChannel,
4176		HTTPMethod: "PUT",
4177		HTTPPath:   "/v1/apps/{application-id}/channels/apns",
4178	}
4179
4180	if input == nil {
4181		input = &UpdateApnsChannelInput{}
4182	}
4183
4184	output = &UpdateApnsChannelOutput{}
4185	req = c.newRequest(op, input, output)
4186	return
4187}
4188
4189// UpdateApnsChannel API operation for Amazon Pinpoint.
4190//
4191// Use to update the APNs channel for an app.
4192//
4193// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4194// with awserr.Error's Code and Message methods to get detailed information about
4195// the error.
4196//
4197// See the AWS API reference guide for Amazon Pinpoint's
4198// API operation UpdateApnsChannel for usage and error information.
4199//
4200// Returned Error Codes:
4201//   * ErrCodeBadRequestException "BadRequestException"
4202//
4203//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4204//
4205//   * ErrCodeForbiddenException "ForbiddenException"
4206//
4207//   * ErrCodeNotFoundException "NotFoundException"
4208//
4209//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4210//
4211//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4212//
4213// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsChannel
4214func (c *Pinpoint) UpdateApnsChannel(input *UpdateApnsChannelInput) (*UpdateApnsChannelOutput, error) {
4215	req, out := c.UpdateApnsChannelRequest(input)
4216	return out, req.Send()
4217}
4218
4219// UpdateApnsChannelWithContext is the same as UpdateApnsChannel with the addition of
4220// the ability to pass a context and additional request options.
4221//
4222// See UpdateApnsChannel for details on how to use this API operation.
4223//
4224// The context must be non-nil and will be used for request cancellation. If
4225// the context is nil a panic will occur. In the future the SDK may create
4226// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4227// for more information on using Contexts.
4228func (c *Pinpoint) UpdateApnsChannelWithContext(ctx aws.Context, input *UpdateApnsChannelInput, opts ...request.Option) (*UpdateApnsChannelOutput, error) {
4229	req, out := c.UpdateApnsChannelRequest(input)
4230	req.SetContext(ctx)
4231	req.ApplyOptions(opts...)
4232	return out, req.Send()
4233}
4234
4235const opUpdateApnsSandboxChannel = "UpdateApnsSandboxChannel"
4236
4237// UpdateApnsSandboxChannelRequest generates a "aws/request.Request" representing the
4238// client's request for the UpdateApnsSandboxChannel operation. The "output" return
4239// value will be populated with the request's response once the request complets
4240// successfuly.
4241//
4242// Use "Send" method on the returned Request to send the API call to the service.
4243// the "output" return value is not valid until after Send returns without error.
4244//
4245// See UpdateApnsSandboxChannel for more information on using the UpdateApnsSandboxChannel
4246// API call, and error handling.
4247//
4248// This method is useful when you want to inject custom logic or configuration
4249// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4250//
4251//
4252//    // Example sending a request using the UpdateApnsSandboxChannelRequest method.
4253//    req, resp := client.UpdateApnsSandboxChannelRequest(params)
4254//
4255//    err := req.Send()
4256//    if err == nil { // resp is now filled
4257//        fmt.Println(resp)
4258//    }
4259//
4260// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsSandboxChannel
4261func (c *Pinpoint) UpdateApnsSandboxChannelRequest(input *UpdateApnsSandboxChannelInput) (req *request.Request, output *UpdateApnsSandboxChannelOutput) {
4262	op := &request.Operation{
4263		Name:       opUpdateApnsSandboxChannel,
4264		HTTPMethod: "PUT",
4265		HTTPPath:   "/v1/apps/{application-id}/channels/apns_sandbox",
4266	}
4267
4268	if input == nil {
4269		input = &UpdateApnsSandboxChannelInput{}
4270	}
4271
4272	output = &UpdateApnsSandboxChannelOutput{}
4273	req = c.newRequest(op, input, output)
4274	return
4275}
4276
4277// UpdateApnsSandboxChannel API operation for Amazon Pinpoint.
4278//
4279// Update an APNS sandbox channel
4280//
4281// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4282// with awserr.Error's Code and Message methods to get detailed information about
4283// the error.
4284//
4285// See the AWS API reference guide for Amazon Pinpoint's
4286// API operation UpdateApnsSandboxChannel for usage and error information.
4287//
4288// Returned Error Codes:
4289//   * ErrCodeBadRequestException "BadRequestException"
4290//
4291//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4292//
4293//   * ErrCodeForbiddenException "ForbiddenException"
4294//
4295//   * ErrCodeNotFoundException "NotFoundException"
4296//
4297//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4298//
4299//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4300//
4301// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsSandboxChannel
4302func (c *Pinpoint) UpdateApnsSandboxChannel(input *UpdateApnsSandboxChannelInput) (*UpdateApnsSandboxChannelOutput, error) {
4303	req, out := c.UpdateApnsSandboxChannelRequest(input)
4304	return out, req.Send()
4305}
4306
4307// UpdateApnsSandboxChannelWithContext is the same as UpdateApnsSandboxChannel with the addition of
4308// the ability to pass a context and additional request options.
4309//
4310// See UpdateApnsSandboxChannel for details on how to use this API operation.
4311//
4312// The context must be non-nil and will be used for request cancellation. If
4313// the context is nil a panic will occur. In the future the SDK may create
4314// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4315// for more information on using Contexts.
4316func (c *Pinpoint) UpdateApnsSandboxChannelWithContext(ctx aws.Context, input *UpdateApnsSandboxChannelInput, opts ...request.Option) (*UpdateApnsSandboxChannelOutput, error) {
4317	req, out := c.UpdateApnsSandboxChannelRequest(input)
4318	req.SetContext(ctx)
4319	req.ApplyOptions(opts...)
4320	return out, req.Send()
4321}
4322
4323const opUpdateApnsVoipChannel = "UpdateApnsVoipChannel"
4324
4325// UpdateApnsVoipChannelRequest generates a "aws/request.Request" representing the
4326// client's request for the UpdateApnsVoipChannel operation. The "output" return
4327// value will be populated with the request's response once the request complets
4328// successfuly.
4329//
4330// Use "Send" method on the returned Request to send the API call to the service.
4331// the "output" return value is not valid until after Send returns without error.
4332//
4333// See UpdateApnsVoipChannel for more information on using the UpdateApnsVoipChannel
4334// API call, and error handling.
4335//
4336// This method is useful when you want to inject custom logic or configuration
4337// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4338//
4339//
4340//    // Example sending a request using the UpdateApnsVoipChannelRequest method.
4341//    req, resp := client.UpdateApnsVoipChannelRequest(params)
4342//
4343//    err := req.Send()
4344//    if err == nil { // resp is now filled
4345//        fmt.Println(resp)
4346//    }
4347//
4348// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipChannel
4349func (c *Pinpoint) UpdateApnsVoipChannelRequest(input *UpdateApnsVoipChannelInput) (req *request.Request, output *UpdateApnsVoipChannelOutput) {
4350	op := &request.Operation{
4351		Name:       opUpdateApnsVoipChannel,
4352		HTTPMethod: "PUT",
4353		HTTPPath:   "/v1/apps/{application-id}/channels/apns_voip",
4354	}
4355
4356	if input == nil {
4357		input = &UpdateApnsVoipChannelInput{}
4358	}
4359
4360	output = &UpdateApnsVoipChannelOutput{}
4361	req = c.newRequest(op, input, output)
4362	return
4363}
4364
4365// UpdateApnsVoipChannel API operation for Amazon Pinpoint.
4366//
4367// Update an APNS VOIP channel
4368//
4369// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4370// with awserr.Error's Code and Message methods to get detailed information about
4371// the error.
4372//
4373// See the AWS API reference guide for Amazon Pinpoint's
4374// API operation UpdateApnsVoipChannel for usage and error information.
4375//
4376// Returned Error Codes:
4377//   * ErrCodeBadRequestException "BadRequestException"
4378//
4379//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4380//
4381//   * ErrCodeForbiddenException "ForbiddenException"
4382//
4383//   * ErrCodeNotFoundException "NotFoundException"
4384//
4385//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4386//
4387//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4388//
4389// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipChannel
4390func (c *Pinpoint) UpdateApnsVoipChannel(input *UpdateApnsVoipChannelInput) (*UpdateApnsVoipChannelOutput, error) {
4391	req, out := c.UpdateApnsVoipChannelRequest(input)
4392	return out, req.Send()
4393}
4394
4395// UpdateApnsVoipChannelWithContext is the same as UpdateApnsVoipChannel with the addition of
4396// the ability to pass a context and additional request options.
4397//
4398// See UpdateApnsVoipChannel for details on how to use this API operation.
4399//
4400// The context must be non-nil and will be used for request cancellation. If
4401// the context is nil a panic will occur. In the future the SDK may create
4402// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4403// for more information on using Contexts.
4404func (c *Pinpoint) UpdateApnsVoipChannelWithContext(ctx aws.Context, input *UpdateApnsVoipChannelInput, opts ...request.Option) (*UpdateApnsVoipChannelOutput, error) {
4405	req, out := c.UpdateApnsVoipChannelRequest(input)
4406	req.SetContext(ctx)
4407	req.ApplyOptions(opts...)
4408	return out, req.Send()
4409}
4410
4411const opUpdateApnsVoipSandboxChannel = "UpdateApnsVoipSandboxChannel"
4412
4413// UpdateApnsVoipSandboxChannelRequest generates a "aws/request.Request" representing the
4414// client's request for the UpdateApnsVoipSandboxChannel operation. The "output" return
4415// value will be populated with the request's response once the request complets
4416// successfuly.
4417//
4418// Use "Send" method on the returned Request to send the API call to the service.
4419// the "output" return value is not valid until after Send returns without error.
4420//
4421// See UpdateApnsVoipSandboxChannel for more information on using the UpdateApnsVoipSandboxChannel
4422// API call, and error handling.
4423//
4424// This method is useful when you want to inject custom logic or configuration
4425// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4426//
4427//
4428//    // Example sending a request using the UpdateApnsVoipSandboxChannelRequest method.
4429//    req, resp := client.UpdateApnsVoipSandboxChannelRequest(params)
4430//
4431//    err := req.Send()
4432//    if err == nil { // resp is now filled
4433//        fmt.Println(resp)
4434//    }
4435//
4436// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipSandboxChannel
4437func (c *Pinpoint) UpdateApnsVoipSandboxChannelRequest(input *UpdateApnsVoipSandboxChannelInput) (req *request.Request, output *UpdateApnsVoipSandboxChannelOutput) {
4438	op := &request.Operation{
4439		Name:       opUpdateApnsVoipSandboxChannel,
4440		HTTPMethod: "PUT",
4441		HTTPPath:   "/v1/apps/{application-id}/channels/apns_voip_sandbox",
4442	}
4443
4444	if input == nil {
4445		input = &UpdateApnsVoipSandboxChannelInput{}
4446	}
4447
4448	output = &UpdateApnsVoipSandboxChannelOutput{}
4449	req = c.newRequest(op, input, output)
4450	return
4451}
4452
4453// UpdateApnsVoipSandboxChannel API operation for Amazon Pinpoint.
4454//
4455// Update an APNS VOIP sandbox channel
4456//
4457// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4458// with awserr.Error's Code and Message methods to get detailed information about
4459// the error.
4460//
4461// See the AWS API reference guide for Amazon Pinpoint's
4462// API operation UpdateApnsVoipSandboxChannel for usage and error information.
4463//
4464// Returned Error Codes:
4465//   * ErrCodeBadRequestException "BadRequestException"
4466//
4467//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4468//
4469//   * ErrCodeForbiddenException "ForbiddenException"
4470//
4471//   * ErrCodeNotFoundException "NotFoundException"
4472//
4473//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4474//
4475//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4476//
4477// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipSandboxChannel
4478func (c *Pinpoint) UpdateApnsVoipSandboxChannel(input *UpdateApnsVoipSandboxChannelInput) (*UpdateApnsVoipSandboxChannelOutput, error) {
4479	req, out := c.UpdateApnsVoipSandboxChannelRequest(input)
4480	return out, req.Send()
4481}
4482
4483// UpdateApnsVoipSandboxChannelWithContext is the same as UpdateApnsVoipSandboxChannel with the addition of
4484// the ability to pass a context and additional request options.
4485//
4486// See UpdateApnsVoipSandboxChannel for details on how to use this API operation.
4487//
4488// The context must be non-nil and will be used for request cancellation. If
4489// the context is nil a panic will occur. In the future the SDK may create
4490// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4491// for more information on using Contexts.
4492func (c *Pinpoint) UpdateApnsVoipSandboxChannelWithContext(ctx aws.Context, input *UpdateApnsVoipSandboxChannelInput, opts ...request.Option) (*UpdateApnsVoipSandboxChannelOutput, error) {
4493	req, out := c.UpdateApnsVoipSandboxChannelRequest(input)
4494	req.SetContext(ctx)
4495	req.ApplyOptions(opts...)
4496	return out, req.Send()
4497}
4498
4499const opUpdateApplicationSettings = "UpdateApplicationSettings"
4500
4501// UpdateApplicationSettingsRequest generates a "aws/request.Request" representing the
4502// client's request for the UpdateApplicationSettings operation. The "output" return
4503// value will be populated with the request's response once the request complets
4504// successfuly.
4505//
4506// Use "Send" method on the returned Request to send the API call to the service.
4507// the "output" return value is not valid until after Send returns without error.
4508//
4509// See UpdateApplicationSettings for more information on using the UpdateApplicationSettings
4510// API call, and error handling.
4511//
4512// This method is useful when you want to inject custom logic or configuration
4513// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4514//
4515//
4516//    // Example sending a request using the UpdateApplicationSettingsRequest method.
4517//    req, resp := client.UpdateApplicationSettingsRequest(params)
4518//
4519//    err := req.Send()
4520//    if err == nil { // resp is now filled
4521//        fmt.Println(resp)
4522//    }
4523//
4524// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApplicationSettings
4525func (c *Pinpoint) UpdateApplicationSettingsRequest(input *UpdateApplicationSettingsInput) (req *request.Request, output *UpdateApplicationSettingsOutput) {
4526	op := &request.Operation{
4527		Name:       opUpdateApplicationSettings,
4528		HTTPMethod: "PUT",
4529		HTTPPath:   "/v1/apps/{application-id}/settings",
4530	}
4531
4532	if input == nil {
4533		input = &UpdateApplicationSettingsInput{}
4534	}
4535
4536	output = &UpdateApplicationSettingsOutput{}
4537	req = c.newRequest(op, input, output)
4538	return
4539}
4540
4541// UpdateApplicationSettings API operation for Amazon Pinpoint.
4542//
4543// Used to update the settings for an app.
4544//
4545// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4546// with awserr.Error's Code and Message methods to get detailed information about
4547// the error.
4548//
4549// See the AWS API reference guide for Amazon Pinpoint's
4550// API operation UpdateApplicationSettings for usage and error information.
4551//
4552// Returned Error Codes:
4553//   * ErrCodeBadRequestException "BadRequestException"
4554//
4555//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4556//
4557//   * ErrCodeForbiddenException "ForbiddenException"
4558//
4559//   * ErrCodeNotFoundException "NotFoundException"
4560//
4561//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4562//
4563//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4564//
4565// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApplicationSettings
4566func (c *Pinpoint) UpdateApplicationSettings(input *UpdateApplicationSettingsInput) (*UpdateApplicationSettingsOutput, error) {
4567	req, out := c.UpdateApplicationSettingsRequest(input)
4568	return out, req.Send()
4569}
4570
4571// UpdateApplicationSettingsWithContext is the same as UpdateApplicationSettings with the addition of
4572// the ability to pass a context and additional request options.
4573//
4574// See UpdateApplicationSettings for details on how to use this API operation.
4575//
4576// The context must be non-nil and will be used for request cancellation. If
4577// the context is nil a panic will occur. In the future the SDK may create
4578// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4579// for more information on using Contexts.
4580func (c *Pinpoint) UpdateApplicationSettingsWithContext(ctx aws.Context, input *UpdateApplicationSettingsInput, opts ...request.Option) (*UpdateApplicationSettingsOutput, error) {
4581	req, out := c.UpdateApplicationSettingsRequest(input)
4582	req.SetContext(ctx)
4583	req.ApplyOptions(opts...)
4584	return out, req.Send()
4585}
4586
4587const opUpdateBaiduChannel = "UpdateBaiduChannel"
4588
4589// UpdateBaiduChannelRequest generates a "aws/request.Request" representing the
4590// client's request for the UpdateBaiduChannel operation. The "output" return
4591// value will be populated with the request's response once the request complets
4592// successfuly.
4593//
4594// Use "Send" method on the returned Request to send the API call to the service.
4595// the "output" return value is not valid until after Send returns without error.
4596//
4597// See UpdateBaiduChannel for more information on using the UpdateBaiduChannel
4598// API call, and error handling.
4599//
4600// This method is useful when you want to inject custom logic or configuration
4601// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4602//
4603//
4604//    // Example sending a request using the UpdateBaiduChannelRequest method.
4605//    req, resp := client.UpdateBaiduChannelRequest(params)
4606//
4607//    err := req.Send()
4608//    if err == nil { // resp is now filled
4609//        fmt.Println(resp)
4610//    }
4611//
4612// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateBaiduChannel
4613func (c *Pinpoint) UpdateBaiduChannelRequest(input *UpdateBaiduChannelInput) (req *request.Request, output *UpdateBaiduChannelOutput) {
4614	op := &request.Operation{
4615		Name:       opUpdateBaiduChannel,
4616		HTTPMethod: "PUT",
4617		HTTPPath:   "/v1/apps/{application-id}/channels/baidu",
4618	}
4619
4620	if input == nil {
4621		input = &UpdateBaiduChannelInput{}
4622	}
4623
4624	output = &UpdateBaiduChannelOutput{}
4625	req = c.newRequest(op, input, output)
4626	return
4627}
4628
4629// UpdateBaiduChannel API operation for Amazon Pinpoint.
4630//
4631// Update a BAIDU GCM channel
4632//
4633// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4634// with awserr.Error's Code and Message methods to get detailed information about
4635// the error.
4636//
4637// See the AWS API reference guide for Amazon Pinpoint's
4638// API operation UpdateBaiduChannel for usage and error information.
4639//
4640// Returned Error Codes:
4641//   * ErrCodeBadRequestException "BadRequestException"
4642//
4643//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4644//
4645//   * ErrCodeForbiddenException "ForbiddenException"
4646//
4647//   * ErrCodeNotFoundException "NotFoundException"
4648//
4649//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4650//
4651//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4652//
4653// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateBaiduChannel
4654func (c *Pinpoint) UpdateBaiduChannel(input *UpdateBaiduChannelInput) (*UpdateBaiduChannelOutput, error) {
4655	req, out := c.UpdateBaiduChannelRequest(input)
4656	return out, req.Send()
4657}
4658
4659// UpdateBaiduChannelWithContext is the same as UpdateBaiduChannel with the addition of
4660// the ability to pass a context and additional request options.
4661//
4662// See UpdateBaiduChannel for details on how to use this API operation.
4663//
4664// The context must be non-nil and will be used for request cancellation. If
4665// the context is nil a panic will occur. In the future the SDK may create
4666// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4667// for more information on using Contexts.
4668func (c *Pinpoint) UpdateBaiduChannelWithContext(ctx aws.Context, input *UpdateBaiduChannelInput, opts ...request.Option) (*UpdateBaiduChannelOutput, error) {
4669	req, out := c.UpdateBaiduChannelRequest(input)
4670	req.SetContext(ctx)
4671	req.ApplyOptions(opts...)
4672	return out, req.Send()
4673}
4674
4675const opUpdateCampaign = "UpdateCampaign"
4676
4677// UpdateCampaignRequest generates a "aws/request.Request" representing the
4678// client's request for the UpdateCampaign operation. The "output" return
4679// value will be populated with the request's response once the request complets
4680// successfuly.
4681//
4682// Use "Send" method on the returned Request to send the API call to the service.
4683// the "output" return value is not valid until after Send returns without error.
4684//
4685// See UpdateCampaign for more information on using the UpdateCampaign
4686// API call, and error handling.
4687//
4688// This method is useful when you want to inject custom logic or configuration
4689// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4690//
4691//
4692//    // Example sending a request using the UpdateCampaignRequest method.
4693//    req, resp := client.UpdateCampaignRequest(params)
4694//
4695//    err := req.Send()
4696//    if err == nil { // resp is now filled
4697//        fmt.Println(resp)
4698//    }
4699//
4700// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateCampaign
4701func (c *Pinpoint) UpdateCampaignRequest(input *UpdateCampaignInput) (req *request.Request, output *UpdateCampaignOutput) {
4702	op := &request.Operation{
4703		Name:       opUpdateCampaign,
4704		HTTPMethod: "PUT",
4705		HTTPPath:   "/v1/apps/{application-id}/campaigns/{campaign-id}",
4706	}
4707
4708	if input == nil {
4709		input = &UpdateCampaignInput{}
4710	}
4711
4712	output = &UpdateCampaignOutput{}
4713	req = c.newRequest(op, input, output)
4714	return
4715}
4716
4717// UpdateCampaign API operation for Amazon Pinpoint.
4718//
4719// Use to update a campaign.
4720//
4721// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4722// with awserr.Error's Code and Message methods to get detailed information about
4723// the error.
4724//
4725// See the AWS API reference guide for Amazon Pinpoint's
4726// API operation UpdateCampaign for usage and error information.
4727//
4728// Returned Error Codes:
4729//   * ErrCodeBadRequestException "BadRequestException"
4730//
4731//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4732//
4733//   * ErrCodeForbiddenException "ForbiddenException"
4734//
4735//   * ErrCodeNotFoundException "NotFoundException"
4736//
4737//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4738//
4739//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4740//
4741// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateCampaign
4742func (c *Pinpoint) UpdateCampaign(input *UpdateCampaignInput) (*UpdateCampaignOutput, error) {
4743	req, out := c.UpdateCampaignRequest(input)
4744	return out, req.Send()
4745}
4746
4747// UpdateCampaignWithContext is the same as UpdateCampaign with the addition of
4748// the ability to pass a context and additional request options.
4749//
4750// See UpdateCampaign for details on how to use this API operation.
4751//
4752// The context must be non-nil and will be used for request cancellation. If
4753// the context is nil a panic will occur. In the future the SDK may create
4754// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4755// for more information on using Contexts.
4756func (c *Pinpoint) UpdateCampaignWithContext(ctx aws.Context, input *UpdateCampaignInput, opts ...request.Option) (*UpdateCampaignOutput, error) {
4757	req, out := c.UpdateCampaignRequest(input)
4758	req.SetContext(ctx)
4759	req.ApplyOptions(opts...)
4760	return out, req.Send()
4761}
4762
4763const opUpdateEmailChannel = "UpdateEmailChannel"
4764
4765// UpdateEmailChannelRequest generates a "aws/request.Request" representing the
4766// client's request for the UpdateEmailChannel operation. The "output" return
4767// value will be populated with the request's response once the request complets
4768// successfuly.
4769//
4770// Use "Send" method on the returned Request to send the API call to the service.
4771// the "output" return value is not valid until after Send returns without error.
4772//
4773// See UpdateEmailChannel for more information on using the UpdateEmailChannel
4774// API call, and error handling.
4775//
4776// This method is useful when you want to inject custom logic or configuration
4777// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4778//
4779//
4780//    // Example sending a request using the UpdateEmailChannelRequest method.
4781//    req, resp := client.UpdateEmailChannelRequest(params)
4782//
4783//    err := req.Send()
4784//    if err == nil { // resp is now filled
4785//        fmt.Println(resp)
4786//    }
4787//
4788// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEmailChannel
4789func (c *Pinpoint) UpdateEmailChannelRequest(input *UpdateEmailChannelInput) (req *request.Request, output *UpdateEmailChannelOutput) {
4790	op := &request.Operation{
4791		Name:       opUpdateEmailChannel,
4792		HTTPMethod: "PUT",
4793		HTTPPath:   "/v1/apps/{application-id}/channels/email",
4794	}
4795
4796	if input == nil {
4797		input = &UpdateEmailChannelInput{}
4798	}
4799
4800	output = &UpdateEmailChannelOutput{}
4801	req = c.newRequest(op, input, output)
4802	return
4803}
4804
4805// UpdateEmailChannel API operation for Amazon Pinpoint.
4806//
4807// Update an email channel
4808//
4809// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4810// with awserr.Error's Code and Message methods to get detailed information about
4811// the error.
4812//
4813// See the AWS API reference guide for Amazon Pinpoint's
4814// API operation UpdateEmailChannel for usage and error information.
4815//
4816// Returned Error Codes:
4817//   * ErrCodeBadRequestException "BadRequestException"
4818//
4819//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4820//
4821//   * ErrCodeForbiddenException "ForbiddenException"
4822//
4823//   * ErrCodeNotFoundException "NotFoundException"
4824//
4825//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4826//
4827//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4828//
4829// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEmailChannel
4830func (c *Pinpoint) UpdateEmailChannel(input *UpdateEmailChannelInput) (*UpdateEmailChannelOutput, error) {
4831	req, out := c.UpdateEmailChannelRequest(input)
4832	return out, req.Send()
4833}
4834
4835// UpdateEmailChannelWithContext is the same as UpdateEmailChannel with the addition of
4836// the ability to pass a context and additional request options.
4837//
4838// See UpdateEmailChannel for details on how to use this API operation.
4839//
4840// The context must be non-nil and will be used for request cancellation. If
4841// the context is nil a panic will occur. In the future the SDK may create
4842// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4843// for more information on using Contexts.
4844func (c *Pinpoint) UpdateEmailChannelWithContext(ctx aws.Context, input *UpdateEmailChannelInput, opts ...request.Option) (*UpdateEmailChannelOutput, error) {
4845	req, out := c.UpdateEmailChannelRequest(input)
4846	req.SetContext(ctx)
4847	req.ApplyOptions(opts...)
4848	return out, req.Send()
4849}
4850
4851const opUpdateEndpoint = "UpdateEndpoint"
4852
4853// UpdateEndpointRequest generates a "aws/request.Request" representing the
4854// client's request for the UpdateEndpoint operation. The "output" return
4855// value will be populated with the request's response once the request complets
4856// successfuly.
4857//
4858// Use "Send" method on the returned Request to send the API call to the service.
4859// the "output" return value is not valid until after Send returns without error.
4860//
4861// See UpdateEndpoint for more information on using the UpdateEndpoint
4862// API call, and error handling.
4863//
4864// This method is useful when you want to inject custom logic or configuration
4865// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4866//
4867//
4868//    // Example sending a request using the UpdateEndpointRequest method.
4869//    req, resp := client.UpdateEndpointRequest(params)
4870//
4871//    err := req.Send()
4872//    if err == nil { // resp is now filled
4873//        fmt.Println(resp)
4874//    }
4875//
4876// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpoint
4877func (c *Pinpoint) UpdateEndpointRequest(input *UpdateEndpointInput) (req *request.Request, output *UpdateEndpointOutput) {
4878	op := &request.Operation{
4879		Name:       opUpdateEndpoint,
4880		HTTPMethod: "PUT",
4881		HTTPPath:   "/v1/apps/{application-id}/endpoints/{endpoint-id}",
4882	}
4883
4884	if input == nil {
4885		input = &UpdateEndpointInput{}
4886	}
4887
4888	output = &UpdateEndpointOutput{}
4889	req = c.newRequest(op, input, output)
4890	return
4891}
4892
4893// UpdateEndpoint API operation for Amazon Pinpoint.
4894//
4895// Use to update an endpoint.
4896//
4897// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4898// with awserr.Error's Code and Message methods to get detailed information about
4899// the error.
4900//
4901// See the AWS API reference guide for Amazon Pinpoint's
4902// API operation UpdateEndpoint for usage and error information.
4903//
4904// Returned Error Codes:
4905//   * ErrCodeBadRequestException "BadRequestException"
4906//
4907//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4908//
4909//   * ErrCodeForbiddenException "ForbiddenException"
4910//
4911//   * ErrCodeNotFoundException "NotFoundException"
4912//
4913//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
4914//
4915//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
4916//
4917// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpoint
4918func (c *Pinpoint) UpdateEndpoint(input *UpdateEndpointInput) (*UpdateEndpointOutput, error) {
4919	req, out := c.UpdateEndpointRequest(input)
4920	return out, req.Send()
4921}
4922
4923// UpdateEndpointWithContext is the same as UpdateEndpoint with the addition of
4924// the ability to pass a context and additional request options.
4925//
4926// See UpdateEndpoint for details on how to use this API operation.
4927//
4928// The context must be non-nil and will be used for request cancellation. If
4929// the context is nil a panic will occur. In the future the SDK may create
4930// sub-contexts for http.Requests. See https://golang.org/pkg/context/
4931// for more information on using Contexts.
4932func (c *Pinpoint) UpdateEndpointWithContext(ctx aws.Context, input *UpdateEndpointInput, opts ...request.Option) (*UpdateEndpointOutput, error) {
4933	req, out := c.UpdateEndpointRequest(input)
4934	req.SetContext(ctx)
4935	req.ApplyOptions(opts...)
4936	return out, req.Send()
4937}
4938
4939const opUpdateEndpointsBatch = "UpdateEndpointsBatch"
4940
4941// UpdateEndpointsBatchRequest generates a "aws/request.Request" representing the
4942// client's request for the UpdateEndpointsBatch operation. The "output" return
4943// value will be populated with the request's response once the request complets
4944// successfuly.
4945//
4946// Use "Send" method on the returned Request to send the API call to the service.
4947// the "output" return value is not valid until after Send returns without error.
4948//
4949// See UpdateEndpointsBatch for more information on using the UpdateEndpointsBatch
4950// API call, and error handling.
4951//
4952// This method is useful when you want to inject custom logic or configuration
4953// into the SDK's request lifecycle. Such as custom headers, or retry logic.
4954//
4955//
4956//    // Example sending a request using the UpdateEndpointsBatchRequest method.
4957//    req, resp := client.UpdateEndpointsBatchRequest(params)
4958//
4959//    err := req.Send()
4960//    if err == nil { // resp is now filled
4961//        fmt.Println(resp)
4962//    }
4963//
4964// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpointsBatch
4965func (c *Pinpoint) UpdateEndpointsBatchRequest(input *UpdateEndpointsBatchInput) (req *request.Request, output *UpdateEndpointsBatchOutput) {
4966	op := &request.Operation{
4967		Name:       opUpdateEndpointsBatch,
4968		HTTPMethod: "PUT",
4969		HTTPPath:   "/v1/apps/{application-id}/endpoints",
4970	}
4971
4972	if input == nil {
4973		input = &UpdateEndpointsBatchInput{}
4974	}
4975
4976	output = &UpdateEndpointsBatchOutput{}
4977	req = c.newRequest(op, input, output)
4978	return
4979}
4980
4981// UpdateEndpointsBatch API operation for Amazon Pinpoint.
4982//
4983// Use to update a batch of endpoints.
4984//
4985// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
4986// with awserr.Error's Code and Message methods to get detailed information about
4987// the error.
4988//
4989// See the AWS API reference guide for Amazon Pinpoint's
4990// API operation UpdateEndpointsBatch for usage and error information.
4991//
4992// Returned Error Codes:
4993//   * ErrCodeBadRequestException "BadRequestException"
4994//
4995//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
4996//
4997//   * ErrCodeForbiddenException "ForbiddenException"
4998//
4999//   * ErrCodeNotFoundException "NotFoundException"
5000//
5001//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
5002//
5003//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
5004//
5005// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpointsBatch
5006func (c *Pinpoint) UpdateEndpointsBatch(input *UpdateEndpointsBatchInput) (*UpdateEndpointsBatchOutput, error) {
5007	req, out := c.UpdateEndpointsBatchRequest(input)
5008	return out, req.Send()
5009}
5010
5011// UpdateEndpointsBatchWithContext is the same as UpdateEndpointsBatch with the addition of
5012// the ability to pass a context and additional request options.
5013//
5014// See UpdateEndpointsBatch for details on how to use this API operation.
5015//
5016// The context must be non-nil and will be used for request cancellation. If
5017// the context is nil a panic will occur. In the future the SDK may create
5018// sub-contexts for http.Requests. See https://golang.org/pkg/context/
5019// for more information on using Contexts.
5020func (c *Pinpoint) UpdateEndpointsBatchWithContext(ctx aws.Context, input *UpdateEndpointsBatchInput, opts ...request.Option) (*UpdateEndpointsBatchOutput, error) {
5021	req, out := c.UpdateEndpointsBatchRequest(input)
5022	req.SetContext(ctx)
5023	req.ApplyOptions(opts...)
5024	return out, req.Send()
5025}
5026
5027const opUpdateGcmChannel = "UpdateGcmChannel"
5028
5029// UpdateGcmChannelRequest generates a "aws/request.Request" representing the
5030// client's request for the UpdateGcmChannel operation. The "output" return
5031// value will be populated with the request's response once the request complets
5032// successfuly.
5033//
5034// Use "Send" method on the returned Request to send the API call to the service.
5035// the "output" return value is not valid until after Send returns without error.
5036//
5037// See UpdateGcmChannel for more information on using the UpdateGcmChannel
5038// API call, and error handling.
5039//
5040// This method is useful when you want to inject custom logic or configuration
5041// into the SDK's request lifecycle. Such as custom headers, or retry logic.
5042//
5043//
5044//    // Example sending a request using the UpdateGcmChannelRequest method.
5045//    req, resp := client.UpdateGcmChannelRequest(params)
5046//
5047//    err := req.Send()
5048//    if err == nil { // resp is now filled
5049//        fmt.Println(resp)
5050//    }
5051//
5052// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateGcmChannel
5053func (c *Pinpoint) UpdateGcmChannelRequest(input *UpdateGcmChannelInput) (req *request.Request, output *UpdateGcmChannelOutput) {
5054	op := &request.Operation{
5055		Name:       opUpdateGcmChannel,
5056		HTTPMethod: "PUT",
5057		HTTPPath:   "/v1/apps/{application-id}/channels/gcm",
5058	}
5059
5060	if input == nil {
5061		input = &UpdateGcmChannelInput{}
5062	}
5063
5064	output = &UpdateGcmChannelOutput{}
5065	req = c.newRequest(op, input, output)
5066	return
5067}
5068
5069// UpdateGcmChannel API operation for Amazon Pinpoint.
5070//
5071// Use to update the GCM channel for an app.
5072//
5073// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5074// with awserr.Error's Code and Message methods to get detailed information about
5075// the error.
5076//
5077// See the AWS API reference guide for Amazon Pinpoint's
5078// API operation UpdateGcmChannel for usage and error information.
5079//
5080// Returned Error Codes:
5081//   * ErrCodeBadRequestException "BadRequestException"
5082//
5083//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
5084//
5085//   * ErrCodeForbiddenException "ForbiddenException"
5086//
5087//   * ErrCodeNotFoundException "NotFoundException"
5088//
5089//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
5090//
5091//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
5092//
5093// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateGcmChannel
5094func (c *Pinpoint) UpdateGcmChannel(input *UpdateGcmChannelInput) (*UpdateGcmChannelOutput, error) {
5095	req, out := c.UpdateGcmChannelRequest(input)
5096	return out, req.Send()
5097}
5098
5099// UpdateGcmChannelWithContext is the same as UpdateGcmChannel with the addition of
5100// the ability to pass a context and additional request options.
5101//
5102// See UpdateGcmChannel for details on how to use this API operation.
5103//
5104// The context must be non-nil and will be used for request cancellation. If
5105// the context is nil a panic will occur. In the future the SDK may create
5106// sub-contexts for http.Requests. See https://golang.org/pkg/context/
5107// for more information on using Contexts.
5108func (c *Pinpoint) UpdateGcmChannelWithContext(ctx aws.Context, input *UpdateGcmChannelInput, opts ...request.Option) (*UpdateGcmChannelOutput, error) {
5109	req, out := c.UpdateGcmChannelRequest(input)
5110	req.SetContext(ctx)
5111	req.ApplyOptions(opts...)
5112	return out, req.Send()
5113}
5114
5115const opUpdateSegment = "UpdateSegment"
5116
5117// UpdateSegmentRequest generates a "aws/request.Request" representing the
5118// client's request for the UpdateSegment operation. The "output" return
5119// value will be populated with the request's response once the request complets
5120// successfuly.
5121//
5122// Use "Send" method on the returned Request to send the API call to the service.
5123// the "output" return value is not valid until after Send returns without error.
5124//
5125// See UpdateSegment for more information on using the UpdateSegment
5126// API call, and error handling.
5127//
5128// This method is useful when you want to inject custom logic or configuration
5129// into the SDK's request lifecycle. Such as custom headers, or retry logic.
5130//
5131//
5132//    // Example sending a request using the UpdateSegmentRequest method.
5133//    req, resp := client.UpdateSegmentRequest(params)
5134//
5135//    err := req.Send()
5136//    if err == nil { // resp is now filled
5137//        fmt.Println(resp)
5138//    }
5139//
5140// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSegment
5141func (c *Pinpoint) UpdateSegmentRequest(input *UpdateSegmentInput) (req *request.Request, output *UpdateSegmentOutput) {
5142	op := &request.Operation{
5143		Name:       opUpdateSegment,
5144		HTTPMethod: "PUT",
5145		HTTPPath:   "/v1/apps/{application-id}/segments/{segment-id}",
5146	}
5147
5148	if input == nil {
5149		input = &UpdateSegmentInput{}
5150	}
5151
5152	output = &UpdateSegmentOutput{}
5153	req = c.newRequest(op, input, output)
5154	return
5155}
5156
5157// UpdateSegment API operation for Amazon Pinpoint.
5158//
5159// Use to update a segment.
5160//
5161// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5162// with awserr.Error's Code and Message methods to get detailed information about
5163// the error.
5164//
5165// See the AWS API reference guide for Amazon Pinpoint's
5166// API operation UpdateSegment for usage and error information.
5167//
5168// Returned Error Codes:
5169//   * ErrCodeBadRequestException "BadRequestException"
5170//
5171//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
5172//
5173//   * ErrCodeForbiddenException "ForbiddenException"
5174//
5175//   * ErrCodeNotFoundException "NotFoundException"
5176//
5177//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
5178//
5179//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
5180//
5181// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSegment
5182func (c *Pinpoint) UpdateSegment(input *UpdateSegmentInput) (*UpdateSegmentOutput, error) {
5183	req, out := c.UpdateSegmentRequest(input)
5184	return out, req.Send()
5185}
5186
5187// UpdateSegmentWithContext is the same as UpdateSegment with the addition of
5188// the ability to pass a context and additional request options.
5189//
5190// See UpdateSegment for details on how to use this API operation.
5191//
5192// The context must be non-nil and will be used for request cancellation. If
5193// the context is nil a panic will occur. In the future the SDK may create
5194// sub-contexts for http.Requests. See https://golang.org/pkg/context/
5195// for more information on using Contexts.
5196func (c *Pinpoint) UpdateSegmentWithContext(ctx aws.Context, input *UpdateSegmentInput, opts ...request.Option) (*UpdateSegmentOutput, error) {
5197	req, out := c.UpdateSegmentRequest(input)
5198	req.SetContext(ctx)
5199	req.ApplyOptions(opts...)
5200	return out, req.Send()
5201}
5202
5203const opUpdateSmsChannel = "UpdateSmsChannel"
5204
5205// UpdateSmsChannelRequest generates a "aws/request.Request" representing the
5206// client's request for the UpdateSmsChannel operation. The "output" return
5207// value will be populated with the request's response once the request complets
5208// successfuly.
5209//
5210// Use "Send" method on the returned Request to send the API call to the service.
5211// the "output" return value is not valid until after Send returns without error.
5212//
5213// See UpdateSmsChannel for more information on using the UpdateSmsChannel
5214// API call, and error handling.
5215//
5216// This method is useful when you want to inject custom logic or configuration
5217// into the SDK's request lifecycle. Such as custom headers, or retry logic.
5218//
5219//
5220//    // Example sending a request using the UpdateSmsChannelRequest method.
5221//    req, resp := client.UpdateSmsChannelRequest(params)
5222//
5223//    err := req.Send()
5224//    if err == nil { // resp is now filled
5225//        fmt.Println(resp)
5226//    }
5227//
5228// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSmsChannel
5229func (c *Pinpoint) UpdateSmsChannelRequest(input *UpdateSmsChannelInput) (req *request.Request, output *UpdateSmsChannelOutput) {
5230	op := &request.Operation{
5231		Name:       opUpdateSmsChannel,
5232		HTTPMethod: "PUT",
5233		HTTPPath:   "/v1/apps/{application-id}/channels/sms",
5234	}
5235
5236	if input == nil {
5237		input = &UpdateSmsChannelInput{}
5238	}
5239
5240	output = &UpdateSmsChannelOutput{}
5241	req = c.newRequest(op, input, output)
5242	return
5243}
5244
5245// UpdateSmsChannel API operation for Amazon Pinpoint.
5246//
5247// Update an SMS channel
5248//
5249// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
5250// with awserr.Error's Code and Message methods to get detailed information about
5251// the error.
5252//
5253// See the AWS API reference guide for Amazon Pinpoint's
5254// API operation UpdateSmsChannel for usage and error information.
5255//
5256// Returned Error Codes:
5257//   * ErrCodeBadRequestException "BadRequestException"
5258//
5259//   * ErrCodeInternalServerErrorException "InternalServerErrorException"
5260//
5261//   * ErrCodeForbiddenException "ForbiddenException"
5262//
5263//   * ErrCodeNotFoundException "NotFoundException"
5264//
5265//   * ErrCodeMethodNotAllowedException "MethodNotAllowedException"
5266//
5267//   * ErrCodeTooManyRequestsException "TooManyRequestsException"
5268//
5269// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSmsChannel
5270func (c *Pinpoint) UpdateSmsChannel(input *UpdateSmsChannelInput) (*UpdateSmsChannelOutput, error) {
5271	req, out := c.UpdateSmsChannelRequest(input)
5272	return out, req.Send()
5273}
5274
5275// UpdateSmsChannelWithContext is the same as UpdateSmsChannel with the addition of
5276// the ability to pass a context and additional request options.
5277//
5278// See UpdateSmsChannel for details on how to use this API operation.
5279//
5280// The context must be non-nil and will be used for request cancellation. If
5281// the context is nil a panic will occur. In the future the SDK may create
5282// sub-contexts for http.Requests. See https://golang.org/pkg/context/
5283// for more information on using Contexts.
5284func (c *Pinpoint) UpdateSmsChannelWithContext(ctx aws.Context, input *UpdateSmsChannelInput, opts ...request.Option) (*UpdateSmsChannelOutput, error) {
5285	req, out := c.UpdateSmsChannelRequest(input)
5286	req.SetContext(ctx)
5287	req.ApplyOptions(opts...)
5288	return out, req.Send()
5289}
5290
5291// Amazon Device Messaging channel definition.
5292// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ADMChannelRequest
5293type ADMChannelRequest struct {
5294	_ struct{} `type:"structure"`
5295
5296	// Client ID as gotten from Amazon
5297	ClientId *string `type:"string"`
5298
5299	// Client secret as gotten from Amazon
5300	ClientSecret *string `type:"string"`
5301
5302	// If the channel is enabled for sending messages.
5303	Enabled *bool `type:"boolean"`
5304}
5305
5306// String returns the string representation
5307func (s ADMChannelRequest) String() string {
5308	return awsutil.Prettify(s)
5309}
5310
5311// GoString returns the string representation
5312func (s ADMChannelRequest) GoString() string {
5313	return s.String()
5314}
5315
5316// SetClientId sets the ClientId field's value.
5317func (s *ADMChannelRequest) SetClientId(v string) *ADMChannelRequest {
5318	s.ClientId = &v
5319	return s
5320}
5321
5322// SetClientSecret sets the ClientSecret field's value.
5323func (s *ADMChannelRequest) SetClientSecret(v string) *ADMChannelRequest {
5324	s.ClientSecret = &v
5325	return s
5326}
5327
5328// SetEnabled sets the Enabled field's value.
5329func (s *ADMChannelRequest) SetEnabled(v bool) *ADMChannelRequest {
5330	s.Enabled = &v
5331	return s
5332}
5333
5334// Amazon Device Messaging channel definition.
5335// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ADMChannelResponse
5336type ADMChannelResponse struct {
5337	_ struct{} `type:"structure"`
5338
5339	// Application id
5340	ApplicationId *string `type:"string"`
5341
5342	// When was this segment created
5343	CreationDate *string `type:"string"`
5344
5345	// If the channel is enabled for sending messages.
5346	Enabled *bool `type:"boolean"`
5347
5348	// If the channel is registered with a credential for authentication.
5349	HasCredential *bool `type:"boolean"`
5350
5351	// Channel ID. Not used, only for backwards compatibility.
5352	Id *string `type:"string"`
5353
5354	// Is this channel archived
5355	IsArchived *bool `type:"boolean"`
5356
5357	// Who last updated this entry
5358	LastModifiedBy *string `type:"string"`
5359
5360	// Last date this was updated
5361	LastModifiedDate *string `type:"string"`
5362
5363	// Platform type. Will be "ADM"
5364	Platform *string `type:"string"`
5365
5366	// Version of channel
5367	Version *int64 `type:"integer"`
5368}
5369
5370// String returns the string representation
5371func (s ADMChannelResponse) String() string {
5372	return awsutil.Prettify(s)
5373}
5374
5375// GoString returns the string representation
5376func (s ADMChannelResponse) GoString() string {
5377	return s.String()
5378}
5379
5380// SetApplicationId sets the ApplicationId field's value.
5381func (s *ADMChannelResponse) SetApplicationId(v string) *ADMChannelResponse {
5382	s.ApplicationId = &v
5383	return s
5384}
5385
5386// SetCreationDate sets the CreationDate field's value.
5387func (s *ADMChannelResponse) SetCreationDate(v string) *ADMChannelResponse {
5388	s.CreationDate = &v
5389	return s
5390}
5391
5392// SetEnabled sets the Enabled field's value.
5393func (s *ADMChannelResponse) SetEnabled(v bool) *ADMChannelResponse {
5394	s.Enabled = &v
5395	return s
5396}
5397
5398// SetHasCredential sets the HasCredential field's value.
5399func (s *ADMChannelResponse) SetHasCredential(v bool) *ADMChannelResponse {
5400	s.HasCredential = &v
5401	return s
5402}
5403
5404// SetId sets the Id field's value.
5405func (s *ADMChannelResponse) SetId(v string) *ADMChannelResponse {
5406	s.Id = &v
5407	return s
5408}
5409
5410// SetIsArchived sets the IsArchived field's value.
5411func (s *ADMChannelResponse) SetIsArchived(v bool) *ADMChannelResponse {
5412	s.IsArchived = &v
5413	return s
5414}
5415
5416// SetLastModifiedBy sets the LastModifiedBy field's value.
5417func (s *ADMChannelResponse) SetLastModifiedBy(v string) *ADMChannelResponse {
5418	s.LastModifiedBy = &v
5419	return s
5420}
5421
5422// SetLastModifiedDate sets the LastModifiedDate field's value.
5423func (s *ADMChannelResponse) SetLastModifiedDate(v string) *ADMChannelResponse {
5424	s.LastModifiedDate = &v
5425	return s
5426}
5427
5428// SetPlatform sets the Platform field's value.
5429func (s *ADMChannelResponse) SetPlatform(v string) *ADMChannelResponse {
5430	s.Platform = &v
5431	return s
5432}
5433
5434// SetVersion sets the Version field's value.
5435func (s *ADMChannelResponse) SetVersion(v int64) *ADMChannelResponse {
5436	s.Version = &v
5437	return s
5438}
5439
5440// ADM Message.
5441// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ADMMessage
5442type ADMMessage struct {
5443	_ struct{} `type:"structure"`
5444
5445	// The action that occurs if the user taps a push notification delivered by
5446	// the campaign: OPEN_APP - Your app launches, or it becomes the foreground
5447	// app if it has been sent to the background. This is the default action. DEEP_LINK
5448	// - Uses deep linking features in iOS and Android to open your app and display
5449	// a designated user interface within the app. URL - The default mobile browser
5450	// on the user's device launches and opens a web page at the URL you specify.
5451	// Possible values include: OPEN_APP | DEEP_LINK | URL
5452	Action *string `type:"string" enum:"Action"`
5453
5454	// The message body of the notification, the email body or the text message.
5455	Body *string `type:"string"`
5456
5457	// Optional. Arbitrary string used to indicate multiple messages are logically
5458	// the same and that ADM is allowed to drop previously enqueued messages in
5459	// favor of this one.
5460	ConsolidationKey *string `type:"string"`
5461
5462	Data map[string]*string `type:"map"`
5463
5464	// Optional. Number of seconds ADM should retain the message if the device is
5465	// offline
5466	ExpiresAfter *string `type:"string"`
5467
5468	// The icon image name of the asset saved in your application.
5469	IconReference *string `type:"string"`
5470
5471	// The URL that points to an image used as the large icon to the notification
5472	// content view.
5473	ImageIconUrl *string `type:"string"`
5474
5475	// The URL that points to an image used in the push notification.
5476	ImageUrl *string `type:"string"`
5477
5478	// Optional. Base-64-encoded MD5 checksum of the data parameter. Used to verify
5479	// data integrity
5480	MD5 *string `type:"string"`
5481
5482	// The Raw JSON formatted string to be used as the payload. This value overrides
5483	// the message.
5484	RawContent *string `type:"string"`
5485
5486	// Indicates if the message should display on the users device. Silent pushes
5487	// can be used for Remote Configuration and Phone Home use cases.
5488	SilentPush *bool `type:"boolean"`
5489
5490	// The URL that points to an image used as the small icon for the notification
5491	// which will be used to represent the notification in the status bar and content
5492	// view
5493	SmallImageIconUrl *string `type:"string"`
5494
5495	// Indicates a sound to play when the device receives the notification. Supports
5496	// default, or the filename of a sound resource bundled in the app. Android
5497	// sound files must reside in /res/raw/
5498	Sound *string `type:"string"`
5499
5500	Substitutions map[string][]*string `type:"map"`
5501
5502	// The message title that displays above the message on the user's device.
5503	Title *string `type:"string"`
5504
5505	// The URL to open in the user's mobile browser. Used if the value for Action
5506	// is URL.
5507	Url *string `type:"string"`
5508}
5509
5510// String returns the string representation
5511func (s ADMMessage) String() string {
5512	return awsutil.Prettify(s)
5513}
5514
5515// GoString returns the string representation
5516func (s ADMMessage) GoString() string {
5517	return s.String()
5518}
5519
5520// SetAction sets the Action field's value.
5521func (s *ADMMessage) SetAction(v string) *ADMMessage {
5522	s.Action = &v
5523	return s
5524}
5525
5526// SetBody sets the Body field's value.
5527func (s *ADMMessage) SetBody(v string) *ADMMessage {
5528	s.Body = &v
5529	return s
5530}
5531
5532// SetConsolidationKey sets the ConsolidationKey field's value.
5533func (s *ADMMessage) SetConsolidationKey(v string) *ADMMessage {
5534	s.ConsolidationKey = &v
5535	return s
5536}
5537
5538// SetData sets the Data field's value.
5539func (s *ADMMessage) SetData(v map[string]*string) *ADMMessage {
5540	s.Data = v
5541	return s
5542}
5543
5544// SetExpiresAfter sets the ExpiresAfter field's value.
5545func (s *ADMMessage) SetExpiresAfter(v string) *ADMMessage {
5546	s.ExpiresAfter = &v
5547	return s
5548}
5549
5550// SetIconReference sets the IconReference field's value.
5551func (s *ADMMessage) SetIconReference(v string) *ADMMessage {
5552	s.IconReference = &v
5553	return s
5554}
5555
5556// SetImageIconUrl sets the ImageIconUrl field's value.
5557func (s *ADMMessage) SetImageIconUrl(v string) *ADMMessage {
5558	s.ImageIconUrl = &v
5559	return s
5560}
5561
5562// SetImageUrl sets the ImageUrl field's value.
5563func (s *ADMMessage) SetImageUrl(v string) *ADMMessage {
5564	s.ImageUrl = &v
5565	return s
5566}
5567
5568// SetMD5 sets the MD5 field's value.
5569func (s *ADMMessage) SetMD5(v string) *ADMMessage {
5570	s.MD5 = &v
5571	return s
5572}
5573
5574// SetRawContent sets the RawContent field's value.
5575func (s *ADMMessage) SetRawContent(v string) *ADMMessage {
5576	s.RawContent = &v
5577	return s
5578}
5579
5580// SetSilentPush sets the SilentPush field's value.
5581func (s *ADMMessage) SetSilentPush(v bool) *ADMMessage {
5582	s.SilentPush = &v
5583	return s
5584}
5585
5586// SetSmallImageIconUrl sets the SmallImageIconUrl field's value.
5587func (s *ADMMessage) SetSmallImageIconUrl(v string) *ADMMessage {
5588	s.SmallImageIconUrl = &v
5589	return s
5590}
5591
5592// SetSound sets the Sound field's value.
5593func (s *ADMMessage) SetSound(v string) *ADMMessage {
5594	s.Sound = &v
5595	return s
5596}
5597
5598// SetSubstitutions sets the Substitutions field's value.
5599func (s *ADMMessage) SetSubstitutions(v map[string][]*string) *ADMMessage {
5600	s.Substitutions = v
5601	return s
5602}
5603
5604// SetTitle sets the Title field's value.
5605func (s *ADMMessage) SetTitle(v string) *ADMMessage {
5606	s.Title = &v
5607	return s
5608}
5609
5610// SetUrl sets the Url field's value.
5611func (s *ADMMessage) SetUrl(v string) *ADMMessage {
5612	s.Url = &v
5613	return s
5614}
5615
5616// Apple Push Notification Service channel definition.
5617// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSChannelRequest
5618type APNSChannelRequest struct {
5619	_ struct{} `type:"structure"`
5620
5621	// The bundle id used for APNs Tokens.
5622	BundleId *string `type:"string"`
5623
5624	// The distribution certificate from Apple.
5625	Certificate *string `type:"string"`
5626
5627	// The default authentication method used for APNs.
5628	DefaultAuthenticationMethod *string `type:"string"`
5629
5630	// If the channel is enabled for sending messages.
5631	Enabled *bool `type:"boolean"`
5632
5633	// The certificate private key.
5634	PrivateKey *string `type:"string"`
5635
5636	// The team id used for APNs Tokens.
5637	TeamId *string `type:"string"`
5638
5639	// The token key used for APNs Tokens.
5640	TokenKey *string `type:"string"`
5641
5642	// The token key used for APNs Tokens.
5643	TokenKeyId *string `type:"string"`
5644}
5645
5646// String returns the string representation
5647func (s APNSChannelRequest) String() string {
5648	return awsutil.Prettify(s)
5649}
5650
5651// GoString returns the string representation
5652func (s APNSChannelRequest) GoString() string {
5653	return s.String()
5654}
5655
5656// SetBundleId sets the BundleId field's value.
5657func (s *APNSChannelRequest) SetBundleId(v string) *APNSChannelRequest {
5658	s.BundleId = &v
5659	return s
5660}
5661
5662// SetCertificate sets the Certificate field's value.
5663func (s *APNSChannelRequest) SetCertificate(v string) *APNSChannelRequest {
5664	s.Certificate = &v
5665	return s
5666}
5667
5668// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
5669func (s *APNSChannelRequest) SetDefaultAuthenticationMethod(v string) *APNSChannelRequest {
5670	s.DefaultAuthenticationMethod = &v
5671	return s
5672}
5673
5674// SetEnabled sets the Enabled field's value.
5675func (s *APNSChannelRequest) SetEnabled(v bool) *APNSChannelRequest {
5676	s.Enabled = &v
5677	return s
5678}
5679
5680// SetPrivateKey sets the PrivateKey field's value.
5681func (s *APNSChannelRequest) SetPrivateKey(v string) *APNSChannelRequest {
5682	s.PrivateKey = &v
5683	return s
5684}
5685
5686// SetTeamId sets the TeamId field's value.
5687func (s *APNSChannelRequest) SetTeamId(v string) *APNSChannelRequest {
5688	s.TeamId = &v
5689	return s
5690}
5691
5692// SetTokenKey sets the TokenKey field's value.
5693func (s *APNSChannelRequest) SetTokenKey(v string) *APNSChannelRequest {
5694	s.TokenKey = &v
5695	return s
5696}
5697
5698// SetTokenKeyId sets the TokenKeyId field's value.
5699func (s *APNSChannelRequest) SetTokenKeyId(v string) *APNSChannelRequest {
5700	s.TokenKeyId = &v
5701	return s
5702}
5703
5704// Apple Distribution Push Notification Service channel definition.
5705// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSChannelResponse
5706type APNSChannelResponse struct {
5707	_ struct{} `type:"structure"`
5708
5709	// The ID of the application to which the channel applies.
5710	ApplicationId *string `type:"string"`
5711
5712	// When was this segment created
5713	CreationDate *string `type:"string"`
5714
5715	// The default authentication method used for APNs.
5716	DefaultAuthenticationMethod *string `type:"string"`
5717
5718	// If the channel is enabled for sending messages.
5719	Enabled *bool `type:"boolean"`
5720
5721	// If the channel is registered with a credential for authentication.
5722	HasCredential *bool `type:"boolean"`
5723
5724	// If the channel is registered with a token key for authentication.
5725	HasTokenKey *bool `type:"boolean"`
5726
5727	// Channel ID. Not used. Present only for backwards compatibility.
5728	Id *string `type:"string"`
5729
5730	// Is this channel archived
5731	IsArchived *bool `type:"boolean"`
5732
5733	// Who last updated this entry
5734	LastModifiedBy *string `type:"string"`
5735
5736	// Last date this was updated
5737	LastModifiedDate *string `type:"string"`
5738
5739	// The platform type. Will be APNS.
5740	Platform *string `type:"string"`
5741
5742	// Version of channel
5743	Version *int64 `type:"integer"`
5744}
5745
5746// String returns the string representation
5747func (s APNSChannelResponse) String() string {
5748	return awsutil.Prettify(s)
5749}
5750
5751// GoString returns the string representation
5752func (s APNSChannelResponse) GoString() string {
5753	return s.String()
5754}
5755
5756// SetApplicationId sets the ApplicationId field's value.
5757func (s *APNSChannelResponse) SetApplicationId(v string) *APNSChannelResponse {
5758	s.ApplicationId = &v
5759	return s
5760}
5761
5762// SetCreationDate sets the CreationDate field's value.
5763func (s *APNSChannelResponse) SetCreationDate(v string) *APNSChannelResponse {
5764	s.CreationDate = &v
5765	return s
5766}
5767
5768// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
5769func (s *APNSChannelResponse) SetDefaultAuthenticationMethod(v string) *APNSChannelResponse {
5770	s.DefaultAuthenticationMethod = &v
5771	return s
5772}
5773
5774// SetEnabled sets the Enabled field's value.
5775func (s *APNSChannelResponse) SetEnabled(v bool) *APNSChannelResponse {
5776	s.Enabled = &v
5777	return s
5778}
5779
5780// SetHasCredential sets the HasCredential field's value.
5781func (s *APNSChannelResponse) SetHasCredential(v bool) *APNSChannelResponse {
5782	s.HasCredential = &v
5783	return s
5784}
5785
5786// SetHasTokenKey sets the HasTokenKey field's value.
5787func (s *APNSChannelResponse) SetHasTokenKey(v bool) *APNSChannelResponse {
5788	s.HasTokenKey = &v
5789	return s
5790}
5791
5792// SetId sets the Id field's value.
5793func (s *APNSChannelResponse) SetId(v string) *APNSChannelResponse {
5794	s.Id = &v
5795	return s
5796}
5797
5798// SetIsArchived sets the IsArchived field's value.
5799func (s *APNSChannelResponse) SetIsArchived(v bool) *APNSChannelResponse {
5800	s.IsArchived = &v
5801	return s
5802}
5803
5804// SetLastModifiedBy sets the LastModifiedBy field's value.
5805func (s *APNSChannelResponse) SetLastModifiedBy(v string) *APNSChannelResponse {
5806	s.LastModifiedBy = &v
5807	return s
5808}
5809
5810// SetLastModifiedDate sets the LastModifiedDate field's value.
5811func (s *APNSChannelResponse) SetLastModifiedDate(v string) *APNSChannelResponse {
5812	s.LastModifiedDate = &v
5813	return s
5814}
5815
5816// SetPlatform sets the Platform field's value.
5817func (s *APNSChannelResponse) SetPlatform(v string) *APNSChannelResponse {
5818	s.Platform = &v
5819	return s
5820}
5821
5822// SetVersion sets the Version field's value.
5823func (s *APNSChannelResponse) SetVersion(v int64) *APNSChannelResponse {
5824	s.Version = &v
5825	return s
5826}
5827
5828// APNS Message.
5829// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSMessage
5830type APNSMessage struct {
5831	_ struct{} `type:"structure"`
5832
5833	// The action that occurs if the user taps a push notification delivered by
5834	// the campaign: OPEN_APP - Your app launches, or it becomes the foreground
5835	// app if it has been sent to the background. This is the default action. DEEP_LINK
5836	// - Uses deep linking features in iOS and Android to open your app and display
5837	// a designated user interface within the app. URL - The default mobile browser
5838	// on the user's device launches and opens a web page at the URL you specify.
5839	// Possible values include: OPEN_APP | DEEP_LINK | URL
5840	Action *string `type:"string" enum:"Action"`
5841
5842	// Include this key when you want the system to modify the badge of your app
5843	// icon. If this key is not included in the dictionary, the badge is not changed.
5844	// To remove the badge, set the value of this key to 0.
5845	Badge *int64 `type:"integer"`
5846
5847	// The message body of the notification, the email body or the text message.
5848	Body *string `type:"string"`
5849
5850	// Provide this key with a string value that represents the notification's type.
5851	// This value corresponds to the value in the identifier property of one of
5852	// your app's registered categories.
5853	Category *string `type:"string"`
5854
5855	// Multiple notifications with the same collapse identifier are displayed to
5856	// the user as a single notification. The value of this key must not exceed
5857	// 64 bytes.
5858	CollapseId *string `type:"string"`
5859
5860	Data map[string]*string `type:"map"`
5861
5862	// The URL that points to a video used in the push notification.
5863	MediaUrl *string `type:"string"`
5864
5865	// The preferred authentication method, either "CERTIFICATE" or "TOKEN"
5866	PreferredAuthenticationMethod *string `type:"string"`
5867
5868	// Is this a transaction priority message or lower priority.
5869	Priority *string `type:"string"`
5870
5871	// The Raw JSON formatted string to be used as the payload. This value overrides
5872	// the message.
5873	RawContent *string `type:"string"`
5874
5875	// Indicates if the message should display on the users device. Silent pushes
5876	// can be used for Remote Configuration and Phone Home use cases.
5877	SilentPush *bool `type:"boolean"`
5878
5879	// Include this key when you want the system to play a sound. The value of this
5880	// key is the name of a sound file in your app's main bundle or in the Library/Sounds
5881	// folder of your app's data container. If the sound file cannot be found, or
5882	// if you specify defaultfor the value, the system plays the default alert sound.
5883	Sound *string `type:"string"`
5884
5885	Substitutions map[string][]*string `type:"map"`
5886
5887	// Provide this key with a string value that represents the app-specific identifier
5888	// for grouping notifications. If you provide a Notification Content app extension,
5889	// you can use this value to group your notifications together.
5890	ThreadId *string `type:"string"`
5891
5892	// This parameter specifies how long (in seconds) the message should be kept
5893	// if APNS is unable to deliver the notification the first time. If the value
5894	// is 0, APNS treats the notification as if it expires immediately and does
5895	// not store the notification or attempt to redeliver it. This value is converted
5896	// to the expiration field when sent to APNS
5897	TimeToLive *int64 `type:"integer"`
5898
5899	// The message title that displays above the message on the user's device.
5900	Title *string `type:"string"`
5901
5902	// The URL to open in the user's mobile browser. Used if the value for Action
5903	// is URL.
5904	Url *string `type:"string"`
5905}
5906
5907// String returns the string representation
5908func (s APNSMessage) String() string {
5909	return awsutil.Prettify(s)
5910}
5911
5912// GoString returns the string representation
5913func (s APNSMessage) GoString() string {
5914	return s.String()
5915}
5916
5917// SetAction sets the Action field's value.
5918func (s *APNSMessage) SetAction(v string) *APNSMessage {
5919	s.Action = &v
5920	return s
5921}
5922
5923// SetBadge sets the Badge field's value.
5924func (s *APNSMessage) SetBadge(v int64) *APNSMessage {
5925	s.Badge = &v
5926	return s
5927}
5928
5929// SetBody sets the Body field's value.
5930func (s *APNSMessage) SetBody(v string) *APNSMessage {
5931	s.Body = &v
5932	return s
5933}
5934
5935// SetCategory sets the Category field's value.
5936func (s *APNSMessage) SetCategory(v string) *APNSMessage {
5937	s.Category = &v
5938	return s
5939}
5940
5941// SetCollapseId sets the CollapseId field's value.
5942func (s *APNSMessage) SetCollapseId(v string) *APNSMessage {
5943	s.CollapseId = &v
5944	return s
5945}
5946
5947// SetData sets the Data field's value.
5948func (s *APNSMessage) SetData(v map[string]*string) *APNSMessage {
5949	s.Data = v
5950	return s
5951}
5952
5953// SetMediaUrl sets the MediaUrl field's value.
5954func (s *APNSMessage) SetMediaUrl(v string) *APNSMessage {
5955	s.MediaUrl = &v
5956	return s
5957}
5958
5959// SetPreferredAuthenticationMethod sets the PreferredAuthenticationMethod field's value.
5960func (s *APNSMessage) SetPreferredAuthenticationMethod(v string) *APNSMessage {
5961	s.PreferredAuthenticationMethod = &v
5962	return s
5963}
5964
5965// SetPriority sets the Priority field's value.
5966func (s *APNSMessage) SetPriority(v string) *APNSMessage {
5967	s.Priority = &v
5968	return s
5969}
5970
5971// SetRawContent sets the RawContent field's value.
5972func (s *APNSMessage) SetRawContent(v string) *APNSMessage {
5973	s.RawContent = &v
5974	return s
5975}
5976
5977// SetSilentPush sets the SilentPush field's value.
5978func (s *APNSMessage) SetSilentPush(v bool) *APNSMessage {
5979	s.SilentPush = &v
5980	return s
5981}
5982
5983// SetSound sets the Sound field's value.
5984func (s *APNSMessage) SetSound(v string) *APNSMessage {
5985	s.Sound = &v
5986	return s
5987}
5988
5989// SetSubstitutions sets the Substitutions field's value.
5990func (s *APNSMessage) SetSubstitutions(v map[string][]*string) *APNSMessage {
5991	s.Substitutions = v
5992	return s
5993}
5994
5995// SetThreadId sets the ThreadId field's value.
5996func (s *APNSMessage) SetThreadId(v string) *APNSMessage {
5997	s.ThreadId = &v
5998	return s
5999}
6000
6001// SetTimeToLive sets the TimeToLive field's value.
6002func (s *APNSMessage) SetTimeToLive(v int64) *APNSMessage {
6003	s.TimeToLive = &v
6004	return s
6005}
6006
6007// SetTitle sets the Title field's value.
6008func (s *APNSMessage) SetTitle(v string) *APNSMessage {
6009	s.Title = &v
6010	return s
6011}
6012
6013// SetUrl sets the Url field's value.
6014func (s *APNSMessage) SetUrl(v string) *APNSMessage {
6015	s.Url = &v
6016	return s
6017}
6018
6019// Apple Development Push Notification Service channel definition.
6020// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSSandboxChannelRequest
6021type APNSSandboxChannelRequest struct {
6022	_ struct{} `type:"structure"`
6023
6024	// The bundle id used for APNs Tokens.
6025	BundleId *string `type:"string"`
6026
6027	// The distribution certificate from Apple.
6028	Certificate *string `type:"string"`
6029
6030	// The default authentication method used for APNs.
6031	DefaultAuthenticationMethod *string `type:"string"`
6032
6033	// If the channel is enabled for sending messages.
6034	Enabled *bool `type:"boolean"`
6035
6036	// The certificate private key.
6037	PrivateKey *string `type:"string"`
6038
6039	// The team id used for APNs Tokens.
6040	TeamId *string `type:"string"`
6041
6042	// The token key used for APNs Tokens.
6043	TokenKey *string `type:"string"`
6044
6045	// The token key used for APNs Tokens.
6046	TokenKeyId *string `type:"string"`
6047}
6048
6049// String returns the string representation
6050func (s APNSSandboxChannelRequest) String() string {
6051	return awsutil.Prettify(s)
6052}
6053
6054// GoString returns the string representation
6055func (s APNSSandboxChannelRequest) GoString() string {
6056	return s.String()
6057}
6058
6059// SetBundleId sets the BundleId field's value.
6060func (s *APNSSandboxChannelRequest) SetBundleId(v string) *APNSSandboxChannelRequest {
6061	s.BundleId = &v
6062	return s
6063}
6064
6065// SetCertificate sets the Certificate field's value.
6066func (s *APNSSandboxChannelRequest) SetCertificate(v string) *APNSSandboxChannelRequest {
6067	s.Certificate = &v
6068	return s
6069}
6070
6071// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
6072func (s *APNSSandboxChannelRequest) SetDefaultAuthenticationMethod(v string) *APNSSandboxChannelRequest {
6073	s.DefaultAuthenticationMethod = &v
6074	return s
6075}
6076
6077// SetEnabled sets the Enabled field's value.
6078func (s *APNSSandboxChannelRequest) SetEnabled(v bool) *APNSSandboxChannelRequest {
6079	s.Enabled = &v
6080	return s
6081}
6082
6083// SetPrivateKey sets the PrivateKey field's value.
6084func (s *APNSSandboxChannelRequest) SetPrivateKey(v string) *APNSSandboxChannelRequest {
6085	s.PrivateKey = &v
6086	return s
6087}
6088
6089// SetTeamId sets the TeamId field's value.
6090func (s *APNSSandboxChannelRequest) SetTeamId(v string) *APNSSandboxChannelRequest {
6091	s.TeamId = &v
6092	return s
6093}
6094
6095// SetTokenKey sets the TokenKey field's value.
6096func (s *APNSSandboxChannelRequest) SetTokenKey(v string) *APNSSandboxChannelRequest {
6097	s.TokenKey = &v
6098	return s
6099}
6100
6101// SetTokenKeyId sets the TokenKeyId field's value.
6102func (s *APNSSandboxChannelRequest) SetTokenKeyId(v string) *APNSSandboxChannelRequest {
6103	s.TokenKeyId = &v
6104	return s
6105}
6106
6107// Apple Development Push Notification Service channel definition.
6108// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSSandboxChannelResponse
6109type APNSSandboxChannelResponse struct {
6110	_ struct{} `type:"structure"`
6111
6112	// Application id
6113	ApplicationId *string `type:"string"`
6114
6115	// When was this segment created
6116	CreationDate *string `type:"string"`
6117
6118	// The default authentication method used for APNs.
6119	DefaultAuthenticationMethod *string `type:"string"`
6120
6121	// If the channel is enabled for sending messages.
6122	Enabled *bool `type:"boolean"`
6123
6124	// If the channel is registered with a credential for authentication.
6125	HasCredential *bool `type:"boolean"`
6126
6127	// If the channel is registered with a token key for authentication.
6128	HasTokenKey *bool `type:"boolean"`
6129
6130	// Channel ID. Not used, only for backwards compatibility.
6131	Id *string `type:"string"`
6132
6133	// Is this channel archived
6134	IsArchived *bool `type:"boolean"`
6135
6136	// Who last updated this entry
6137	LastModifiedBy *string `type:"string"`
6138
6139	// Last date this was updated
6140	LastModifiedDate *string `type:"string"`
6141
6142	// The platform type. Will be APNS_SANDBOX.
6143	Platform *string `type:"string"`
6144
6145	// Version of channel
6146	Version *int64 `type:"integer"`
6147}
6148
6149// String returns the string representation
6150func (s APNSSandboxChannelResponse) String() string {
6151	return awsutil.Prettify(s)
6152}
6153
6154// GoString returns the string representation
6155func (s APNSSandboxChannelResponse) GoString() string {
6156	return s.String()
6157}
6158
6159// SetApplicationId sets the ApplicationId field's value.
6160func (s *APNSSandboxChannelResponse) SetApplicationId(v string) *APNSSandboxChannelResponse {
6161	s.ApplicationId = &v
6162	return s
6163}
6164
6165// SetCreationDate sets the CreationDate field's value.
6166func (s *APNSSandboxChannelResponse) SetCreationDate(v string) *APNSSandboxChannelResponse {
6167	s.CreationDate = &v
6168	return s
6169}
6170
6171// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
6172func (s *APNSSandboxChannelResponse) SetDefaultAuthenticationMethod(v string) *APNSSandboxChannelResponse {
6173	s.DefaultAuthenticationMethod = &v
6174	return s
6175}
6176
6177// SetEnabled sets the Enabled field's value.
6178func (s *APNSSandboxChannelResponse) SetEnabled(v bool) *APNSSandboxChannelResponse {
6179	s.Enabled = &v
6180	return s
6181}
6182
6183// SetHasCredential sets the HasCredential field's value.
6184func (s *APNSSandboxChannelResponse) SetHasCredential(v bool) *APNSSandboxChannelResponse {
6185	s.HasCredential = &v
6186	return s
6187}
6188
6189// SetHasTokenKey sets the HasTokenKey field's value.
6190func (s *APNSSandboxChannelResponse) SetHasTokenKey(v bool) *APNSSandboxChannelResponse {
6191	s.HasTokenKey = &v
6192	return s
6193}
6194
6195// SetId sets the Id field's value.
6196func (s *APNSSandboxChannelResponse) SetId(v string) *APNSSandboxChannelResponse {
6197	s.Id = &v
6198	return s
6199}
6200
6201// SetIsArchived sets the IsArchived field's value.
6202func (s *APNSSandboxChannelResponse) SetIsArchived(v bool) *APNSSandboxChannelResponse {
6203	s.IsArchived = &v
6204	return s
6205}
6206
6207// SetLastModifiedBy sets the LastModifiedBy field's value.
6208func (s *APNSSandboxChannelResponse) SetLastModifiedBy(v string) *APNSSandboxChannelResponse {
6209	s.LastModifiedBy = &v
6210	return s
6211}
6212
6213// SetLastModifiedDate sets the LastModifiedDate field's value.
6214func (s *APNSSandboxChannelResponse) SetLastModifiedDate(v string) *APNSSandboxChannelResponse {
6215	s.LastModifiedDate = &v
6216	return s
6217}
6218
6219// SetPlatform sets the Platform field's value.
6220func (s *APNSSandboxChannelResponse) SetPlatform(v string) *APNSSandboxChannelResponse {
6221	s.Platform = &v
6222	return s
6223}
6224
6225// SetVersion sets the Version field's value.
6226func (s *APNSSandboxChannelResponse) SetVersion(v int64) *APNSSandboxChannelResponse {
6227	s.Version = &v
6228	return s
6229}
6230
6231// Apple VOIP Push Notification Service channel definition.
6232// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSVoipChannelRequest
6233type APNSVoipChannelRequest struct {
6234	_ struct{} `type:"structure"`
6235
6236	// The bundle id used for APNs Tokens.
6237	BundleId *string `type:"string"`
6238
6239	// The distribution certificate from Apple.
6240	Certificate *string `type:"string"`
6241
6242	// The default authentication method used for APNs.
6243	DefaultAuthenticationMethod *string `type:"string"`
6244
6245	// If the channel is enabled for sending messages.
6246	Enabled *bool `type:"boolean"`
6247
6248	// The certificate private key.
6249	PrivateKey *string `type:"string"`
6250
6251	// The team id used for APNs Tokens.
6252	TeamId *string `type:"string"`
6253
6254	// The token key used for APNs Tokens.
6255	TokenKey *string `type:"string"`
6256
6257	// The token key used for APNs Tokens.
6258	TokenKeyId *string `type:"string"`
6259}
6260
6261// String returns the string representation
6262func (s APNSVoipChannelRequest) String() string {
6263	return awsutil.Prettify(s)
6264}
6265
6266// GoString returns the string representation
6267func (s APNSVoipChannelRequest) GoString() string {
6268	return s.String()
6269}
6270
6271// SetBundleId sets the BundleId field's value.
6272func (s *APNSVoipChannelRequest) SetBundleId(v string) *APNSVoipChannelRequest {
6273	s.BundleId = &v
6274	return s
6275}
6276
6277// SetCertificate sets the Certificate field's value.
6278func (s *APNSVoipChannelRequest) SetCertificate(v string) *APNSVoipChannelRequest {
6279	s.Certificate = &v
6280	return s
6281}
6282
6283// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
6284func (s *APNSVoipChannelRequest) SetDefaultAuthenticationMethod(v string) *APNSVoipChannelRequest {
6285	s.DefaultAuthenticationMethod = &v
6286	return s
6287}
6288
6289// SetEnabled sets the Enabled field's value.
6290func (s *APNSVoipChannelRequest) SetEnabled(v bool) *APNSVoipChannelRequest {
6291	s.Enabled = &v
6292	return s
6293}
6294
6295// SetPrivateKey sets the PrivateKey field's value.
6296func (s *APNSVoipChannelRequest) SetPrivateKey(v string) *APNSVoipChannelRequest {
6297	s.PrivateKey = &v
6298	return s
6299}
6300
6301// SetTeamId sets the TeamId field's value.
6302func (s *APNSVoipChannelRequest) SetTeamId(v string) *APNSVoipChannelRequest {
6303	s.TeamId = &v
6304	return s
6305}
6306
6307// SetTokenKey sets the TokenKey field's value.
6308func (s *APNSVoipChannelRequest) SetTokenKey(v string) *APNSVoipChannelRequest {
6309	s.TokenKey = &v
6310	return s
6311}
6312
6313// SetTokenKeyId sets the TokenKeyId field's value.
6314func (s *APNSVoipChannelRequest) SetTokenKeyId(v string) *APNSVoipChannelRequest {
6315	s.TokenKeyId = &v
6316	return s
6317}
6318
6319// Apple VOIP Push Notification Service channel definition.
6320// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSVoipChannelResponse
6321type APNSVoipChannelResponse struct {
6322	_ struct{} `type:"structure"`
6323
6324	// Application id
6325	ApplicationId *string `type:"string"`
6326
6327	// When was this segment created
6328	CreationDate *string `type:"string"`
6329
6330	// The default authentication method used for APNs.
6331	DefaultAuthenticationMethod *string `type:"string"`
6332
6333	// If the channel is enabled for sending messages.
6334	Enabled *bool `type:"boolean"`
6335
6336	// If the channel is registered with a credential for authentication.
6337	HasCredential *bool `type:"boolean"`
6338
6339	// If the channel is registered with a token key for authentication.
6340	HasTokenKey *bool `type:"boolean"`
6341
6342	// Channel ID. Not used, only for backwards compatibility.
6343	Id *string `type:"string"`
6344
6345	// Is this channel archived
6346	IsArchived *bool `type:"boolean"`
6347
6348	// Who made the last change
6349	LastModifiedBy *string `type:"string"`
6350
6351	// Last date this was updated
6352	LastModifiedDate *string `type:"string"`
6353
6354	// The platform type. Will be APNS.
6355	Platform *string `type:"string"`
6356
6357	// Version of channel
6358	Version *int64 `type:"integer"`
6359}
6360
6361// String returns the string representation
6362func (s APNSVoipChannelResponse) String() string {
6363	return awsutil.Prettify(s)
6364}
6365
6366// GoString returns the string representation
6367func (s APNSVoipChannelResponse) GoString() string {
6368	return s.String()
6369}
6370
6371// SetApplicationId sets the ApplicationId field's value.
6372func (s *APNSVoipChannelResponse) SetApplicationId(v string) *APNSVoipChannelResponse {
6373	s.ApplicationId = &v
6374	return s
6375}
6376
6377// SetCreationDate sets the CreationDate field's value.
6378func (s *APNSVoipChannelResponse) SetCreationDate(v string) *APNSVoipChannelResponse {
6379	s.CreationDate = &v
6380	return s
6381}
6382
6383// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
6384func (s *APNSVoipChannelResponse) SetDefaultAuthenticationMethod(v string) *APNSVoipChannelResponse {
6385	s.DefaultAuthenticationMethod = &v
6386	return s
6387}
6388
6389// SetEnabled sets the Enabled field's value.
6390func (s *APNSVoipChannelResponse) SetEnabled(v bool) *APNSVoipChannelResponse {
6391	s.Enabled = &v
6392	return s
6393}
6394
6395// SetHasCredential sets the HasCredential field's value.
6396func (s *APNSVoipChannelResponse) SetHasCredential(v bool) *APNSVoipChannelResponse {
6397	s.HasCredential = &v
6398	return s
6399}
6400
6401// SetHasTokenKey sets the HasTokenKey field's value.
6402func (s *APNSVoipChannelResponse) SetHasTokenKey(v bool) *APNSVoipChannelResponse {
6403	s.HasTokenKey = &v
6404	return s
6405}
6406
6407// SetId sets the Id field's value.
6408func (s *APNSVoipChannelResponse) SetId(v string) *APNSVoipChannelResponse {
6409	s.Id = &v
6410	return s
6411}
6412
6413// SetIsArchived sets the IsArchived field's value.
6414func (s *APNSVoipChannelResponse) SetIsArchived(v bool) *APNSVoipChannelResponse {
6415	s.IsArchived = &v
6416	return s
6417}
6418
6419// SetLastModifiedBy sets the LastModifiedBy field's value.
6420func (s *APNSVoipChannelResponse) SetLastModifiedBy(v string) *APNSVoipChannelResponse {
6421	s.LastModifiedBy = &v
6422	return s
6423}
6424
6425// SetLastModifiedDate sets the LastModifiedDate field's value.
6426func (s *APNSVoipChannelResponse) SetLastModifiedDate(v string) *APNSVoipChannelResponse {
6427	s.LastModifiedDate = &v
6428	return s
6429}
6430
6431// SetPlatform sets the Platform field's value.
6432func (s *APNSVoipChannelResponse) SetPlatform(v string) *APNSVoipChannelResponse {
6433	s.Platform = &v
6434	return s
6435}
6436
6437// SetVersion sets the Version field's value.
6438func (s *APNSVoipChannelResponse) SetVersion(v int64) *APNSVoipChannelResponse {
6439	s.Version = &v
6440	return s
6441}
6442
6443// Apple VOIP Developer Push Notification Service channel definition.
6444// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSVoipSandboxChannelRequest
6445type APNSVoipSandboxChannelRequest struct {
6446	_ struct{} `type:"structure"`
6447
6448	// The bundle id used for APNs Tokens.
6449	BundleId *string `type:"string"`
6450
6451	// The distribution certificate from Apple.
6452	Certificate *string `type:"string"`
6453
6454	// The default authentication method used for APNs.
6455	DefaultAuthenticationMethod *string `type:"string"`
6456
6457	// If the channel is enabled for sending messages.
6458	Enabled *bool `type:"boolean"`
6459
6460	// The certificate private key.
6461	PrivateKey *string `type:"string"`
6462
6463	// The team id used for APNs Tokens.
6464	TeamId *string `type:"string"`
6465
6466	// The token key used for APNs Tokens.
6467	TokenKey *string `type:"string"`
6468
6469	// The token key used for APNs Tokens.
6470	TokenKeyId *string `type:"string"`
6471}
6472
6473// String returns the string representation
6474func (s APNSVoipSandboxChannelRequest) String() string {
6475	return awsutil.Prettify(s)
6476}
6477
6478// GoString returns the string representation
6479func (s APNSVoipSandboxChannelRequest) GoString() string {
6480	return s.String()
6481}
6482
6483// SetBundleId sets the BundleId field's value.
6484func (s *APNSVoipSandboxChannelRequest) SetBundleId(v string) *APNSVoipSandboxChannelRequest {
6485	s.BundleId = &v
6486	return s
6487}
6488
6489// SetCertificate sets the Certificate field's value.
6490func (s *APNSVoipSandboxChannelRequest) SetCertificate(v string) *APNSVoipSandboxChannelRequest {
6491	s.Certificate = &v
6492	return s
6493}
6494
6495// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
6496func (s *APNSVoipSandboxChannelRequest) SetDefaultAuthenticationMethod(v string) *APNSVoipSandboxChannelRequest {
6497	s.DefaultAuthenticationMethod = &v
6498	return s
6499}
6500
6501// SetEnabled sets the Enabled field's value.
6502func (s *APNSVoipSandboxChannelRequest) SetEnabled(v bool) *APNSVoipSandboxChannelRequest {
6503	s.Enabled = &v
6504	return s
6505}
6506
6507// SetPrivateKey sets the PrivateKey field's value.
6508func (s *APNSVoipSandboxChannelRequest) SetPrivateKey(v string) *APNSVoipSandboxChannelRequest {
6509	s.PrivateKey = &v
6510	return s
6511}
6512
6513// SetTeamId sets the TeamId field's value.
6514func (s *APNSVoipSandboxChannelRequest) SetTeamId(v string) *APNSVoipSandboxChannelRequest {
6515	s.TeamId = &v
6516	return s
6517}
6518
6519// SetTokenKey sets the TokenKey field's value.
6520func (s *APNSVoipSandboxChannelRequest) SetTokenKey(v string) *APNSVoipSandboxChannelRequest {
6521	s.TokenKey = &v
6522	return s
6523}
6524
6525// SetTokenKeyId sets the TokenKeyId field's value.
6526func (s *APNSVoipSandboxChannelRequest) SetTokenKeyId(v string) *APNSVoipSandboxChannelRequest {
6527	s.TokenKeyId = &v
6528	return s
6529}
6530
6531// Apple VOIP Developer Push Notification Service channel definition.
6532// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/APNSVoipSandboxChannelResponse
6533type APNSVoipSandboxChannelResponse struct {
6534	_ struct{} `type:"structure"`
6535
6536	// Application id
6537	ApplicationId *string `type:"string"`
6538
6539	// When was this segment created
6540	CreationDate *string `type:"string"`
6541
6542	// The default authentication method used for APNs.
6543	DefaultAuthenticationMethod *string `type:"string"`
6544
6545	// If the channel is enabled for sending messages.
6546	Enabled *bool `type:"boolean"`
6547
6548	// If the channel is registered with a credential for authentication.
6549	HasCredential *bool `type:"boolean"`
6550
6551	// If the channel is registered with a token key for authentication.
6552	HasTokenKey *bool `type:"boolean"`
6553
6554	// Channel ID. Not used, only for backwards compatibility.
6555	Id *string `type:"string"`
6556
6557	// Is this channel archived
6558	IsArchived *bool `type:"boolean"`
6559
6560	// Who made the last change
6561	LastModifiedBy *string `type:"string"`
6562
6563	// Last date this was updated
6564	LastModifiedDate *string `type:"string"`
6565
6566	// The platform type. Will be APNS.
6567	Platform *string `type:"string"`
6568
6569	// Version of channel
6570	Version *int64 `type:"integer"`
6571}
6572
6573// String returns the string representation
6574func (s APNSVoipSandboxChannelResponse) String() string {
6575	return awsutil.Prettify(s)
6576}
6577
6578// GoString returns the string representation
6579func (s APNSVoipSandboxChannelResponse) GoString() string {
6580	return s.String()
6581}
6582
6583// SetApplicationId sets the ApplicationId field's value.
6584func (s *APNSVoipSandboxChannelResponse) SetApplicationId(v string) *APNSVoipSandboxChannelResponse {
6585	s.ApplicationId = &v
6586	return s
6587}
6588
6589// SetCreationDate sets the CreationDate field's value.
6590func (s *APNSVoipSandboxChannelResponse) SetCreationDate(v string) *APNSVoipSandboxChannelResponse {
6591	s.CreationDate = &v
6592	return s
6593}
6594
6595// SetDefaultAuthenticationMethod sets the DefaultAuthenticationMethod field's value.
6596func (s *APNSVoipSandboxChannelResponse) SetDefaultAuthenticationMethod(v string) *APNSVoipSandboxChannelResponse {
6597	s.DefaultAuthenticationMethod = &v
6598	return s
6599}
6600
6601// SetEnabled sets the Enabled field's value.
6602func (s *APNSVoipSandboxChannelResponse) SetEnabled(v bool) *APNSVoipSandboxChannelResponse {
6603	s.Enabled = &v
6604	return s
6605}
6606
6607// SetHasCredential sets the HasCredential field's value.
6608func (s *APNSVoipSandboxChannelResponse) SetHasCredential(v bool) *APNSVoipSandboxChannelResponse {
6609	s.HasCredential = &v
6610	return s
6611}
6612
6613// SetHasTokenKey sets the HasTokenKey field's value.
6614func (s *APNSVoipSandboxChannelResponse) SetHasTokenKey(v bool) *APNSVoipSandboxChannelResponse {
6615	s.HasTokenKey = &v
6616	return s
6617}
6618
6619// SetId sets the Id field's value.
6620func (s *APNSVoipSandboxChannelResponse) SetId(v string) *APNSVoipSandboxChannelResponse {
6621	s.Id = &v
6622	return s
6623}
6624
6625// SetIsArchived sets the IsArchived field's value.
6626func (s *APNSVoipSandboxChannelResponse) SetIsArchived(v bool) *APNSVoipSandboxChannelResponse {
6627	s.IsArchived = &v
6628	return s
6629}
6630
6631// SetLastModifiedBy sets the LastModifiedBy field's value.
6632func (s *APNSVoipSandboxChannelResponse) SetLastModifiedBy(v string) *APNSVoipSandboxChannelResponse {
6633	s.LastModifiedBy = &v
6634	return s
6635}
6636
6637// SetLastModifiedDate sets the LastModifiedDate field's value.
6638func (s *APNSVoipSandboxChannelResponse) SetLastModifiedDate(v string) *APNSVoipSandboxChannelResponse {
6639	s.LastModifiedDate = &v
6640	return s
6641}
6642
6643// SetPlatform sets the Platform field's value.
6644func (s *APNSVoipSandboxChannelResponse) SetPlatform(v string) *APNSVoipSandboxChannelResponse {
6645	s.Platform = &v
6646	return s
6647}
6648
6649// SetVersion sets the Version field's value.
6650func (s *APNSVoipSandboxChannelResponse) SetVersion(v int64) *APNSVoipSandboxChannelResponse {
6651	s.Version = &v
6652	return s
6653}
6654
6655// Activities for campaign.
6656// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ActivitiesResponse
6657type ActivitiesResponse struct {
6658	_ struct{} `type:"structure"`
6659
6660	// List of campaign activities
6661	Item []*ActivityResponse `type:"list"`
6662}
6663
6664// String returns the string representation
6665func (s ActivitiesResponse) String() string {
6666	return awsutil.Prettify(s)
6667}
6668
6669// GoString returns the string representation
6670func (s ActivitiesResponse) GoString() string {
6671	return s.String()
6672}
6673
6674// SetItem sets the Item field's value.
6675func (s *ActivitiesResponse) SetItem(v []*ActivityResponse) *ActivitiesResponse {
6676	s.Item = v
6677	return s
6678}
6679
6680// Activity definition
6681// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ActivityResponse
6682type ActivityResponse struct {
6683	_ struct{} `type:"structure"`
6684
6685	// The ID of the application to which the campaign applies.
6686	ApplicationId *string `type:"string"`
6687
6688	// The ID of the campaign to which the activity applies.
6689	CampaignId *string `type:"string"`
6690
6691	// The actual time the activity was marked CANCELLED or COMPLETED. Provided
6692	// in ISO 8601 format.
6693	End *string `type:"string"`
6694
6695	// The unique activity ID.
6696	Id *string `type:"string"`
6697
6698	// Indicates whether the activity succeeded.Valid values: SUCCESS, FAIL
6699	Result *string `type:"string"`
6700
6701	// The scheduled start time for the activity in ISO 8601 format.
6702	ScheduledStart *string `type:"string"`
6703
6704	// The actual start time of the activity in ISO 8601 format.
6705	Start *string `type:"string"`
6706
6707	// The state of the activity.Valid values: PENDING, INITIALIZING, RUNNING, PAUSED,
6708	// CANCELLED, COMPLETED
6709	State *string `type:"string"`
6710
6711	// The total number of endpoints to which the campaign successfully delivered
6712	// messages.
6713	SuccessfulEndpointCount *int64 `type:"integer"`
6714
6715	// The total number of timezones completed.
6716	TimezonesCompletedCount *int64 `type:"integer"`
6717
6718	// The total number of unique timezones present in the segment.
6719	TimezonesTotalCount *int64 `type:"integer"`
6720
6721	// The total number of endpoints to which the campaign attempts to deliver messages.
6722	TotalEndpointCount *int64 `type:"integer"`
6723
6724	// The ID of a variation of the campaign used for A/B testing.
6725	TreatmentId *string `type:"string"`
6726}
6727
6728// String returns the string representation
6729func (s ActivityResponse) String() string {
6730	return awsutil.Prettify(s)
6731}
6732
6733// GoString returns the string representation
6734func (s ActivityResponse) GoString() string {
6735	return s.String()
6736}
6737
6738// SetApplicationId sets the ApplicationId field's value.
6739func (s *ActivityResponse) SetApplicationId(v string) *ActivityResponse {
6740	s.ApplicationId = &v
6741	return s
6742}
6743
6744// SetCampaignId sets the CampaignId field's value.
6745func (s *ActivityResponse) SetCampaignId(v string) *ActivityResponse {
6746	s.CampaignId = &v
6747	return s
6748}
6749
6750// SetEnd sets the End field's value.
6751func (s *ActivityResponse) SetEnd(v string) *ActivityResponse {
6752	s.End = &v
6753	return s
6754}
6755
6756// SetId sets the Id field's value.
6757func (s *ActivityResponse) SetId(v string) *ActivityResponse {
6758	s.Id = &v
6759	return s
6760}
6761
6762// SetResult sets the Result field's value.
6763func (s *ActivityResponse) SetResult(v string) *ActivityResponse {
6764	s.Result = &v
6765	return s
6766}
6767
6768// SetScheduledStart sets the ScheduledStart field's value.
6769func (s *ActivityResponse) SetScheduledStart(v string) *ActivityResponse {
6770	s.ScheduledStart = &v
6771	return s
6772}
6773
6774// SetStart sets the Start field's value.
6775func (s *ActivityResponse) SetStart(v string) *ActivityResponse {
6776	s.Start = &v
6777	return s
6778}
6779
6780// SetState sets the State field's value.
6781func (s *ActivityResponse) SetState(v string) *ActivityResponse {
6782	s.State = &v
6783	return s
6784}
6785
6786// SetSuccessfulEndpointCount sets the SuccessfulEndpointCount field's value.
6787func (s *ActivityResponse) SetSuccessfulEndpointCount(v int64) *ActivityResponse {
6788	s.SuccessfulEndpointCount = &v
6789	return s
6790}
6791
6792// SetTimezonesCompletedCount sets the TimezonesCompletedCount field's value.
6793func (s *ActivityResponse) SetTimezonesCompletedCount(v int64) *ActivityResponse {
6794	s.TimezonesCompletedCount = &v
6795	return s
6796}
6797
6798// SetTimezonesTotalCount sets the TimezonesTotalCount field's value.
6799func (s *ActivityResponse) SetTimezonesTotalCount(v int64) *ActivityResponse {
6800	s.TimezonesTotalCount = &v
6801	return s
6802}
6803
6804// SetTotalEndpointCount sets the TotalEndpointCount field's value.
6805func (s *ActivityResponse) SetTotalEndpointCount(v int64) *ActivityResponse {
6806	s.TotalEndpointCount = &v
6807	return s
6808}
6809
6810// SetTreatmentId sets the TreatmentId field's value.
6811func (s *ActivityResponse) SetTreatmentId(v string) *ActivityResponse {
6812	s.TreatmentId = &v
6813	return s
6814}
6815
6816// Address configuration.
6817// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/AddressConfiguration
6818type AddressConfiguration struct {
6819	_ struct{} `type:"structure"`
6820
6821	// Body override. If specified will override default body.
6822	BodyOverride *string `type:"string"`
6823
6824	// The channel type.Valid values: GCM | APNS | SMS | EMAIL
6825	ChannelType *string `type:"string" enum:"ChannelType"`
6826
6827	Context map[string]*string `type:"map"`
6828
6829	// The Raw JSON formatted string to be used as the payload. This value overrides
6830	// the message.
6831	RawContent *string `type:"string"`
6832
6833	Substitutions map[string][]*string `type:"map"`
6834
6835	// Title override. If specified will override default title if applicable.
6836	TitleOverride *string `type:"string"`
6837}
6838
6839// String returns the string representation
6840func (s AddressConfiguration) String() string {
6841	return awsutil.Prettify(s)
6842}
6843
6844// GoString returns the string representation
6845func (s AddressConfiguration) GoString() string {
6846	return s.String()
6847}
6848
6849// SetBodyOverride sets the BodyOverride field's value.
6850func (s *AddressConfiguration) SetBodyOverride(v string) *AddressConfiguration {
6851	s.BodyOverride = &v
6852	return s
6853}
6854
6855// SetChannelType sets the ChannelType field's value.
6856func (s *AddressConfiguration) SetChannelType(v string) *AddressConfiguration {
6857	s.ChannelType = &v
6858	return s
6859}
6860
6861// SetContext sets the Context field's value.
6862func (s *AddressConfiguration) SetContext(v map[string]*string) *AddressConfiguration {
6863	s.Context = v
6864	return s
6865}
6866
6867// SetRawContent sets the RawContent field's value.
6868func (s *AddressConfiguration) SetRawContent(v string) *AddressConfiguration {
6869	s.RawContent = &v
6870	return s
6871}
6872
6873// SetSubstitutions sets the Substitutions field's value.
6874func (s *AddressConfiguration) SetSubstitutions(v map[string][]*string) *AddressConfiguration {
6875	s.Substitutions = v
6876	return s
6877}
6878
6879// SetTitleOverride sets the TitleOverride field's value.
6880func (s *AddressConfiguration) SetTitleOverride(v string) *AddressConfiguration {
6881	s.TitleOverride = &v
6882	return s
6883}
6884
6885// Application Response.
6886// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ApplicationResponse
6887type ApplicationResponse struct {
6888	_ struct{} `type:"structure"`
6889
6890	// The unique application ID.
6891	Id *string `type:"string"`
6892
6893	// The display name of the application.
6894	Name *string `type:"string"`
6895}
6896
6897// String returns the string representation
6898func (s ApplicationResponse) String() string {
6899	return awsutil.Prettify(s)
6900}
6901
6902// GoString returns the string representation
6903func (s ApplicationResponse) GoString() string {
6904	return s.String()
6905}
6906
6907// SetId sets the Id field's value.
6908func (s *ApplicationResponse) SetId(v string) *ApplicationResponse {
6909	s.Id = &v
6910	return s
6911}
6912
6913// SetName sets the Name field's value.
6914func (s *ApplicationResponse) SetName(v string) *ApplicationResponse {
6915	s.Name = &v
6916	return s
6917}
6918
6919// Application settings.
6920// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ApplicationSettingsResource
6921type ApplicationSettingsResource struct {
6922	_ struct{} `type:"structure"`
6923
6924	// The unique ID for the application.
6925	ApplicationId *string `type:"string"`
6926
6927	// The date that the settings were last updated in ISO 8601 format.
6928	LastModifiedDate *string `type:"string"`
6929
6930	// The default campaign limits for the app. These limits apply to each campaign
6931	// for the app, unless the campaign overrides the default with limits of its
6932	// own.
6933	Limits *CampaignLimits `type:"structure"`
6934
6935	// The default quiet time for the app. Each campaign for this app sends no messages
6936	// during this time unless the campaign overrides the default with a quiet time
6937	// of its own.
6938	QuietTime *QuietTime `type:"structure"`
6939}
6940
6941// String returns the string representation
6942func (s ApplicationSettingsResource) String() string {
6943	return awsutil.Prettify(s)
6944}
6945
6946// GoString returns the string representation
6947func (s ApplicationSettingsResource) GoString() string {
6948	return s.String()
6949}
6950
6951// SetApplicationId sets the ApplicationId field's value.
6952func (s *ApplicationSettingsResource) SetApplicationId(v string) *ApplicationSettingsResource {
6953	s.ApplicationId = &v
6954	return s
6955}
6956
6957// SetLastModifiedDate sets the LastModifiedDate field's value.
6958func (s *ApplicationSettingsResource) SetLastModifiedDate(v string) *ApplicationSettingsResource {
6959	s.LastModifiedDate = &v
6960	return s
6961}
6962
6963// SetLimits sets the Limits field's value.
6964func (s *ApplicationSettingsResource) SetLimits(v *CampaignLimits) *ApplicationSettingsResource {
6965	s.Limits = v
6966	return s
6967}
6968
6969// SetQuietTime sets the QuietTime field's value.
6970func (s *ApplicationSettingsResource) SetQuietTime(v *QuietTime) *ApplicationSettingsResource {
6971	s.QuietTime = v
6972	return s
6973}
6974
6975// Get Applications Result.
6976// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ApplicationsResponse
6977type ApplicationsResponse struct {
6978	_ struct{} `type:"structure"`
6979
6980	// List of applications returned in this page.
6981	Item []*ApplicationResponse `type:"list"`
6982
6983	// The string that you use in a subsequent request to get the next page of results
6984	// in a paginated response.
6985	NextToken *string `type:"string"`
6986}
6987
6988// String returns the string representation
6989func (s ApplicationsResponse) String() string {
6990	return awsutil.Prettify(s)
6991}
6992
6993// GoString returns the string representation
6994func (s ApplicationsResponse) GoString() string {
6995	return s.String()
6996}
6997
6998// SetItem sets the Item field's value.
6999func (s *ApplicationsResponse) SetItem(v []*ApplicationResponse) *ApplicationsResponse {
7000	s.Item = v
7001	return s
7002}
7003
7004// SetNextToken sets the NextToken field's value.
7005func (s *ApplicationsResponse) SetNextToken(v string) *ApplicationsResponse {
7006	s.NextToken = &v
7007	return s
7008}
7009
7010// Custom attibute dimension
7011// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/AttributeDimension
7012type AttributeDimension struct {
7013	_ struct{} `type:"structure"`
7014
7015	// The type of dimension:INCLUSIVE - Endpoints that match the criteria are included
7016	// in the segment.EXCLUSIVE - Endpoints that match the criteria are excluded
7017	// from the segment.
7018	AttributeType *string `type:"string" enum:"AttributeType"`
7019
7020	Values []*string `type:"list"`
7021}
7022
7023// String returns the string representation
7024func (s AttributeDimension) String() string {
7025	return awsutil.Prettify(s)
7026}
7027
7028// GoString returns the string representation
7029func (s AttributeDimension) GoString() string {
7030	return s.String()
7031}
7032
7033// SetAttributeType sets the AttributeType field's value.
7034func (s *AttributeDimension) SetAttributeType(v string) *AttributeDimension {
7035	s.AttributeType = &v
7036	return s
7037}
7038
7039// SetValues sets the Values field's value.
7040func (s *AttributeDimension) SetValues(v []*string) *AttributeDimension {
7041	s.Values = v
7042	return s
7043}
7044
7045// Baidu Cloud Push credentials
7046// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/BaiduChannelRequest
7047type BaiduChannelRequest struct {
7048	_ struct{} `type:"structure"`
7049
7050	// Platform credential API key from Baidu.
7051	ApiKey *string `type:"string"`
7052
7053	// If the channel is enabled for sending messages.
7054	Enabled *bool `type:"boolean"`
7055
7056	// Platform credential Secret key from Baidu.
7057	SecretKey *string `type:"string"`
7058}
7059
7060// String returns the string representation
7061func (s BaiduChannelRequest) String() string {
7062	return awsutil.Prettify(s)
7063}
7064
7065// GoString returns the string representation
7066func (s BaiduChannelRequest) GoString() string {
7067	return s.String()
7068}
7069
7070// SetApiKey sets the ApiKey field's value.
7071func (s *BaiduChannelRequest) SetApiKey(v string) *BaiduChannelRequest {
7072	s.ApiKey = &v
7073	return s
7074}
7075
7076// SetEnabled sets the Enabled field's value.
7077func (s *BaiduChannelRequest) SetEnabled(v bool) *BaiduChannelRequest {
7078	s.Enabled = &v
7079	return s
7080}
7081
7082// SetSecretKey sets the SecretKey field's value.
7083func (s *BaiduChannelRequest) SetSecretKey(v string) *BaiduChannelRequest {
7084	s.SecretKey = &v
7085	return s
7086}
7087
7088// Baidu Cloud Messaging channel definition
7089// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/BaiduChannelResponse
7090type BaiduChannelResponse struct {
7091	_ struct{} `type:"structure"`
7092
7093	// Application id
7094	ApplicationId *string `type:"string"`
7095
7096	// When was this segment created
7097	CreationDate *string `type:"string"`
7098
7099	// The Baidu API key from Baidu.
7100	Credential *string `type:"string"`
7101
7102	// If the channel is enabled for sending messages.
7103	Enabled *bool `type:"boolean"`
7104
7105	// If the channel is registered with a credential for authentication.
7106	HasCredential *bool `type:"boolean"`
7107
7108	// Channel ID. Not used, only for backwards compatibility.
7109	Id *string `type:"string"`
7110
7111	// Is this channel archived
7112	IsArchived *bool `type:"boolean"`
7113
7114	// Who made the last change
7115	LastModifiedBy *string `type:"string"`
7116
7117	// Last date this was updated
7118	LastModifiedDate *string `type:"string"`
7119
7120	// The platform type. Will be BAIDU
7121	Platform *string `type:"string"`
7122
7123	// Version of channel
7124	Version *int64 `type:"integer"`
7125}
7126
7127// String returns the string representation
7128func (s BaiduChannelResponse) String() string {
7129	return awsutil.Prettify(s)
7130}
7131
7132// GoString returns the string representation
7133func (s BaiduChannelResponse) GoString() string {
7134	return s.String()
7135}
7136
7137// SetApplicationId sets the ApplicationId field's value.
7138func (s *BaiduChannelResponse) SetApplicationId(v string) *BaiduChannelResponse {
7139	s.ApplicationId = &v
7140	return s
7141}
7142
7143// SetCreationDate sets the CreationDate field's value.
7144func (s *BaiduChannelResponse) SetCreationDate(v string) *BaiduChannelResponse {
7145	s.CreationDate = &v
7146	return s
7147}
7148
7149// SetCredential sets the Credential field's value.
7150func (s *BaiduChannelResponse) SetCredential(v string) *BaiduChannelResponse {
7151	s.Credential = &v
7152	return s
7153}
7154
7155// SetEnabled sets the Enabled field's value.
7156func (s *BaiduChannelResponse) SetEnabled(v bool) *BaiduChannelResponse {
7157	s.Enabled = &v
7158	return s
7159}
7160
7161// SetHasCredential sets the HasCredential field's value.
7162func (s *BaiduChannelResponse) SetHasCredential(v bool) *BaiduChannelResponse {
7163	s.HasCredential = &v
7164	return s
7165}
7166
7167// SetId sets the Id field's value.
7168func (s *BaiduChannelResponse) SetId(v string) *BaiduChannelResponse {
7169	s.Id = &v
7170	return s
7171}
7172
7173// SetIsArchived sets the IsArchived field's value.
7174func (s *BaiduChannelResponse) SetIsArchived(v bool) *BaiduChannelResponse {
7175	s.IsArchived = &v
7176	return s
7177}
7178
7179// SetLastModifiedBy sets the LastModifiedBy field's value.
7180func (s *BaiduChannelResponse) SetLastModifiedBy(v string) *BaiduChannelResponse {
7181	s.LastModifiedBy = &v
7182	return s
7183}
7184
7185// SetLastModifiedDate sets the LastModifiedDate field's value.
7186func (s *BaiduChannelResponse) SetLastModifiedDate(v string) *BaiduChannelResponse {
7187	s.LastModifiedDate = &v
7188	return s
7189}
7190
7191// SetPlatform sets the Platform field's value.
7192func (s *BaiduChannelResponse) SetPlatform(v string) *BaiduChannelResponse {
7193	s.Platform = &v
7194	return s
7195}
7196
7197// SetVersion sets the Version field's value.
7198func (s *BaiduChannelResponse) SetVersion(v int64) *BaiduChannelResponse {
7199	s.Version = &v
7200	return s
7201}
7202
7203// Baidu Message.
7204// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/BaiduMessage
7205type BaiduMessage struct {
7206	_ struct{} `type:"structure"`
7207
7208	// The action that occurs if the user taps a push notification delivered by
7209	// the campaign: OPEN_APP - Your app launches, or it becomes the foreground
7210	// app if it has been sent to the background. This is the default action. DEEP_LINK
7211	// - Uses deep linking features in iOS and Android to open your app and display
7212	// a designated user interface within the app. URL - The default mobile browser
7213	// on the user's device launches and opens a web page at the URL you specify.
7214	// Possible values include: OPEN_APP | DEEP_LINK | URL
7215	Action *string `type:"string" enum:"Action"`
7216
7217	// The message body of the notification, the email body or the text message.
7218	Body *string `type:"string"`
7219
7220	Data map[string]*string `type:"map"`
7221
7222	// The icon image name of the asset saved in your application.
7223	IconReference *string `type:"string"`
7224
7225	// The URL that points to an image used as the large icon to the notification
7226	// content view.
7227	ImageIconUrl *string `type:"string"`
7228
7229	// The URL that points to an image used in the push notification.
7230	ImageUrl *string `type:"string"`
7231
7232	// The Raw JSON formatted string to be used as the payload. This value overrides
7233	// the message.
7234	RawContent *string `type:"string"`
7235
7236	// Indicates if the message should display on the users device. Silent pushes
7237	// can be used for Remote Configuration and Phone Home use cases.
7238	SilentPush *bool `type:"boolean"`
7239
7240	// The URL that points to an image used as the small icon for the notification
7241	// which will be used to represent the notification in the status bar and content
7242	// view
7243	SmallImageIconUrl *string `type:"string"`
7244
7245	// Indicates a sound to play when the device receives the notification. Supports
7246	// default, or the filename of a sound resource bundled in the app. Android
7247	// sound files must reside in /res/raw/
7248	Sound *string `type:"string"`
7249
7250	Substitutions map[string][]*string `type:"map"`
7251
7252	// The message title that displays above the message on the user's device.
7253	Title *string `type:"string"`
7254
7255	// The URL to open in the user's mobile browser. Used if the value for Action
7256	// is URL.
7257	Url *string `type:"string"`
7258}
7259
7260// String returns the string representation
7261func (s BaiduMessage) String() string {
7262	return awsutil.Prettify(s)
7263}
7264
7265// GoString returns the string representation
7266func (s BaiduMessage) GoString() string {
7267	return s.String()
7268}
7269
7270// SetAction sets the Action field's value.
7271func (s *BaiduMessage) SetAction(v string) *BaiduMessage {
7272	s.Action = &v
7273	return s
7274}
7275
7276// SetBody sets the Body field's value.
7277func (s *BaiduMessage) SetBody(v string) *BaiduMessage {
7278	s.Body = &v
7279	return s
7280}
7281
7282// SetData sets the Data field's value.
7283func (s *BaiduMessage) SetData(v map[string]*string) *BaiduMessage {
7284	s.Data = v
7285	return s
7286}
7287
7288// SetIconReference sets the IconReference field's value.
7289func (s *BaiduMessage) SetIconReference(v string) *BaiduMessage {
7290	s.IconReference = &v
7291	return s
7292}
7293
7294// SetImageIconUrl sets the ImageIconUrl field's value.
7295func (s *BaiduMessage) SetImageIconUrl(v string) *BaiduMessage {
7296	s.ImageIconUrl = &v
7297	return s
7298}
7299
7300// SetImageUrl sets the ImageUrl field's value.
7301func (s *BaiduMessage) SetImageUrl(v string) *BaiduMessage {
7302	s.ImageUrl = &v
7303	return s
7304}
7305
7306// SetRawContent sets the RawContent field's value.
7307func (s *BaiduMessage) SetRawContent(v string) *BaiduMessage {
7308	s.RawContent = &v
7309	return s
7310}
7311
7312// SetSilentPush sets the SilentPush field's value.
7313func (s *BaiduMessage) SetSilentPush(v bool) *BaiduMessage {
7314	s.SilentPush = &v
7315	return s
7316}
7317
7318// SetSmallImageIconUrl sets the SmallImageIconUrl field's value.
7319func (s *BaiduMessage) SetSmallImageIconUrl(v string) *BaiduMessage {
7320	s.SmallImageIconUrl = &v
7321	return s
7322}
7323
7324// SetSound sets the Sound field's value.
7325func (s *BaiduMessage) SetSound(v string) *BaiduMessage {
7326	s.Sound = &v
7327	return s
7328}
7329
7330// SetSubstitutions sets the Substitutions field's value.
7331func (s *BaiduMessage) SetSubstitutions(v map[string][]*string) *BaiduMessage {
7332	s.Substitutions = v
7333	return s
7334}
7335
7336// SetTitle sets the Title field's value.
7337func (s *BaiduMessage) SetTitle(v string) *BaiduMessage {
7338	s.Title = &v
7339	return s
7340}
7341
7342// SetUrl sets the Url field's value.
7343func (s *BaiduMessage) SetUrl(v string) *BaiduMessage {
7344	s.Url = &v
7345	return s
7346}
7347
7348// The email message configuration.
7349// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignEmailMessage
7350type CampaignEmailMessage struct {
7351	_ struct{} `type:"structure"`
7352
7353	// The email text body.
7354	Body *string `type:"string"`
7355
7356	// The email address used to send the email from. Defaults to use FromAddress
7357	// specified in the Email Channel.
7358	FromAddress *string `type:"string"`
7359
7360	// The email html body.
7361	HtmlBody *string `type:"string"`
7362
7363	// The email title (Or subject).
7364	Title *string `type:"string"`
7365}
7366
7367// String returns the string representation
7368func (s CampaignEmailMessage) String() string {
7369	return awsutil.Prettify(s)
7370}
7371
7372// GoString returns the string representation
7373func (s CampaignEmailMessage) GoString() string {
7374	return s.String()
7375}
7376
7377// SetBody sets the Body field's value.
7378func (s *CampaignEmailMessage) SetBody(v string) *CampaignEmailMessage {
7379	s.Body = &v
7380	return s
7381}
7382
7383// SetFromAddress sets the FromAddress field's value.
7384func (s *CampaignEmailMessage) SetFromAddress(v string) *CampaignEmailMessage {
7385	s.FromAddress = &v
7386	return s
7387}
7388
7389// SetHtmlBody sets the HtmlBody field's value.
7390func (s *CampaignEmailMessage) SetHtmlBody(v string) *CampaignEmailMessage {
7391	s.HtmlBody = &v
7392	return s
7393}
7394
7395// SetTitle sets the Title field's value.
7396func (s *CampaignEmailMessage) SetTitle(v string) *CampaignEmailMessage {
7397	s.Title = &v
7398	return s
7399}
7400
7401// Campaign Limits are used to limit the number of messages that can be sent
7402// to a user.
7403// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignLimits
7404type CampaignLimits struct {
7405	_ struct{} `type:"structure"`
7406
7407	// The maximum number of messages that the campaign can send daily.
7408	Daily *int64 `type:"integer"`
7409
7410	// The maximum duration of a campaign from the scheduled start. Must be a minimum
7411	// of 60 seconds.
7412	MaximumDuration *int64 `type:"integer"`
7413
7414	// The maximum number of messages per second that the campaign will send. This
7415	// is a best effort maximum cap and can go as high as 20000 and as low as 50
7416	MessagesPerSecond *int64 `type:"integer"`
7417
7418	// The maximum total number of messages that the campaign can send.
7419	Total *int64 `type:"integer"`
7420}
7421
7422// String returns the string representation
7423func (s CampaignLimits) String() string {
7424	return awsutil.Prettify(s)
7425}
7426
7427// GoString returns the string representation
7428func (s CampaignLimits) GoString() string {
7429	return s.String()
7430}
7431
7432// SetDaily sets the Daily field's value.
7433func (s *CampaignLimits) SetDaily(v int64) *CampaignLimits {
7434	s.Daily = &v
7435	return s
7436}
7437
7438// SetMaximumDuration sets the MaximumDuration field's value.
7439func (s *CampaignLimits) SetMaximumDuration(v int64) *CampaignLimits {
7440	s.MaximumDuration = &v
7441	return s
7442}
7443
7444// SetMessagesPerSecond sets the MessagesPerSecond field's value.
7445func (s *CampaignLimits) SetMessagesPerSecond(v int64) *CampaignLimits {
7446	s.MessagesPerSecond = &v
7447	return s
7448}
7449
7450// SetTotal sets the Total field's value.
7451func (s *CampaignLimits) SetTotal(v int64) *CampaignLimits {
7452	s.Total = &v
7453	return s
7454}
7455
7456// Campaign definition
7457// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignResponse
7458type CampaignResponse struct {
7459	_ struct{} `type:"structure"`
7460
7461	// Treatments that are defined in addition to the default treatment.
7462	AdditionalTreatments []*TreatmentResource `type:"list"`
7463
7464	// The ID of the application to which the campaign applies.
7465	ApplicationId *string `type:"string"`
7466
7467	// The date the campaign was created in ISO 8601 format.
7468	CreationDate *string `type:"string"`
7469
7470	// The status of the campaign's default treatment. Only present for A/B test
7471	// campaigns.
7472	DefaultState *CampaignState `type:"structure"`
7473
7474	// A description of the campaign.
7475	Description *string `type:"string"`
7476
7477	// The allocated percentage of end users who will not receive messages from
7478	// this campaign.
7479	HoldoutPercent *int64 `type:"integer"`
7480
7481	// The unique campaign ID.
7482	Id *string `type:"string"`
7483
7484	// Indicates whether the campaign is paused. A paused campaign does not send
7485	// messages unless you resume it by setting IsPaused to false.
7486	IsPaused *bool `type:"boolean"`
7487
7488	// The date the campaign was last updated in ISO 8601 format.
7489	LastModifiedDate *string `type:"string"`
7490
7491	// The campaign limits settings.
7492	Limits *CampaignLimits `type:"structure"`
7493
7494	// The message configuration settings.
7495	MessageConfiguration *MessageConfiguration `type:"structure"`
7496
7497	// The custom name of the campaign.
7498	Name *string `type:"string"`
7499
7500	// The campaign schedule.
7501	Schedule *Schedule `type:"structure"`
7502
7503	// The ID of the segment to which the campaign sends messages.
7504	SegmentId *string `type:"string"`
7505
7506	// The version of the segment to which the campaign sends messages.
7507	SegmentVersion *int64 `type:"integer"`
7508
7509	// The campaign status.An A/B test campaign will have a status of COMPLETED
7510	// only when all treatments have a status of COMPLETED.
7511	State *CampaignState `type:"structure"`
7512
7513	// A custom description for the treatment.
7514	TreatmentDescription *string `type:"string"`
7515
7516	// The custom name of a variation of the campaign used for A/B testing.
7517	TreatmentName *string `type:"string"`
7518
7519	// The campaign version number.
7520	Version *int64 `type:"integer"`
7521}
7522
7523// String returns the string representation
7524func (s CampaignResponse) String() string {
7525	return awsutil.Prettify(s)
7526}
7527
7528// GoString returns the string representation
7529func (s CampaignResponse) GoString() string {
7530	return s.String()
7531}
7532
7533// SetAdditionalTreatments sets the AdditionalTreatments field's value.
7534func (s *CampaignResponse) SetAdditionalTreatments(v []*TreatmentResource) *CampaignResponse {
7535	s.AdditionalTreatments = v
7536	return s
7537}
7538
7539// SetApplicationId sets the ApplicationId field's value.
7540func (s *CampaignResponse) SetApplicationId(v string) *CampaignResponse {
7541	s.ApplicationId = &v
7542	return s
7543}
7544
7545// SetCreationDate sets the CreationDate field's value.
7546func (s *CampaignResponse) SetCreationDate(v string) *CampaignResponse {
7547	s.CreationDate = &v
7548	return s
7549}
7550
7551// SetDefaultState sets the DefaultState field's value.
7552func (s *CampaignResponse) SetDefaultState(v *CampaignState) *CampaignResponse {
7553	s.DefaultState = v
7554	return s
7555}
7556
7557// SetDescription sets the Description field's value.
7558func (s *CampaignResponse) SetDescription(v string) *CampaignResponse {
7559	s.Description = &v
7560	return s
7561}
7562
7563// SetHoldoutPercent sets the HoldoutPercent field's value.
7564func (s *CampaignResponse) SetHoldoutPercent(v int64) *CampaignResponse {
7565	s.HoldoutPercent = &v
7566	return s
7567}
7568
7569// SetId sets the Id field's value.
7570func (s *CampaignResponse) SetId(v string) *CampaignResponse {
7571	s.Id = &v
7572	return s
7573}
7574
7575// SetIsPaused sets the IsPaused field's value.
7576func (s *CampaignResponse) SetIsPaused(v bool) *CampaignResponse {
7577	s.IsPaused = &v
7578	return s
7579}
7580
7581// SetLastModifiedDate sets the LastModifiedDate field's value.
7582func (s *CampaignResponse) SetLastModifiedDate(v string) *CampaignResponse {
7583	s.LastModifiedDate = &v
7584	return s
7585}
7586
7587// SetLimits sets the Limits field's value.
7588func (s *CampaignResponse) SetLimits(v *CampaignLimits) *CampaignResponse {
7589	s.Limits = v
7590	return s
7591}
7592
7593// SetMessageConfiguration sets the MessageConfiguration field's value.
7594func (s *CampaignResponse) SetMessageConfiguration(v *MessageConfiguration) *CampaignResponse {
7595	s.MessageConfiguration = v
7596	return s
7597}
7598
7599// SetName sets the Name field's value.
7600func (s *CampaignResponse) SetName(v string) *CampaignResponse {
7601	s.Name = &v
7602	return s
7603}
7604
7605// SetSchedule sets the Schedule field's value.
7606func (s *CampaignResponse) SetSchedule(v *Schedule) *CampaignResponse {
7607	s.Schedule = v
7608	return s
7609}
7610
7611// SetSegmentId sets the SegmentId field's value.
7612func (s *CampaignResponse) SetSegmentId(v string) *CampaignResponse {
7613	s.SegmentId = &v
7614	return s
7615}
7616
7617// SetSegmentVersion sets the SegmentVersion field's value.
7618func (s *CampaignResponse) SetSegmentVersion(v int64) *CampaignResponse {
7619	s.SegmentVersion = &v
7620	return s
7621}
7622
7623// SetState sets the State field's value.
7624func (s *CampaignResponse) SetState(v *CampaignState) *CampaignResponse {
7625	s.State = v
7626	return s
7627}
7628
7629// SetTreatmentDescription sets the TreatmentDescription field's value.
7630func (s *CampaignResponse) SetTreatmentDescription(v string) *CampaignResponse {
7631	s.TreatmentDescription = &v
7632	return s
7633}
7634
7635// SetTreatmentName sets the TreatmentName field's value.
7636func (s *CampaignResponse) SetTreatmentName(v string) *CampaignResponse {
7637	s.TreatmentName = &v
7638	return s
7639}
7640
7641// SetVersion sets the Version field's value.
7642func (s *CampaignResponse) SetVersion(v int64) *CampaignResponse {
7643	s.Version = &v
7644	return s
7645}
7646
7647// SMS message configuration.
7648// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignSmsMessage
7649type CampaignSmsMessage struct {
7650	_ struct{} `type:"structure"`
7651
7652	// The SMS text body.
7653	Body *string `type:"string"`
7654
7655	// Is this is a transactional SMS message, otherwise a promotional message.
7656	MessageType *string `type:"string" enum:"MessageType"`
7657
7658	// Sender ID of sent message.
7659	SenderId *string `type:"string"`
7660}
7661
7662// String returns the string representation
7663func (s CampaignSmsMessage) String() string {
7664	return awsutil.Prettify(s)
7665}
7666
7667// GoString returns the string representation
7668func (s CampaignSmsMessage) GoString() string {
7669	return s.String()
7670}
7671
7672// SetBody sets the Body field's value.
7673func (s *CampaignSmsMessage) SetBody(v string) *CampaignSmsMessage {
7674	s.Body = &v
7675	return s
7676}
7677
7678// SetMessageType sets the MessageType field's value.
7679func (s *CampaignSmsMessage) SetMessageType(v string) *CampaignSmsMessage {
7680	s.MessageType = &v
7681	return s
7682}
7683
7684// SetSenderId sets the SenderId field's value.
7685func (s *CampaignSmsMessage) SetSenderId(v string) *CampaignSmsMessage {
7686	s.SenderId = &v
7687	return s
7688}
7689
7690// State of the Campaign
7691// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignState
7692type CampaignState struct {
7693	_ struct{} `type:"structure"`
7694
7695	// The status of the campaign, or the status of a treatment that belongs to
7696	// an A/B test campaign.Valid values: SCHEDULED, EXECUTING, PENDING_NEXT_RUN,
7697	// COMPLETED, PAUSED
7698	CampaignStatus *string `type:"string" enum:"CampaignStatus"`
7699}
7700
7701// String returns the string representation
7702func (s CampaignState) String() string {
7703	return awsutil.Prettify(s)
7704}
7705
7706// GoString returns the string representation
7707func (s CampaignState) GoString() string {
7708	return s.String()
7709}
7710
7711// SetCampaignStatus sets the CampaignStatus field's value.
7712func (s *CampaignState) SetCampaignStatus(v string) *CampaignState {
7713	s.CampaignStatus = &v
7714	return s
7715}
7716
7717// List of available campaigns.
7718// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CampaignsResponse
7719type CampaignsResponse struct {
7720	_ struct{} `type:"structure"`
7721
7722	// A list of campaigns.
7723	Item []*CampaignResponse `type:"list"`
7724
7725	// The string that you use in a subsequent request to get the next page of results
7726	// in a paginated response.
7727	NextToken *string `type:"string"`
7728}
7729
7730// String returns the string representation
7731func (s CampaignsResponse) String() string {
7732	return awsutil.Prettify(s)
7733}
7734
7735// GoString returns the string representation
7736func (s CampaignsResponse) GoString() string {
7737	return s.String()
7738}
7739
7740// SetItem sets the Item field's value.
7741func (s *CampaignsResponse) SetItem(v []*CampaignResponse) *CampaignsResponse {
7742	s.Item = v
7743	return s
7744}
7745
7746// SetNextToken sets the NextToken field's value.
7747func (s *CampaignsResponse) SetNextToken(v string) *CampaignsResponse {
7748	s.NextToken = &v
7749	return s
7750}
7751
7752// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateAppRequest
7753type CreateAppInput struct {
7754	_ struct{} `type:"structure" payload:"CreateApplicationRequest"`
7755
7756	// Application Request.
7757	//
7758	// CreateApplicationRequest is a required field
7759	CreateApplicationRequest *CreateApplicationRequest `type:"structure" required:"true"`
7760}
7761
7762// String returns the string representation
7763func (s CreateAppInput) String() string {
7764	return awsutil.Prettify(s)
7765}
7766
7767// GoString returns the string representation
7768func (s CreateAppInput) GoString() string {
7769	return s.String()
7770}
7771
7772// Validate inspects the fields of the type to determine if they are valid.
7773func (s *CreateAppInput) Validate() error {
7774	invalidParams := request.ErrInvalidParams{Context: "CreateAppInput"}
7775	if s.CreateApplicationRequest == nil {
7776		invalidParams.Add(request.NewErrParamRequired("CreateApplicationRequest"))
7777	}
7778
7779	if invalidParams.Len() > 0 {
7780		return invalidParams
7781	}
7782	return nil
7783}
7784
7785// SetCreateApplicationRequest sets the CreateApplicationRequest field's value.
7786func (s *CreateAppInput) SetCreateApplicationRequest(v *CreateApplicationRequest) *CreateAppInput {
7787	s.CreateApplicationRequest = v
7788	return s
7789}
7790
7791// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateAppResponse
7792type CreateAppOutput struct {
7793	_ struct{} `type:"structure" payload:"ApplicationResponse"`
7794
7795	// Application Response.
7796	//
7797	// ApplicationResponse is a required field
7798	ApplicationResponse *ApplicationResponse `type:"structure" required:"true"`
7799}
7800
7801// String returns the string representation
7802func (s CreateAppOutput) String() string {
7803	return awsutil.Prettify(s)
7804}
7805
7806// GoString returns the string representation
7807func (s CreateAppOutput) GoString() string {
7808	return s.String()
7809}
7810
7811// SetApplicationResponse sets the ApplicationResponse field's value.
7812func (s *CreateAppOutput) SetApplicationResponse(v *ApplicationResponse) *CreateAppOutput {
7813	s.ApplicationResponse = v
7814	return s
7815}
7816
7817// Application Request.
7818// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateApplicationRequest
7819type CreateApplicationRequest struct {
7820	_ struct{} `type:"structure"`
7821
7822	// The display name of the application. Used in the Amazon Pinpoint console.
7823	Name *string `type:"string"`
7824}
7825
7826// String returns the string representation
7827func (s CreateApplicationRequest) String() string {
7828	return awsutil.Prettify(s)
7829}
7830
7831// GoString returns the string representation
7832func (s CreateApplicationRequest) GoString() string {
7833	return s.String()
7834}
7835
7836// SetName sets the Name field's value.
7837func (s *CreateApplicationRequest) SetName(v string) *CreateApplicationRequest {
7838	s.Name = &v
7839	return s
7840}
7841
7842// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateCampaignRequest
7843type CreateCampaignInput struct {
7844	_ struct{} `type:"structure" payload:"WriteCampaignRequest"`
7845
7846	// ApplicationId is a required field
7847	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
7848
7849	// Used to create a campaign.
7850	//
7851	// WriteCampaignRequest is a required field
7852	WriteCampaignRequest *WriteCampaignRequest `type:"structure" required:"true"`
7853}
7854
7855// String returns the string representation
7856func (s CreateCampaignInput) String() string {
7857	return awsutil.Prettify(s)
7858}
7859
7860// GoString returns the string representation
7861func (s CreateCampaignInput) GoString() string {
7862	return s.String()
7863}
7864
7865// Validate inspects the fields of the type to determine if they are valid.
7866func (s *CreateCampaignInput) Validate() error {
7867	invalidParams := request.ErrInvalidParams{Context: "CreateCampaignInput"}
7868	if s.ApplicationId == nil {
7869		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
7870	}
7871	if s.WriteCampaignRequest == nil {
7872		invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest"))
7873	}
7874
7875	if invalidParams.Len() > 0 {
7876		return invalidParams
7877	}
7878	return nil
7879}
7880
7881// SetApplicationId sets the ApplicationId field's value.
7882func (s *CreateCampaignInput) SetApplicationId(v string) *CreateCampaignInput {
7883	s.ApplicationId = &v
7884	return s
7885}
7886
7887// SetWriteCampaignRequest sets the WriteCampaignRequest field's value.
7888func (s *CreateCampaignInput) SetWriteCampaignRequest(v *WriteCampaignRequest) *CreateCampaignInput {
7889	s.WriteCampaignRequest = v
7890	return s
7891}
7892
7893// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateCampaignResponse
7894type CreateCampaignOutput struct {
7895	_ struct{} `type:"structure" payload:"CampaignResponse"`
7896
7897	// Campaign definition
7898	//
7899	// CampaignResponse is a required field
7900	CampaignResponse *CampaignResponse `type:"structure" required:"true"`
7901}
7902
7903// String returns the string representation
7904func (s CreateCampaignOutput) String() string {
7905	return awsutil.Prettify(s)
7906}
7907
7908// GoString returns the string representation
7909func (s CreateCampaignOutput) GoString() string {
7910	return s.String()
7911}
7912
7913// SetCampaignResponse sets the CampaignResponse field's value.
7914func (s *CreateCampaignOutput) SetCampaignResponse(v *CampaignResponse) *CreateCampaignOutput {
7915	s.CampaignResponse = v
7916	return s
7917}
7918
7919// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateImportJobRequest
7920type CreateImportJobInput struct {
7921	_ struct{} `type:"structure" payload:"ImportJobRequest"`
7922
7923	// ApplicationId is a required field
7924	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
7925
7926	// ImportJobRequest is a required field
7927	ImportJobRequest *ImportJobRequest `type:"structure" required:"true"`
7928}
7929
7930// String returns the string representation
7931func (s CreateImportJobInput) String() string {
7932	return awsutil.Prettify(s)
7933}
7934
7935// GoString returns the string representation
7936func (s CreateImportJobInput) GoString() string {
7937	return s.String()
7938}
7939
7940// Validate inspects the fields of the type to determine if they are valid.
7941func (s *CreateImportJobInput) Validate() error {
7942	invalidParams := request.ErrInvalidParams{Context: "CreateImportJobInput"}
7943	if s.ApplicationId == nil {
7944		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
7945	}
7946	if s.ImportJobRequest == nil {
7947		invalidParams.Add(request.NewErrParamRequired("ImportJobRequest"))
7948	}
7949
7950	if invalidParams.Len() > 0 {
7951		return invalidParams
7952	}
7953	return nil
7954}
7955
7956// SetApplicationId sets the ApplicationId field's value.
7957func (s *CreateImportJobInput) SetApplicationId(v string) *CreateImportJobInput {
7958	s.ApplicationId = &v
7959	return s
7960}
7961
7962// SetImportJobRequest sets the ImportJobRequest field's value.
7963func (s *CreateImportJobInput) SetImportJobRequest(v *ImportJobRequest) *CreateImportJobInput {
7964	s.ImportJobRequest = v
7965	return s
7966}
7967
7968// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateImportJobResponse
7969type CreateImportJobOutput struct {
7970	_ struct{} `type:"structure" payload:"ImportJobResponse"`
7971
7972	// ImportJobResponse is a required field
7973	ImportJobResponse *ImportJobResponse `type:"structure" required:"true"`
7974}
7975
7976// String returns the string representation
7977func (s CreateImportJobOutput) String() string {
7978	return awsutil.Prettify(s)
7979}
7980
7981// GoString returns the string representation
7982func (s CreateImportJobOutput) GoString() string {
7983	return s.String()
7984}
7985
7986// SetImportJobResponse sets the ImportJobResponse field's value.
7987func (s *CreateImportJobOutput) SetImportJobResponse(v *ImportJobResponse) *CreateImportJobOutput {
7988	s.ImportJobResponse = v
7989	return s
7990}
7991
7992// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateSegmentRequest
7993type CreateSegmentInput struct {
7994	_ struct{} `type:"structure" payload:"WriteSegmentRequest"`
7995
7996	// ApplicationId is a required field
7997	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
7998
7999	// Segment definition.
8000	//
8001	// WriteSegmentRequest is a required field
8002	WriteSegmentRequest *WriteSegmentRequest `type:"structure" required:"true"`
8003}
8004
8005// String returns the string representation
8006func (s CreateSegmentInput) String() string {
8007	return awsutil.Prettify(s)
8008}
8009
8010// GoString returns the string representation
8011func (s CreateSegmentInput) GoString() string {
8012	return s.String()
8013}
8014
8015// Validate inspects the fields of the type to determine if they are valid.
8016func (s *CreateSegmentInput) Validate() error {
8017	invalidParams := request.ErrInvalidParams{Context: "CreateSegmentInput"}
8018	if s.ApplicationId == nil {
8019		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8020	}
8021	if s.WriteSegmentRequest == nil {
8022		invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest"))
8023	}
8024
8025	if invalidParams.Len() > 0 {
8026		return invalidParams
8027	}
8028	return nil
8029}
8030
8031// SetApplicationId sets the ApplicationId field's value.
8032func (s *CreateSegmentInput) SetApplicationId(v string) *CreateSegmentInput {
8033	s.ApplicationId = &v
8034	return s
8035}
8036
8037// SetWriteSegmentRequest sets the WriteSegmentRequest field's value.
8038func (s *CreateSegmentInput) SetWriteSegmentRequest(v *WriteSegmentRequest) *CreateSegmentInput {
8039	s.WriteSegmentRequest = v
8040	return s
8041}
8042
8043// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/CreateSegmentResponse
8044type CreateSegmentOutput struct {
8045	_ struct{} `type:"structure" payload:"SegmentResponse"`
8046
8047	// Segment definition.
8048	//
8049	// SegmentResponse is a required field
8050	SegmentResponse *SegmentResponse `type:"structure" required:"true"`
8051}
8052
8053// String returns the string representation
8054func (s CreateSegmentOutput) String() string {
8055	return awsutil.Prettify(s)
8056}
8057
8058// GoString returns the string representation
8059func (s CreateSegmentOutput) GoString() string {
8060	return s.String()
8061}
8062
8063// SetSegmentResponse sets the SegmentResponse field's value.
8064func (s *CreateSegmentOutput) SetSegmentResponse(v *SegmentResponse) *CreateSegmentOutput {
8065	s.SegmentResponse = v
8066	return s
8067}
8068
8069// Default Message across push notification, email, and sms.
8070// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DefaultMessage
8071type DefaultMessage struct {
8072	_ struct{} `type:"structure"`
8073
8074	// The message body of the notification, the email body or the text message.
8075	Body *string `type:"string"`
8076
8077	Substitutions map[string][]*string `type:"map"`
8078}
8079
8080// String returns the string representation
8081func (s DefaultMessage) String() string {
8082	return awsutil.Prettify(s)
8083}
8084
8085// GoString returns the string representation
8086func (s DefaultMessage) GoString() string {
8087	return s.String()
8088}
8089
8090// SetBody sets the Body field's value.
8091func (s *DefaultMessage) SetBody(v string) *DefaultMessage {
8092	s.Body = &v
8093	return s
8094}
8095
8096// SetSubstitutions sets the Substitutions field's value.
8097func (s *DefaultMessage) SetSubstitutions(v map[string][]*string) *DefaultMessage {
8098	s.Substitutions = v
8099	return s
8100}
8101
8102// Default Push Notification Message.
8103// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DefaultPushNotificationMessage
8104type DefaultPushNotificationMessage struct {
8105	_ struct{} `type:"structure"`
8106
8107	// The action that occurs if the user taps a push notification delivered by
8108	// the campaign: OPEN_APP - Your app launches, or it becomes the foreground
8109	// app if it has been sent to the background. This is the default action. DEEP_LINK
8110	// - Uses deep linking features in iOS and Android to open your app and display
8111	// a designated user interface within the app. URL - The default mobile browser
8112	// on the user's device launches and opens a web page at the URL you specify.
8113	// Possible values include: OPEN_APP | DEEP_LINK | URL
8114	Action *string `type:"string" enum:"Action"`
8115
8116	// The message body of the notification, the email body or the text message.
8117	Body *string `type:"string"`
8118
8119	Data map[string]*string `type:"map"`
8120
8121	// Indicates if the message should display on the users device. Silent pushes
8122	// can be used for Remote Configuration and Phone Home use cases.
8123	SilentPush *bool `type:"boolean"`
8124
8125	Substitutions map[string][]*string `type:"map"`
8126
8127	// The message title that displays above the message on the user's device.
8128	Title *string `type:"string"`
8129
8130	// The URL to open in the user's mobile browser. Used if the value for Action
8131	// is URL.
8132	Url *string `type:"string"`
8133}
8134
8135// String returns the string representation
8136func (s DefaultPushNotificationMessage) String() string {
8137	return awsutil.Prettify(s)
8138}
8139
8140// GoString returns the string representation
8141func (s DefaultPushNotificationMessage) GoString() string {
8142	return s.String()
8143}
8144
8145// SetAction sets the Action field's value.
8146func (s *DefaultPushNotificationMessage) SetAction(v string) *DefaultPushNotificationMessage {
8147	s.Action = &v
8148	return s
8149}
8150
8151// SetBody sets the Body field's value.
8152func (s *DefaultPushNotificationMessage) SetBody(v string) *DefaultPushNotificationMessage {
8153	s.Body = &v
8154	return s
8155}
8156
8157// SetData sets the Data field's value.
8158func (s *DefaultPushNotificationMessage) SetData(v map[string]*string) *DefaultPushNotificationMessage {
8159	s.Data = v
8160	return s
8161}
8162
8163// SetSilentPush sets the SilentPush field's value.
8164func (s *DefaultPushNotificationMessage) SetSilentPush(v bool) *DefaultPushNotificationMessage {
8165	s.SilentPush = &v
8166	return s
8167}
8168
8169// SetSubstitutions sets the Substitutions field's value.
8170func (s *DefaultPushNotificationMessage) SetSubstitutions(v map[string][]*string) *DefaultPushNotificationMessage {
8171	s.Substitutions = v
8172	return s
8173}
8174
8175// SetTitle sets the Title field's value.
8176func (s *DefaultPushNotificationMessage) SetTitle(v string) *DefaultPushNotificationMessage {
8177	s.Title = &v
8178	return s
8179}
8180
8181// SetUrl sets the Url field's value.
8182func (s *DefaultPushNotificationMessage) SetUrl(v string) *DefaultPushNotificationMessage {
8183	s.Url = &v
8184	return s
8185}
8186
8187// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAdmChannelRequest
8188type DeleteAdmChannelInput struct {
8189	_ struct{} `type:"structure"`
8190
8191	// ApplicationId is a required field
8192	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8193}
8194
8195// String returns the string representation
8196func (s DeleteAdmChannelInput) String() string {
8197	return awsutil.Prettify(s)
8198}
8199
8200// GoString returns the string representation
8201func (s DeleteAdmChannelInput) GoString() string {
8202	return s.String()
8203}
8204
8205// Validate inspects the fields of the type to determine if they are valid.
8206func (s *DeleteAdmChannelInput) Validate() error {
8207	invalidParams := request.ErrInvalidParams{Context: "DeleteAdmChannelInput"}
8208	if s.ApplicationId == nil {
8209		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8210	}
8211
8212	if invalidParams.Len() > 0 {
8213		return invalidParams
8214	}
8215	return nil
8216}
8217
8218// SetApplicationId sets the ApplicationId field's value.
8219func (s *DeleteAdmChannelInput) SetApplicationId(v string) *DeleteAdmChannelInput {
8220	s.ApplicationId = &v
8221	return s
8222}
8223
8224// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAdmChannelResponse
8225type DeleteAdmChannelOutput struct {
8226	_ struct{} `type:"structure" payload:"ADMChannelResponse"`
8227
8228	// Amazon Device Messaging channel definition.
8229	//
8230	// ADMChannelResponse is a required field
8231	ADMChannelResponse *ADMChannelResponse `type:"structure" required:"true"`
8232}
8233
8234// String returns the string representation
8235func (s DeleteAdmChannelOutput) String() string {
8236	return awsutil.Prettify(s)
8237}
8238
8239// GoString returns the string representation
8240func (s DeleteAdmChannelOutput) GoString() string {
8241	return s.String()
8242}
8243
8244// SetADMChannelResponse sets the ADMChannelResponse field's value.
8245func (s *DeleteAdmChannelOutput) SetADMChannelResponse(v *ADMChannelResponse) *DeleteAdmChannelOutput {
8246	s.ADMChannelResponse = v
8247	return s
8248}
8249
8250// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsChannelRequest
8251type DeleteApnsChannelInput struct {
8252	_ struct{} `type:"structure"`
8253
8254	// ApplicationId is a required field
8255	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8256}
8257
8258// String returns the string representation
8259func (s DeleteApnsChannelInput) String() string {
8260	return awsutil.Prettify(s)
8261}
8262
8263// GoString returns the string representation
8264func (s DeleteApnsChannelInput) GoString() string {
8265	return s.String()
8266}
8267
8268// Validate inspects the fields of the type to determine if they are valid.
8269func (s *DeleteApnsChannelInput) Validate() error {
8270	invalidParams := request.ErrInvalidParams{Context: "DeleteApnsChannelInput"}
8271	if s.ApplicationId == nil {
8272		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8273	}
8274
8275	if invalidParams.Len() > 0 {
8276		return invalidParams
8277	}
8278	return nil
8279}
8280
8281// SetApplicationId sets the ApplicationId field's value.
8282func (s *DeleteApnsChannelInput) SetApplicationId(v string) *DeleteApnsChannelInput {
8283	s.ApplicationId = &v
8284	return s
8285}
8286
8287// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsChannelResponse
8288type DeleteApnsChannelOutput struct {
8289	_ struct{} `type:"structure" payload:"APNSChannelResponse"`
8290
8291	// Apple Distribution Push Notification Service channel definition.
8292	//
8293	// APNSChannelResponse is a required field
8294	APNSChannelResponse *APNSChannelResponse `type:"structure" required:"true"`
8295}
8296
8297// String returns the string representation
8298func (s DeleteApnsChannelOutput) String() string {
8299	return awsutil.Prettify(s)
8300}
8301
8302// GoString returns the string representation
8303func (s DeleteApnsChannelOutput) GoString() string {
8304	return s.String()
8305}
8306
8307// SetAPNSChannelResponse sets the APNSChannelResponse field's value.
8308func (s *DeleteApnsChannelOutput) SetAPNSChannelResponse(v *APNSChannelResponse) *DeleteApnsChannelOutput {
8309	s.APNSChannelResponse = v
8310	return s
8311}
8312
8313// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsSandboxChannelRequest
8314type DeleteApnsSandboxChannelInput struct {
8315	_ struct{} `type:"structure"`
8316
8317	// ApplicationId is a required field
8318	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8319}
8320
8321// String returns the string representation
8322func (s DeleteApnsSandboxChannelInput) String() string {
8323	return awsutil.Prettify(s)
8324}
8325
8326// GoString returns the string representation
8327func (s DeleteApnsSandboxChannelInput) GoString() string {
8328	return s.String()
8329}
8330
8331// Validate inspects the fields of the type to determine if they are valid.
8332func (s *DeleteApnsSandboxChannelInput) Validate() error {
8333	invalidParams := request.ErrInvalidParams{Context: "DeleteApnsSandboxChannelInput"}
8334	if s.ApplicationId == nil {
8335		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8336	}
8337
8338	if invalidParams.Len() > 0 {
8339		return invalidParams
8340	}
8341	return nil
8342}
8343
8344// SetApplicationId sets the ApplicationId field's value.
8345func (s *DeleteApnsSandboxChannelInput) SetApplicationId(v string) *DeleteApnsSandboxChannelInput {
8346	s.ApplicationId = &v
8347	return s
8348}
8349
8350// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsSandboxChannelResponse
8351type DeleteApnsSandboxChannelOutput struct {
8352	_ struct{} `type:"structure" payload:"APNSSandboxChannelResponse"`
8353
8354	// Apple Development Push Notification Service channel definition.
8355	//
8356	// APNSSandboxChannelResponse is a required field
8357	APNSSandboxChannelResponse *APNSSandboxChannelResponse `type:"structure" required:"true"`
8358}
8359
8360// String returns the string representation
8361func (s DeleteApnsSandboxChannelOutput) String() string {
8362	return awsutil.Prettify(s)
8363}
8364
8365// GoString returns the string representation
8366func (s DeleteApnsSandboxChannelOutput) GoString() string {
8367	return s.String()
8368}
8369
8370// SetAPNSSandboxChannelResponse sets the APNSSandboxChannelResponse field's value.
8371func (s *DeleteApnsSandboxChannelOutput) SetAPNSSandboxChannelResponse(v *APNSSandboxChannelResponse) *DeleteApnsSandboxChannelOutput {
8372	s.APNSSandboxChannelResponse = v
8373	return s
8374}
8375
8376// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipChannelRequest
8377type DeleteApnsVoipChannelInput struct {
8378	_ struct{} `type:"structure"`
8379
8380	// ApplicationId is a required field
8381	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8382}
8383
8384// String returns the string representation
8385func (s DeleteApnsVoipChannelInput) String() string {
8386	return awsutil.Prettify(s)
8387}
8388
8389// GoString returns the string representation
8390func (s DeleteApnsVoipChannelInput) GoString() string {
8391	return s.String()
8392}
8393
8394// Validate inspects the fields of the type to determine if they are valid.
8395func (s *DeleteApnsVoipChannelInput) Validate() error {
8396	invalidParams := request.ErrInvalidParams{Context: "DeleteApnsVoipChannelInput"}
8397	if s.ApplicationId == nil {
8398		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8399	}
8400
8401	if invalidParams.Len() > 0 {
8402		return invalidParams
8403	}
8404	return nil
8405}
8406
8407// SetApplicationId sets the ApplicationId field's value.
8408func (s *DeleteApnsVoipChannelInput) SetApplicationId(v string) *DeleteApnsVoipChannelInput {
8409	s.ApplicationId = &v
8410	return s
8411}
8412
8413// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipChannelResponse
8414type DeleteApnsVoipChannelOutput struct {
8415	_ struct{} `type:"structure" payload:"APNSVoipChannelResponse"`
8416
8417	// Apple VOIP Push Notification Service channel definition.
8418	//
8419	// APNSVoipChannelResponse is a required field
8420	APNSVoipChannelResponse *APNSVoipChannelResponse `type:"structure" required:"true"`
8421}
8422
8423// String returns the string representation
8424func (s DeleteApnsVoipChannelOutput) String() string {
8425	return awsutil.Prettify(s)
8426}
8427
8428// GoString returns the string representation
8429func (s DeleteApnsVoipChannelOutput) GoString() string {
8430	return s.String()
8431}
8432
8433// SetAPNSVoipChannelResponse sets the APNSVoipChannelResponse field's value.
8434func (s *DeleteApnsVoipChannelOutput) SetAPNSVoipChannelResponse(v *APNSVoipChannelResponse) *DeleteApnsVoipChannelOutput {
8435	s.APNSVoipChannelResponse = v
8436	return s
8437}
8438
8439// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipSandboxChannelRequest
8440type DeleteApnsVoipSandboxChannelInput struct {
8441	_ struct{} `type:"structure"`
8442
8443	// ApplicationId is a required field
8444	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8445}
8446
8447// String returns the string representation
8448func (s DeleteApnsVoipSandboxChannelInput) String() string {
8449	return awsutil.Prettify(s)
8450}
8451
8452// GoString returns the string representation
8453func (s DeleteApnsVoipSandboxChannelInput) GoString() string {
8454	return s.String()
8455}
8456
8457// Validate inspects the fields of the type to determine if they are valid.
8458func (s *DeleteApnsVoipSandboxChannelInput) Validate() error {
8459	invalidParams := request.ErrInvalidParams{Context: "DeleteApnsVoipSandboxChannelInput"}
8460	if s.ApplicationId == nil {
8461		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8462	}
8463
8464	if invalidParams.Len() > 0 {
8465		return invalidParams
8466	}
8467	return nil
8468}
8469
8470// SetApplicationId sets the ApplicationId field's value.
8471func (s *DeleteApnsVoipSandboxChannelInput) SetApplicationId(v string) *DeleteApnsVoipSandboxChannelInput {
8472	s.ApplicationId = &v
8473	return s
8474}
8475
8476// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteApnsVoipSandboxChannelResponse
8477type DeleteApnsVoipSandboxChannelOutput struct {
8478	_ struct{} `type:"structure" payload:"APNSVoipSandboxChannelResponse"`
8479
8480	// Apple VOIP Developer Push Notification Service channel definition.
8481	//
8482	// APNSVoipSandboxChannelResponse is a required field
8483	APNSVoipSandboxChannelResponse *APNSVoipSandboxChannelResponse `type:"structure" required:"true"`
8484}
8485
8486// String returns the string representation
8487func (s DeleteApnsVoipSandboxChannelOutput) String() string {
8488	return awsutil.Prettify(s)
8489}
8490
8491// GoString returns the string representation
8492func (s DeleteApnsVoipSandboxChannelOutput) GoString() string {
8493	return s.String()
8494}
8495
8496// SetAPNSVoipSandboxChannelResponse sets the APNSVoipSandboxChannelResponse field's value.
8497func (s *DeleteApnsVoipSandboxChannelOutput) SetAPNSVoipSandboxChannelResponse(v *APNSVoipSandboxChannelResponse) *DeleteApnsVoipSandboxChannelOutput {
8498	s.APNSVoipSandboxChannelResponse = v
8499	return s
8500}
8501
8502// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAppRequest
8503type DeleteAppInput struct {
8504	_ struct{} `type:"structure"`
8505
8506	// ApplicationId is a required field
8507	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8508}
8509
8510// String returns the string representation
8511func (s DeleteAppInput) String() string {
8512	return awsutil.Prettify(s)
8513}
8514
8515// GoString returns the string representation
8516func (s DeleteAppInput) GoString() string {
8517	return s.String()
8518}
8519
8520// Validate inspects the fields of the type to determine if they are valid.
8521func (s *DeleteAppInput) Validate() error {
8522	invalidParams := request.ErrInvalidParams{Context: "DeleteAppInput"}
8523	if s.ApplicationId == nil {
8524		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8525	}
8526
8527	if invalidParams.Len() > 0 {
8528		return invalidParams
8529	}
8530	return nil
8531}
8532
8533// SetApplicationId sets the ApplicationId field's value.
8534func (s *DeleteAppInput) SetApplicationId(v string) *DeleteAppInput {
8535	s.ApplicationId = &v
8536	return s
8537}
8538
8539// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteAppResponse
8540type DeleteAppOutput struct {
8541	_ struct{} `type:"structure" payload:"ApplicationResponse"`
8542
8543	// Application Response.
8544	//
8545	// ApplicationResponse is a required field
8546	ApplicationResponse *ApplicationResponse `type:"structure" required:"true"`
8547}
8548
8549// String returns the string representation
8550func (s DeleteAppOutput) String() string {
8551	return awsutil.Prettify(s)
8552}
8553
8554// GoString returns the string representation
8555func (s DeleteAppOutput) GoString() string {
8556	return s.String()
8557}
8558
8559// SetApplicationResponse sets the ApplicationResponse field's value.
8560func (s *DeleteAppOutput) SetApplicationResponse(v *ApplicationResponse) *DeleteAppOutput {
8561	s.ApplicationResponse = v
8562	return s
8563}
8564
8565// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteBaiduChannelRequest
8566type DeleteBaiduChannelInput struct {
8567	_ struct{} `type:"structure"`
8568
8569	// ApplicationId is a required field
8570	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8571}
8572
8573// String returns the string representation
8574func (s DeleteBaiduChannelInput) String() string {
8575	return awsutil.Prettify(s)
8576}
8577
8578// GoString returns the string representation
8579func (s DeleteBaiduChannelInput) GoString() string {
8580	return s.String()
8581}
8582
8583// Validate inspects the fields of the type to determine if they are valid.
8584func (s *DeleteBaiduChannelInput) Validate() error {
8585	invalidParams := request.ErrInvalidParams{Context: "DeleteBaiduChannelInput"}
8586	if s.ApplicationId == nil {
8587		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8588	}
8589
8590	if invalidParams.Len() > 0 {
8591		return invalidParams
8592	}
8593	return nil
8594}
8595
8596// SetApplicationId sets the ApplicationId field's value.
8597func (s *DeleteBaiduChannelInput) SetApplicationId(v string) *DeleteBaiduChannelInput {
8598	s.ApplicationId = &v
8599	return s
8600}
8601
8602// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteBaiduChannelResponse
8603type DeleteBaiduChannelOutput struct {
8604	_ struct{} `type:"structure" payload:"BaiduChannelResponse"`
8605
8606	// Baidu Cloud Messaging channel definition
8607	//
8608	// BaiduChannelResponse is a required field
8609	BaiduChannelResponse *BaiduChannelResponse `type:"structure" required:"true"`
8610}
8611
8612// String returns the string representation
8613func (s DeleteBaiduChannelOutput) String() string {
8614	return awsutil.Prettify(s)
8615}
8616
8617// GoString returns the string representation
8618func (s DeleteBaiduChannelOutput) GoString() string {
8619	return s.String()
8620}
8621
8622// SetBaiduChannelResponse sets the BaiduChannelResponse field's value.
8623func (s *DeleteBaiduChannelOutput) SetBaiduChannelResponse(v *BaiduChannelResponse) *DeleteBaiduChannelOutput {
8624	s.BaiduChannelResponse = v
8625	return s
8626}
8627
8628// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteCampaignRequest
8629type DeleteCampaignInput struct {
8630	_ struct{} `type:"structure"`
8631
8632	// ApplicationId is a required field
8633	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8634
8635	// CampaignId is a required field
8636	CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"`
8637}
8638
8639// String returns the string representation
8640func (s DeleteCampaignInput) String() string {
8641	return awsutil.Prettify(s)
8642}
8643
8644// GoString returns the string representation
8645func (s DeleteCampaignInput) GoString() string {
8646	return s.String()
8647}
8648
8649// Validate inspects the fields of the type to determine if they are valid.
8650func (s *DeleteCampaignInput) Validate() error {
8651	invalidParams := request.ErrInvalidParams{Context: "DeleteCampaignInput"}
8652	if s.ApplicationId == nil {
8653		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8654	}
8655	if s.CampaignId == nil {
8656		invalidParams.Add(request.NewErrParamRequired("CampaignId"))
8657	}
8658
8659	if invalidParams.Len() > 0 {
8660		return invalidParams
8661	}
8662	return nil
8663}
8664
8665// SetApplicationId sets the ApplicationId field's value.
8666func (s *DeleteCampaignInput) SetApplicationId(v string) *DeleteCampaignInput {
8667	s.ApplicationId = &v
8668	return s
8669}
8670
8671// SetCampaignId sets the CampaignId field's value.
8672func (s *DeleteCampaignInput) SetCampaignId(v string) *DeleteCampaignInput {
8673	s.CampaignId = &v
8674	return s
8675}
8676
8677// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteCampaignResponse
8678type DeleteCampaignOutput struct {
8679	_ struct{} `type:"structure" payload:"CampaignResponse"`
8680
8681	// Campaign definition
8682	//
8683	// CampaignResponse is a required field
8684	CampaignResponse *CampaignResponse `type:"structure" required:"true"`
8685}
8686
8687// String returns the string representation
8688func (s DeleteCampaignOutput) String() string {
8689	return awsutil.Prettify(s)
8690}
8691
8692// GoString returns the string representation
8693func (s DeleteCampaignOutput) GoString() string {
8694	return s.String()
8695}
8696
8697// SetCampaignResponse sets the CampaignResponse field's value.
8698func (s *DeleteCampaignOutput) SetCampaignResponse(v *CampaignResponse) *DeleteCampaignOutput {
8699	s.CampaignResponse = v
8700	return s
8701}
8702
8703// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEmailChannelRequest
8704type DeleteEmailChannelInput struct {
8705	_ struct{} `type:"structure"`
8706
8707	// ApplicationId is a required field
8708	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8709}
8710
8711// String returns the string representation
8712func (s DeleteEmailChannelInput) String() string {
8713	return awsutil.Prettify(s)
8714}
8715
8716// GoString returns the string representation
8717func (s DeleteEmailChannelInput) GoString() string {
8718	return s.String()
8719}
8720
8721// Validate inspects the fields of the type to determine if they are valid.
8722func (s *DeleteEmailChannelInput) Validate() error {
8723	invalidParams := request.ErrInvalidParams{Context: "DeleteEmailChannelInput"}
8724	if s.ApplicationId == nil {
8725		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8726	}
8727
8728	if invalidParams.Len() > 0 {
8729		return invalidParams
8730	}
8731	return nil
8732}
8733
8734// SetApplicationId sets the ApplicationId field's value.
8735func (s *DeleteEmailChannelInput) SetApplicationId(v string) *DeleteEmailChannelInput {
8736	s.ApplicationId = &v
8737	return s
8738}
8739
8740// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEmailChannelResponse
8741type DeleteEmailChannelOutput struct {
8742	_ struct{} `type:"structure" payload:"EmailChannelResponse"`
8743
8744	// Email Channel Response.
8745	//
8746	// EmailChannelResponse is a required field
8747	EmailChannelResponse *EmailChannelResponse `type:"structure" required:"true"`
8748}
8749
8750// String returns the string representation
8751func (s DeleteEmailChannelOutput) String() string {
8752	return awsutil.Prettify(s)
8753}
8754
8755// GoString returns the string representation
8756func (s DeleteEmailChannelOutput) GoString() string {
8757	return s.String()
8758}
8759
8760// SetEmailChannelResponse sets the EmailChannelResponse field's value.
8761func (s *DeleteEmailChannelOutput) SetEmailChannelResponse(v *EmailChannelResponse) *DeleteEmailChannelOutput {
8762	s.EmailChannelResponse = v
8763	return s
8764}
8765
8766// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEventStreamRequest
8767type DeleteEventStreamInput struct {
8768	_ struct{} `type:"structure"`
8769
8770	// Application Id.
8771	//
8772	// ApplicationId is a required field
8773	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8774}
8775
8776// String returns the string representation
8777func (s DeleteEventStreamInput) String() string {
8778	return awsutil.Prettify(s)
8779}
8780
8781// GoString returns the string representation
8782func (s DeleteEventStreamInput) GoString() string {
8783	return s.String()
8784}
8785
8786// Validate inspects the fields of the type to determine if they are valid.
8787func (s *DeleteEventStreamInput) Validate() error {
8788	invalidParams := request.ErrInvalidParams{Context: "DeleteEventStreamInput"}
8789	if s.ApplicationId == nil {
8790		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8791	}
8792
8793	if invalidParams.Len() > 0 {
8794		return invalidParams
8795	}
8796	return nil
8797}
8798
8799// SetApplicationId sets the ApplicationId field's value.
8800func (s *DeleteEventStreamInput) SetApplicationId(v string) *DeleteEventStreamInput {
8801	s.ApplicationId = &v
8802	return s
8803}
8804
8805// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteEventStreamResponse
8806type DeleteEventStreamOutput struct {
8807	_ struct{} `type:"structure" payload:"EventStream"`
8808
8809	// Model for an event publishing subscription export.
8810	//
8811	// EventStream is a required field
8812	EventStream *EventStream `type:"structure" required:"true"`
8813}
8814
8815// String returns the string representation
8816func (s DeleteEventStreamOutput) String() string {
8817	return awsutil.Prettify(s)
8818}
8819
8820// GoString returns the string representation
8821func (s DeleteEventStreamOutput) GoString() string {
8822	return s.String()
8823}
8824
8825// SetEventStream sets the EventStream field's value.
8826func (s *DeleteEventStreamOutput) SetEventStream(v *EventStream) *DeleteEventStreamOutput {
8827	s.EventStream = v
8828	return s
8829}
8830
8831// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteGcmChannelRequest
8832type DeleteGcmChannelInput struct {
8833	_ struct{} `type:"structure"`
8834
8835	// ApplicationId is a required field
8836	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8837}
8838
8839// String returns the string representation
8840func (s DeleteGcmChannelInput) String() string {
8841	return awsutil.Prettify(s)
8842}
8843
8844// GoString returns the string representation
8845func (s DeleteGcmChannelInput) GoString() string {
8846	return s.String()
8847}
8848
8849// Validate inspects the fields of the type to determine if they are valid.
8850func (s *DeleteGcmChannelInput) Validate() error {
8851	invalidParams := request.ErrInvalidParams{Context: "DeleteGcmChannelInput"}
8852	if s.ApplicationId == nil {
8853		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8854	}
8855
8856	if invalidParams.Len() > 0 {
8857		return invalidParams
8858	}
8859	return nil
8860}
8861
8862// SetApplicationId sets the ApplicationId field's value.
8863func (s *DeleteGcmChannelInput) SetApplicationId(v string) *DeleteGcmChannelInput {
8864	s.ApplicationId = &v
8865	return s
8866}
8867
8868// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteGcmChannelResponse
8869type DeleteGcmChannelOutput struct {
8870	_ struct{} `type:"structure" payload:"GCMChannelResponse"`
8871
8872	// Google Cloud Messaging channel definition
8873	//
8874	// GCMChannelResponse is a required field
8875	GCMChannelResponse *GCMChannelResponse `type:"structure" required:"true"`
8876}
8877
8878// String returns the string representation
8879func (s DeleteGcmChannelOutput) String() string {
8880	return awsutil.Prettify(s)
8881}
8882
8883// GoString returns the string representation
8884func (s DeleteGcmChannelOutput) GoString() string {
8885	return s.String()
8886}
8887
8888// SetGCMChannelResponse sets the GCMChannelResponse field's value.
8889func (s *DeleteGcmChannelOutput) SetGCMChannelResponse(v *GCMChannelResponse) *DeleteGcmChannelOutput {
8890	s.GCMChannelResponse = v
8891	return s
8892}
8893
8894// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSegmentRequest
8895type DeleteSegmentInput struct {
8896	_ struct{} `type:"structure"`
8897
8898	// ApplicationId is a required field
8899	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8900
8901	// SegmentId is a required field
8902	SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"`
8903}
8904
8905// String returns the string representation
8906func (s DeleteSegmentInput) String() string {
8907	return awsutil.Prettify(s)
8908}
8909
8910// GoString returns the string representation
8911func (s DeleteSegmentInput) GoString() string {
8912	return s.String()
8913}
8914
8915// Validate inspects the fields of the type to determine if they are valid.
8916func (s *DeleteSegmentInput) Validate() error {
8917	invalidParams := request.ErrInvalidParams{Context: "DeleteSegmentInput"}
8918	if s.ApplicationId == nil {
8919		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8920	}
8921	if s.SegmentId == nil {
8922		invalidParams.Add(request.NewErrParamRequired("SegmentId"))
8923	}
8924
8925	if invalidParams.Len() > 0 {
8926		return invalidParams
8927	}
8928	return nil
8929}
8930
8931// SetApplicationId sets the ApplicationId field's value.
8932func (s *DeleteSegmentInput) SetApplicationId(v string) *DeleteSegmentInput {
8933	s.ApplicationId = &v
8934	return s
8935}
8936
8937// SetSegmentId sets the SegmentId field's value.
8938func (s *DeleteSegmentInput) SetSegmentId(v string) *DeleteSegmentInput {
8939	s.SegmentId = &v
8940	return s
8941}
8942
8943// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSegmentResponse
8944type DeleteSegmentOutput struct {
8945	_ struct{} `type:"structure" payload:"SegmentResponse"`
8946
8947	// Segment definition.
8948	//
8949	// SegmentResponse is a required field
8950	SegmentResponse *SegmentResponse `type:"structure" required:"true"`
8951}
8952
8953// String returns the string representation
8954func (s DeleteSegmentOutput) String() string {
8955	return awsutil.Prettify(s)
8956}
8957
8958// GoString returns the string representation
8959func (s DeleteSegmentOutput) GoString() string {
8960	return s.String()
8961}
8962
8963// SetSegmentResponse sets the SegmentResponse field's value.
8964func (s *DeleteSegmentOutput) SetSegmentResponse(v *SegmentResponse) *DeleteSegmentOutput {
8965	s.SegmentResponse = v
8966	return s
8967}
8968
8969// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSmsChannelRequest
8970type DeleteSmsChannelInput struct {
8971	_ struct{} `type:"structure"`
8972
8973	// ApplicationId is a required field
8974	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
8975}
8976
8977// String returns the string representation
8978func (s DeleteSmsChannelInput) String() string {
8979	return awsutil.Prettify(s)
8980}
8981
8982// GoString returns the string representation
8983func (s DeleteSmsChannelInput) GoString() string {
8984	return s.String()
8985}
8986
8987// Validate inspects the fields of the type to determine if they are valid.
8988func (s *DeleteSmsChannelInput) Validate() error {
8989	invalidParams := request.ErrInvalidParams{Context: "DeleteSmsChannelInput"}
8990	if s.ApplicationId == nil {
8991		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
8992	}
8993
8994	if invalidParams.Len() > 0 {
8995		return invalidParams
8996	}
8997	return nil
8998}
8999
9000// SetApplicationId sets the ApplicationId field's value.
9001func (s *DeleteSmsChannelInput) SetApplicationId(v string) *DeleteSmsChannelInput {
9002	s.ApplicationId = &v
9003	return s
9004}
9005
9006// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DeleteSmsChannelResponse
9007type DeleteSmsChannelOutput struct {
9008	_ struct{} `type:"structure" payload:"SMSChannelResponse"`
9009
9010	// SMS Channel Response.
9011	//
9012	// SMSChannelResponse is a required field
9013	SMSChannelResponse *SMSChannelResponse `type:"structure" required:"true"`
9014}
9015
9016// String returns the string representation
9017func (s DeleteSmsChannelOutput) String() string {
9018	return awsutil.Prettify(s)
9019}
9020
9021// GoString returns the string representation
9022func (s DeleteSmsChannelOutput) GoString() string {
9023	return s.String()
9024}
9025
9026// SetSMSChannelResponse sets the SMSChannelResponse field's value.
9027func (s *DeleteSmsChannelOutput) SetSMSChannelResponse(v *SMSChannelResponse) *DeleteSmsChannelOutput {
9028	s.SMSChannelResponse = v
9029	return s
9030}
9031
9032// The message configuration.
9033// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/DirectMessageConfiguration
9034type DirectMessageConfiguration struct {
9035	_ struct{} `type:"structure"`
9036
9037	// The message to ADM channels. Overrides the default push notification message.
9038	ADMMessage *ADMMessage `type:"structure"`
9039
9040	// The message to APNS channels. Overrides the default push notification message.
9041	APNSMessage *APNSMessage `type:"structure"`
9042
9043	// The message to Baidu GCM channels. Overrides the default push notification
9044	// message.
9045	BaiduMessage *BaiduMessage `type:"structure"`
9046
9047	// The default message for all channels.
9048	DefaultMessage *DefaultMessage `type:"structure"`
9049
9050	// The default push notification message for all push channels.
9051	DefaultPushNotificationMessage *DefaultPushNotificationMessage `type:"structure"`
9052
9053	// The message to GCM channels. Overrides the default push notification message.
9054	GCMMessage *GCMMessage `type:"structure"`
9055
9056	// The message to SMS channels. Overrides the default message.
9057	SMSMessage *SMSMessage `type:"structure"`
9058}
9059
9060// String returns the string representation
9061func (s DirectMessageConfiguration) String() string {
9062	return awsutil.Prettify(s)
9063}
9064
9065// GoString returns the string representation
9066func (s DirectMessageConfiguration) GoString() string {
9067	return s.String()
9068}
9069
9070// SetADMMessage sets the ADMMessage field's value.
9071func (s *DirectMessageConfiguration) SetADMMessage(v *ADMMessage) *DirectMessageConfiguration {
9072	s.ADMMessage = v
9073	return s
9074}
9075
9076// SetAPNSMessage sets the APNSMessage field's value.
9077func (s *DirectMessageConfiguration) SetAPNSMessage(v *APNSMessage) *DirectMessageConfiguration {
9078	s.APNSMessage = v
9079	return s
9080}
9081
9082// SetBaiduMessage sets the BaiduMessage field's value.
9083func (s *DirectMessageConfiguration) SetBaiduMessage(v *BaiduMessage) *DirectMessageConfiguration {
9084	s.BaiduMessage = v
9085	return s
9086}
9087
9088// SetDefaultMessage sets the DefaultMessage field's value.
9089func (s *DirectMessageConfiguration) SetDefaultMessage(v *DefaultMessage) *DirectMessageConfiguration {
9090	s.DefaultMessage = v
9091	return s
9092}
9093
9094// SetDefaultPushNotificationMessage sets the DefaultPushNotificationMessage field's value.
9095func (s *DirectMessageConfiguration) SetDefaultPushNotificationMessage(v *DefaultPushNotificationMessage) *DirectMessageConfiguration {
9096	s.DefaultPushNotificationMessage = v
9097	return s
9098}
9099
9100// SetGCMMessage sets the GCMMessage field's value.
9101func (s *DirectMessageConfiguration) SetGCMMessage(v *GCMMessage) *DirectMessageConfiguration {
9102	s.GCMMessage = v
9103	return s
9104}
9105
9106// SetSMSMessage sets the SMSMessage field's value.
9107func (s *DirectMessageConfiguration) SetSMSMessage(v *SMSMessage) *DirectMessageConfiguration {
9108	s.SMSMessage = v
9109	return s
9110}
9111
9112// Email Channel Request
9113// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EmailChannelRequest
9114type EmailChannelRequest struct {
9115	_ struct{} `type:"structure"`
9116
9117	// If the channel is enabled for sending messages.
9118	Enabled *bool `type:"boolean"`
9119
9120	// The email address used to send emails from.
9121	FromAddress *string `type:"string"`
9122
9123	// The ARN of an identity verified with SES.
9124	Identity *string `type:"string"`
9125
9126	// The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion
9127	// service
9128	RoleArn *string `type:"string"`
9129}
9130
9131// String returns the string representation
9132func (s EmailChannelRequest) String() string {
9133	return awsutil.Prettify(s)
9134}
9135
9136// GoString returns the string representation
9137func (s EmailChannelRequest) GoString() string {
9138	return s.String()
9139}
9140
9141// SetEnabled sets the Enabled field's value.
9142func (s *EmailChannelRequest) SetEnabled(v bool) *EmailChannelRequest {
9143	s.Enabled = &v
9144	return s
9145}
9146
9147// SetFromAddress sets the FromAddress field's value.
9148func (s *EmailChannelRequest) SetFromAddress(v string) *EmailChannelRequest {
9149	s.FromAddress = &v
9150	return s
9151}
9152
9153// SetIdentity sets the Identity field's value.
9154func (s *EmailChannelRequest) SetIdentity(v string) *EmailChannelRequest {
9155	s.Identity = &v
9156	return s
9157}
9158
9159// SetRoleArn sets the RoleArn field's value.
9160func (s *EmailChannelRequest) SetRoleArn(v string) *EmailChannelRequest {
9161	s.RoleArn = &v
9162	return s
9163}
9164
9165// Email Channel Response.
9166// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EmailChannelResponse
9167type EmailChannelResponse struct {
9168	_ struct{} `type:"structure"`
9169
9170	// The unique ID of the application to which the email channel belongs.
9171	ApplicationId *string `type:"string"`
9172
9173	// The date that the settings were last updated in ISO 8601 format.
9174	CreationDate *string `type:"string"`
9175
9176	// If the channel is enabled for sending messages.
9177	Enabled *bool `type:"boolean"`
9178
9179	// The email address used to send emails from.
9180	FromAddress *string `type:"string"`
9181
9182	// If the channel is registered with a credential for authentication.
9183	HasCredential *bool `type:"boolean"`
9184
9185	// Channel ID. Not used, only for backwards compatibility.
9186	Id *string `type:"string"`
9187
9188	// The ARN of an identity verified with SES.
9189	Identity *string `type:"string"`
9190
9191	// Is this channel archived
9192	IsArchived *bool `type:"boolean"`
9193
9194	// Who last updated this entry
9195	LastModifiedBy *string `type:"string"`
9196
9197	// Last date this was updated
9198	LastModifiedDate *string `type:"string"`
9199
9200	// Platform type. Will be "EMAIL"
9201	Platform *string `type:"string"`
9202
9203	// The ARN of an IAM Role used to submit events to Mobile Analytics' event ingestion
9204	// service
9205	RoleArn *string `type:"string"`
9206
9207	// Version of channel
9208	Version *int64 `type:"integer"`
9209}
9210
9211// String returns the string representation
9212func (s EmailChannelResponse) String() string {
9213	return awsutil.Prettify(s)
9214}
9215
9216// GoString returns the string representation
9217func (s EmailChannelResponse) GoString() string {
9218	return s.String()
9219}
9220
9221// SetApplicationId sets the ApplicationId field's value.
9222func (s *EmailChannelResponse) SetApplicationId(v string) *EmailChannelResponse {
9223	s.ApplicationId = &v
9224	return s
9225}
9226
9227// SetCreationDate sets the CreationDate field's value.
9228func (s *EmailChannelResponse) SetCreationDate(v string) *EmailChannelResponse {
9229	s.CreationDate = &v
9230	return s
9231}
9232
9233// SetEnabled sets the Enabled field's value.
9234func (s *EmailChannelResponse) SetEnabled(v bool) *EmailChannelResponse {
9235	s.Enabled = &v
9236	return s
9237}
9238
9239// SetFromAddress sets the FromAddress field's value.
9240func (s *EmailChannelResponse) SetFromAddress(v string) *EmailChannelResponse {
9241	s.FromAddress = &v
9242	return s
9243}
9244
9245// SetHasCredential sets the HasCredential field's value.
9246func (s *EmailChannelResponse) SetHasCredential(v bool) *EmailChannelResponse {
9247	s.HasCredential = &v
9248	return s
9249}
9250
9251// SetId sets the Id field's value.
9252func (s *EmailChannelResponse) SetId(v string) *EmailChannelResponse {
9253	s.Id = &v
9254	return s
9255}
9256
9257// SetIdentity sets the Identity field's value.
9258func (s *EmailChannelResponse) SetIdentity(v string) *EmailChannelResponse {
9259	s.Identity = &v
9260	return s
9261}
9262
9263// SetIsArchived sets the IsArchived field's value.
9264func (s *EmailChannelResponse) SetIsArchived(v bool) *EmailChannelResponse {
9265	s.IsArchived = &v
9266	return s
9267}
9268
9269// SetLastModifiedBy sets the LastModifiedBy field's value.
9270func (s *EmailChannelResponse) SetLastModifiedBy(v string) *EmailChannelResponse {
9271	s.LastModifiedBy = &v
9272	return s
9273}
9274
9275// SetLastModifiedDate sets the LastModifiedDate field's value.
9276func (s *EmailChannelResponse) SetLastModifiedDate(v string) *EmailChannelResponse {
9277	s.LastModifiedDate = &v
9278	return s
9279}
9280
9281// SetPlatform sets the Platform field's value.
9282func (s *EmailChannelResponse) SetPlatform(v string) *EmailChannelResponse {
9283	s.Platform = &v
9284	return s
9285}
9286
9287// SetRoleArn sets the RoleArn field's value.
9288func (s *EmailChannelResponse) SetRoleArn(v string) *EmailChannelResponse {
9289	s.RoleArn = &v
9290	return s
9291}
9292
9293// SetVersion sets the Version field's value.
9294func (s *EmailChannelResponse) SetVersion(v int64) *EmailChannelResponse {
9295	s.Version = &v
9296	return s
9297}
9298
9299// Endpoint update request
9300// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointBatchItem
9301type EndpointBatchItem struct {
9302	_ struct{} `type:"structure"`
9303
9304	// The address or token of the endpoint as provided by your push provider (e.g.
9305	// DeviceToken or RegistrationId).
9306	Address *string `type:"string"`
9307
9308	Attributes map[string][]*string `type:"map"`
9309
9310	// The channel type.Valid values: GCM | APNS | SMS | EMAIL
9311	ChannelType *string `type:"string" enum:"ChannelType"`
9312
9313	// The endpoint demographic attributes.
9314	Demographic *EndpointDemographic `type:"structure"`
9315
9316	// The last time the endpoint was updated. Provided in ISO 8601 format.
9317	EffectiveDate *string `type:"string"`
9318
9319	// The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE
9320	// if a delivery fails. Will be set to ACTIVE if the address is updated.
9321	EndpointStatus *string `type:"string"`
9322
9323	// The unique Id for the Endpoint in the batch.
9324	Id *string `type:"string"`
9325
9326	// The endpoint location attributes.
9327	Location *EndpointLocation `type:"structure"`
9328
9329	Metrics map[string]*float64 `type:"map"`
9330
9331	// Indicates whether a user has opted out of receiving messages with one of
9332	// the following values:ALL - User has opted out of all messages.NONE - Users
9333	// has not opted out and receives all messages.
9334	OptOut *string `type:"string"`
9335
9336	// The unique ID for the most recent request to update the endpoint.
9337	RequestId *string `type:"string"`
9338
9339	// Custom user-specific attributes that your app reports to Amazon Pinpoint.
9340	User *EndpointUser `type:"structure"`
9341}
9342
9343// String returns the string representation
9344func (s EndpointBatchItem) String() string {
9345	return awsutil.Prettify(s)
9346}
9347
9348// GoString returns the string representation
9349func (s EndpointBatchItem) GoString() string {
9350	return s.String()
9351}
9352
9353// SetAddress sets the Address field's value.
9354func (s *EndpointBatchItem) SetAddress(v string) *EndpointBatchItem {
9355	s.Address = &v
9356	return s
9357}
9358
9359// SetAttributes sets the Attributes field's value.
9360func (s *EndpointBatchItem) SetAttributes(v map[string][]*string) *EndpointBatchItem {
9361	s.Attributes = v
9362	return s
9363}
9364
9365// SetChannelType sets the ChannelType field's value.
9366func (s *EndpointBatchItem) SetChannelType(v string) *EndpointBatchItem {
9367	s.ChannelType = &v
9368	return s
9369}
9370
9371// SetDemographic sets the Demographic field's value.
9372func (s *EndpointBatchItem) SetDemographic(v *EndpointDemographic) *EndpointBatchItem {
9373	s.Demographic = v
9374	return s
9375}
9376
9377// SetEffectiveDate sets the EffectiveDate field's value.
9378func (s *EndpointBatchItem) SetEffectiveDate(v string) *EndpointBatchItem {
9379	s.EffectiveDate = &v
9380	return s
9381}
9382
9383// SetEndpointStatus sets the EndpointStatus field's value.
9384func (s *EndpointBatchItem) SetEndpointStatus(v string) *EndpointBatchItem {
9385	s.EndpointStatus = &v
9386	return s
9387}
9388
9389// SetId sets the Id field's value.
9390func (s *EndpointBatchItem) SetId(v string) *EndpointBatchItem {
9391	s.Id = &v
9392	return s
9393}
9394
9395// SetLocation sets the Location field's value.
9396func (s *EndpointBatchItem) SetLocation(v *EndpointLocation) *EndpointBatchItem {
9397	s.Location = v
9398	return s
9399}
9400
9401// SetMetrics sets the Metrics field's value.
9402func (s *EndpointBatchItem) SetMetrics(v map[string]*float64) *EndpointBatchItem {
9403	s.Metrics = v
9404	return s
9405}
9406
9407// SetOptOut sets the OptOut field's value.
9408func (s *EndpointBatchItem) SetOptOut(v string) *EndpointBatchItem {
9409	s.OptOut = &v
9410	return s
9411}
9412
9413// SetRequestId sets the RequestId field's value.
9414func (s *EndpointBatchItem) SetRequestId(v string) *EndpointBatchItem {
9415	s.RequestId = &v
9416	return s
9417}
9418
9419// SetUser sets the User field's value.
9420func (s *EndpointBatchItem) SetUser(v *EndpointUser) *EndpointBatchItem {
9421	s.User = v
9422	return s
9423}
9424
9425// Endpoint batch update request.
9426// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointBatchRequest
9427type EndpointBatchRequest struct {
9428	_ struct{} `type:"structure"`
9429
9430	// List of items to update. Maximum 100 items
9431	Item []*EndpointBatchItem `type:"list"`
9432}
9433
9434// String returns the string representation
9435func (s EndpointBatchRequest) String() string {
9436	return awsutil.Prettify(s)
9437}
9438
9439// GoString returns the string representation
9440func (s EndpointBatchRequest) GoString() string {
9441	return s.String()
9442}
9443
9444// SetItem sets the Item field's value.
9445func (s *EndpointBatchRequest) SetItem(v []*EndpointBatchItem) *EndpointBatchRequest {
9446	s.Item = v
9447	return s
9448}
9449
9450// Endpoint demographic data
9451// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointDemographic
9452type EndpointDemographic struct {
9453	_ struct{} `type:"structure"`
9454
9455	// The version of the application associated with the endpoint.
9456	AppVersion *string `type:"string"`
9457
9458	// The endpoint locale in the following format: The ISO 639-1 alpha-2 code,
9459	// followed by an underscore, followed by an ISO 3166-1 alpha-2 value.
9460	Locale *string `type:"string"`
9461
9462	// The endpoint make, such as such as Apple or Samsung.
9463	Make *string `type:"string"`
9464
9465	// The endpoint model, such as iPhone.
9466	Model *string `type:"string"`
9467
9468	// The endpoint model version.
9469	ModelVersion *string `type:"string"`
9470
9471	// The endpoint platform, such as ios or android.
9472	Platform *string `type:"string"`
9473
9474	// The endpoint platform version.
9475	PlatformVersion *string `type:"string"`
9476
9477	// The timezone of the endpoint. Specified as a tz database value, such as Americas/Los_Angeles.
9478	Timezone *string `type:"string"`
9479}
9480
9481// String returns the string representation
9482func (s EndpointDemographic) String() string {
9483	return awsutil.Prettify(s)
9484}
9485
9486// GoString returns the string representation
9487func (s EndpointDemographic) GoString() string {
9488	return s.String()
9489}
9490
9491// SetAppVersion sets the AppVersion field's value.
9492func (s *EndpointDemographic) SetAppVersion(v string) *EndpointDemographic {
9493	s.AppVersion = &v
9494	return s
9495}
9496
9497// SetLocale sets the Locale field's value.
9498func (s *EndpointDemographic) SetLocale(v string) *EndpointDemographic {
9499	s.Locale = &v
9500	return s
9501}
9502
9503// SetMake sets the Make field's value.
9504func (s *EndpointDemographic) SetMake(v string) *EndpointDemographic {
9505	s.Make = &v
9506	return s
9507}
9508
9509// SetModel sets the Model field's value.
9510func (s *EndpointDemographic) SetModel(v string) *EndpointDemographic {
9511	s.Model = &v
9512	return s
9513}
9514
9515// SetModelVersion sets the ModelVersion field's value.
9516func (s *EndpointDemographic) SetModelVersion(v string) *EndpointDemographic {
9517	s.ModelVersion = &v
9518	return s
9519}
9520
9521// SetPlatform sets the Platform field's value.
9522func (s *EndpointDemographic) SetPlatform(v string) *EndpointDemographic {
9523	s.Platform = &v
9524	return s
9525}
9526
9527// SetPlatformVersion sets the PlatformVersion field's value.
9528func (s *EndpointDemographic) SetPlatformVersion(v string) *EndpointDemographic {
9529	s.PlatformVersion = &v
9530	return s
9531}
9532
9533// SetTimezone sets the Timezone field's value.
9534func (s *EndpointDemographic) SetTimezone(v string) *EndpointDemographic {
9535	s.Timezone = &v
9536	return s
9537}
9538
9539// Endpoint location data
9540// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointLocation
9541type EndpointLocation struct {
9542	_ struct{} `type:"structure"`
9543
9544	// The city where the endpoint is located.
9545	City *string `type:"string"`
9546
9547	// Country according to ISO 3166-1 Alpha-2 codes. For example, US.
9548	Country *string `type:"string"`
9549
9550	// The latitude of the endpoint location. Rounded to one decimal (Roughly corresponding
9551	// to a mile).
9552	Latitude *float64 `type:"double"`
9553
9554	// The longitude of the endpoint location. Rounded to one decimal (Roughly corresponding
9555	// to a mile).
9556	Longitude *float64 `type:"double"`
9557
9558	// The postal code or zip code of the endpoint.
9559	PostalCode *string `type:"string"`
9560
9561	// The region of the endpoint location. For example, corresponds to a state
9562	// in US.
9563	Region *string `type:"string"`
9564}
9565
9566// String returns the string representation
9567func (s EndpointLocation) String() string {
9568	return awsutil.Prettify(s)
9569}
9570
9571// GoString returns the string representation
9572func (s EndpointLocation) GoString() string {
9573	return s.String()
9574}
9575
9576// SetCity sets the City field's value.
9577func (s *EndpointLocation) SetCity(v string) *EndpointLocation {
9578	s.City = &v
9579	return s
9580}
9581
9582// SetCountry sets the Country field's value.
9583func (s *EndpointLocation) SetCountry(v string) *EndpointLocation {
9584	s.Country = &v
9585	return s
9586}
9587
9588// SetLatitude sets the Latitude field's value.
9589func (s *EndpointLocation) SetLatitude(v float64) *EndpointLocation {
9590	s.Latitude = &v
9591	return s
9592}
9593
9594// SetLongitude sets the Longitude field's value.
9595func (s *EndpointLocation) SetLongitude(v float64) *EndpointLocation {
9596	s.Longitude = &v
9597	return s
9598}
9599
9600// SetPostalCode sets the PostalCode field's value.
9601func (s *EndpointLocation) SetPostalCode(v string) *EndpointLocation {
9602	s.PostalCode = &v
9603	return s
9604}
9605
9606// SetRegion sets the Region field's value.
9607func (s *EndpointLocation) SetRegion(v string) *EndpointLocation {
9608	s.Region = &v
9609	return s
9610}
9611
9612// The result from sending a message to an endpoint.
9613// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointMessageResult
9614type EndpointMessageResult struct {
9615	_ struct{} `type:"structure"`
9616
9617	// Address that endpoint message was delivered to.
9618	Address *string `type:"string"`
9619
9620	// Delivery status of message.
9621	DeliveryStatus *string `type:"string" enum:"DeliveryStatus"`
9622
9623	// Downstream service status code.
9624	StatusCode *int64 `type:"integer"`
9625
9626	// Status message for message delivery.
9627	StatusMessage *string `type:"string"`
9628
9629	// If token was updated as part of delivery. (This is GCM Specific)
9630	UpdatedToken *string `type:"string"`
9631}
9632
9633// String returns the string representation
9634func (s EndpointMessageResult) String() string {
9635	return awsutil.Prettify(s)
9636}
9637
9638// GoString returns the string representation
9639func (s EndpointMessageResult) GoString() string {
9640	return s.String()
9641}
9642
9643// SetAddress sets the Address field's value.
9644func (s *EndpointMessageResult) SetAddress(v string) *EndpointMessageResult {
9645	s.Address = &v
9646	return s
9647}
9648
9649// SetDeliveryStatus sets the DeliveryStatus field's value.
9650func (s *EndpointMessageResult) SetDeliveryStatus(v string) *EndpointMessageResult {
9651	s.DeliveryStatus = &v
9652	return s
9653}
9654
9655// SetStatusCode sets the StatusCode field's value.
9656func (s *EndpointMessageResult) SetStatusCode(v int64) *EndpointMessageResult {
9657	s.StatusCode = &v
9658	return s
9659}
9660
9661// SetStatusMessage sets the StatusMessage field's value.
9662func (s *EndpointMessageResult) SetStatusMessage(v string) *EndpointMessageResult {
9663	s.StatusMessage = &v
9664	return s
9665}
9666
9667// SetUpdatedToken sets the UpdatedToken field's value.
9668func (s *EndpointMessageResult) SetUpdatedToken(v string) *EndpointMessageResult {
9669	s.UpdatedToken = &v
9670	return s
9671}
9672
9673// Endpoint update request
9674// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointRequest
9675type EndpointRequest struct {
9676	_ struct{} `type:"structure"`
9677
9678	// The address or token of the endpoint as provided by your push provider (e.g.
9679	// DeviceToken or RegistrationId).
9680	Address *string `type:"string"`
9681
9682	Attributes map[string][]*string `type:"map"`
9683
9684	// The channel type.Valid values: GCM | APNS | SMS | EMAIL
9685	ChannelType *string `type:"string" enum:"ChannelType"`
9686
9687	// The endpoint demographic attributes.
9688	Demographic *EndpointDemographic `type:"structure"`
9689
9690	// The last time the endpoint was updated. Provided in ISO 8601 format.
9691	EffectiveDate *string `type:"string"`
9692
9693	// The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE
9694	// if a delivery fails. Will be set to ACTIVE if the address is updated.
9695	EndpointStatus *string `type:"string"`
9696
9697	// The endpoint location attributes.
9698	Location *EndpointLocation `type:"structure"`
9699
9700	Metrics map[string]*float64 `type:"map"`
9701
9702	// Indicates whether a user has opted out of receiving messages with one of
9703	// the following values:ALL - User has opted out of all messages.NONE - Users
9704	// has not opted out and receives all messages.
9705	OptOut *string `type:"string"`
9706
9707	// The unique ID for the most recent request to update the endpoint.
9708	RequestId *string `type:"string"`
9709
9710	// Custom user-specific attributes that your app reports to Amazon Pinpoint.
9711	User *EndpointUser `type:"structure"`
9712}
9713
9714// String returns the string representation
9715func (s EndpointRequest) String() string {
9716	return awsutil.Prettify(s)
9717}
9718
9719// GoString returns the string representation
9720func (s EndpointRequest) GoString() string {
9721	return s.String()
9722}
9723
9724// SetAddress sets the Address field's value.
9725func (s *EndpointRequest) SetAddress(v string) *EndpointRequest {
9726	s.Address = &v
9727	return s
9728}
9729
9730// SetAttributes sets the Attributes field's value.
9731func (s *EndpointRequest) SetAttributes(v map[string][]*string) *EndpointRequest {
9732	s.Attributes = v
9733	return s
9734}
9735
9736// SetChannelType sets the ChannelType field's value.
9737func (s *EndpointRequest) SetChannelType(v string) *EndpointRequest {
9738	s.ChannelType = &v
9739	return s
9740}
9741
9742// SetDemographic sets the Demographic field's value.
9743func (s *EndpointRequest) SetDemographic(v *EndpointDemographic) *EndpointRequest {
9744	s.Demographic = v
9745	return s
9746}
9747
9748// SetEffectiveDate sets the EffectiveDate field's value.
9749func (s *EndpointRequest) SetEffectiveDate(v string) *EndpointRequest {
9750	s.EffectiveDate = &v
9751	return s
9752}
9753
9754// SetEndpointStatus sets the EndpointStatus field's value.
9755func (s *EndpointRequest) SetEndpointStatus(v string) *EndpointRequest {
9756	s.EndpointStatus = &v
9757	return s
9758}
9759
9760// SetLocation sets the Location field's value.
9761func (s *EndpointRequest) SetLocation(v *EndpointLocation) *EndpointRequest {
9762	s.Location = v
9763	return s
9764}
9765
9766// SetMetrics sets the Metrics field's value.
9767func (s *EndpointRequest) SetMetrics(v map[string]*float64) *EndpointRequest {
9768	s.Metrics = v
9769	return s
9770}
9771
9772// SetOptOut sets the OptOut field's value.
9773func (s *EndpointRequest) SetOptOut(v string) *EndpointRequest {
9774	s.OptOut = &v
9775	return s
9776}
9777
9778// SetRequestId sets the RequestId field's value.
9779func (s *EndpointRequest) SetRequestId(v string) *EndpointRequest {
9780	s.RequestId = &v
9781	return s
9782}
9783
9784// SetUser sets the User field's value.
9785func (s *EndpointRequest) SetUser(v *EndpointUser) *EndpointRequest {
9786	s.User = v
9787	return s
9788}
9789
9790// Endpoint response
9791// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointResponse
9792type EndpointResponse struct {
9793	_ struct{} `type:"structure"`
9794
9795	// The address or token of the endpoint as provided by your push provider (e.g.
9796	// DeviceToken or RegistrationId).
9797	Address *string `type:"string"`
9798
9799	// The ID of the application associated with the endpoint.
9800	ApplicationId *string `type:"string"`
9801
9802	Attributes map[string][]*string `type:"map"`
9803
9804	// The channel type.Valid values: GCM | APNS | SMS | EMAIL
9805	ChannelType *string `type:"string" enum:"ChannelType"`
9806
9807	// A number from 0 - 99 that represents the cohort the endpoint is assigned
9808	// to. Endpoints are grouped into cohorts randomly, and each cohort contains
9809	// approximately 1 percent of the endpoints for an app. Amazon Pinpoint assigns
9810	// cohorts to the holdout or treatment allocations for a campaign.
9811	CohortId *string `type:"string"`
9812
9813	// The last time the endpoint was created. Provided in ISO 8601 format.
9814	CreationDate *string `type:"string"`
9815
9816	// The endpoint demographic attributes.
9817	Demographic *EndpointDemographic `type:"structure"`
9818
9819	// The last time the endpoint was updated. Provided in ISO 8601 format.
9820	EffectiveDate *string `type:"string"`
9821
9822	// The endpoint status. Can be either ACTIVE or INACTIVE. Will be set to INACTIVE
9823	// if a delivery fails. Will be set to ACTIVE if the address is updated.
9824	EndpointStatus *string `type:"string"`
9825
9826	// The unique ID that you assigned to the endpoint. The ID should be a globally
9827	// unique identifier (GUID) to ensure that it is unique compared to all other
9828	// endpoints for the application.
9829	Id *string `type:"string"`
9830
9831	// The endpoint location attributes.
9832	Location *EndpointLocation `type:"structure"`
9833
9834	Metrics map[string]*float64 `type:"map"`
9835
9836	// Indicates whether a user has opted out of receiving messages with one of
9837	// the following values:ALL - User has opted out of all messages.NONE - Users
9838	// has not opted out and receives all messages.
9839	OptOut *string `type:"string"`
9840
9841	// The unique ID for the most recent request to update the endpoint.
9842	RequestId *string `type:"string"`
9843
9844	// Custom user-specific attributes that your app reports to Amazon Pinpoint.
9845	User *EndpointUser `type:"structure"`
9846}
9847
9848// String returns the string representation
9849func (s EndpointResponse) String() string {
9850	return awsutil.Prettify(s)
9851}
9852
9853// GoString returns the string representation
9854func (s EndpointResponse) GoString() string {
9855	return s.String()
9856}
9857
9858// SetAddress sets the Address field's value.
9859func (s *EndpointResponse) SetAddress(v string) *EndpointResponse {
9860	s.Address = &v
9861	return s
9862}
9863
9864// SetApplicationId sets the ApplicationId field's value.
9865func (s *EndpointResponse) SetApplicationId(v string) *EndpointResponse {
9866	s.ApplicationId = &v
9867	return s
9868}
9869
9870// SetAttributes sets the Attributes field's value.
9871func (s *EndpointResponse) SetAttributes(v map[string][]*string) *EndpointResponse {
9872	s.Attributes = v
9873	return s
9874}
9875
9876// SetChannelType sets the ChannelType field's value.
9877func (s *EndpointResponse) SetChannelType(v string) *EndpointResponse {
9878	s.ChannelType = &v
9879	return s
9880}
9881
9882// SetCohortId sets the CohortId field's value.
9883func (s *EndpointResponse) SetCohortId(v string) *EndpointResponse {
9884	s.CohortId = &v
9885	return s
9886}
9887
9888// SetCreationDate sets the CreationDate field's value.
9889func (s *EndpointResponse) SetCreationDate(v string) *EndpointResponse {
9890	s.CreationDate = &v
9891	return s
9892}
9893
9894// SetDemographic sets the Demographic field's value.
9895func (s *EndpointResponse) SetDemographic(v *EndpointDemographic) *EndpointResponse {
9896	s.Demographic = v
9897	return s
9898}
9899
9900// SetEffectiveDate sets the EffectiveDate field's value.
9901func (s *EndpointResponse) SetEffectiveDate(v string) *EndpointResponse {
9902	s.EffectiveDate = &v
9903	return s
9904}
9905
9906// SetEndpointStatus sets the EndpointStatus field's value.
9907func (s *EndpointResponse) SetEndpointStatus(v string) *EndpointResponse {
9908	s.EndpointStatus = &v
9909	return s
9910}
9911
9912// SetId sets the Id field's value.
9913func (s *EndpointResponse) SetId(v string) *EndpointResponse {
9914	s.Id = &v
9915	return s
9916}
9917
9918// SetLocation sets the Location field's value.
9919func (s *EndpointResponse) SetLocation(v *EndpointLocation) *EndpointResponse {
9920	s.Location = v
9921	return s
9922}
9923
9924// SetMetrics sets the Metrics field's value.
9925func (s *EndpointResponse) SetMetrics(v map[string]*float64) *EndpointResponse {
9926	s.Metrics = v
9927	return s
9928}
9929
9930// SetOptOut sets the OptOut field's value.
9931func (s *EndpointResponse) SetOptOut(v string) *EndpointResponse {
9932	s.OptOut = &v
9933	return s
9934}
9935
9936// SetRequestId sets the RequestId field's value.
9937func (s *EndpointResponse) SetRequestId(v string) *EndpointResponse {
9938	s.RequestId = &v
9939	return s
9940}
9941
9942// SetUser sets the User field's value.
9943func (s *EndpointResponse) SetUser(v *EndpointUser) *EndpointResponse {
9944	s.User = v
9945	return s
9946}
9947
9948// Endpoint send configuration.
9949// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointSendConfiguration
9950type EndpointSendConfiguration struct {
9951	_ struct{} `type:"structure"`
9952
9953	// Body override. If specified will override default body.
9954	BodyOverride *string `type:"string"`
9955
9956	Context map[string]*string `type:"map"`
9957
9958	// The Raw JSON formatted string to be used as the payload. This value overrides
9959	// the message.
9960	RawContent *string `type:"string"`
9961
9962	Substitutions map[string][]*string `type:"map"`
9963
9964	// Title override. If specified will override default title if applicable.
9965	TitleOverride *string `type:"string"`
9966}
9967
9968// String returns the string representation
9969func (s EndpointSendConfiguration) String() string {
9970	return awsutil.Prettify(s)
9971}
9972
9973// GoString returns the string representation
9974func (s EndpointSendConfiguration) GoString() string {
9975	return s.String()
9976}
9977
9978// SetBodyOverride sets the BodyOverride field's value.
9979func (s *EndpointSendConfiguration) SetBodyOverride(v string) *EndpointSendConfiguration {
9980	s.BodyOverride = &v
9981	return s
9982}
9983
9984// SetContext sets the Context field's value.
9985func (s *EndpointSendConfiguration) SetContext(v map[string]*string) *EndpointSendConfiguration {
9986	s.Context = v
9987	return s
9988}
9989
9990// SetRawContent sets the RawContent field's value.
9991func (s *EndpointSendConfiguration) SetRawContent(v string) *EndpointSendConfiguration {
9992	s.RawContent = &v
9993	return s
9994}
9995
9996// SetSubstitutions sets the Substitutions field's value.
9997func (s *EndpointSendConfiguration) SetSubstitutions(v map[string][]*string) *EndpointSendConfiguration {
9998	s.Substitutions = v
9999	return s
10000}
10001
10002// SetTitleOverride sets the TitleOverride field's value.
10003func (s *EndpointSendConfiguration) SetTitleOverride(v string) *EndpointSendConfiguration {
10004	s.TitleOverride = &v
10005	return s
10006}
10007
10008// Endpoint user specific custom userAttributes
10009// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EndpointUser
10010type EndpointUser struct {
10011	_ struct{} `type:"structure"`
10012
10013	UserAttributes map[string][]*string `type:"map"`
10014
10015	// The unique ID of the user.
10016	UserId *string `type:"string"`
10017}
10018
10019// String returns the string representation
10020func (s EndpointUser) String() string {
10021	return awsutil.Prettify(s)
10022}
10023
10024// GoString returns the string representation
10025func (s EndpointUser) GoString() string {
10026	return s.String()
10027}
10028
10029// SetUserAttributes sets the UserAttributes field's value.
10030func (s *EndpointUser) SetUserAttributes(v map[string][]*string) *EndpointUser {
10031	s.UserAttributes = v
10032	return s
10033}
10034
10035// SetUserId sets the UserId field's value.
10036func (s *EndpointUser) SetUserId(v string) *EndpointUser {
10037	s.UserId = &v
10038	return s
10039}
10040
10041// Model for an event publishing subscription export.
10042// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/EventStream
10043type EventStream struct {
10044	_ struct{} `type:"structure"`
10045
10046	// The ID of the application from which events should be published.
10047	ApplicationId *string `type:"string"`
10048
10049	// The Amazon Resource Name (ARN) of the Amazon Kinesis stream or Firehose delivery
10050	// stream to which you want to publish events. Firehose ARN: arn:aws:firehose:REGION:ACCOUNT_ID:deliverystream/STREAM_NAME
10051	// Kinesis ARN: arn:aws:kinesis:REGION:ACCOUNT_ID:stream/STREAM_NAME
10052	DestinationStreamArn *string `type:"string"`
10053
10054	// The external ID assigned the IAM role that authorizes Amazon Pinpoint to
10055	// publish to the stream.
10056	ExternalId *string `type:"string"`
10057
10058	// The date the event stream was last updated in ISO 8601 format.
10059	LastModifiedDate *string `type:"string"`
10060
10061	// The IAM user who last modified the event stream.
10062	LastUpdatedBy *string `type:"string"`
10063
10064	// The IAM role that authorizes Amazon Pinpoint to publish events to the stream
10065	// in your account.
10066	RoleArn *string `type:"string"`
10067}
10068
10069// String returns the string representation
10070func (s EventStream) String() string {
10071	return awsutil.Prettify(s)
10072}
10073
10074// GoString returns the string representation
10075func (s EventStream) GoString() string {
10076	return s.String()
10077}
10078
10079// SetApplicationId sets the ApplicationId field's value.
10080func (s *EventStream) SetApplicationId(v string) *EventStream {
10081	s.ApplicationId = &v
10082	return s
10083}
10084
10085// SetDestinationStreamArn sets the DestinationStreamArn field's value.
10086func (s *EventStream) SetDestinationStreamArn(v string) *EventStream {
10087	s.DestinationStreamArn = &v
10088	return s
10089}
10090
10091// SetExternalId sets the ExternalId field's value.
10092func (s *EventStream) SetExternalId(v string) *EventStream {
10093	s.ExternalId = &v
10094	return s
10095}
10096
10097// SetLastModifiedDate sets the LastModifiedDate field's value.
10098func (s *EventStream) SetLastModifiedDate(v string) *EventStream {
10099	s.LastModifiedDate = &v
10100	return s
10101}
10102
10103// SetLastUpdatedBy sets the LastUpdatedBy field's value.
10104func (s *EventStream) SetLastUpdatedBy(v string) *EventStream {
10105	s.LastUpdatedBy = &v
10106	return s
10107}
10108
10109// SetRoleArn sets the RoleArn field's value.
10110func (s *EventStream) SetRoleArn(v string) *EventStream {
10111	s.RoleArn = &v
10112	return s
10113}
10114
10115// Google Cloud Messaging credentials
10116// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GCMChannelRequest
10117type GCMChannelRequest struct {
10118	_ struct{} `type:"structure"`
10119
10120	// Platform credential API key from Google.
10121	ApiKey *string `type:"string"`
10122
10123	// If the channel is enabled for sending messages.
10124	Enabled *bool `type:"boolean"`
10125}
10126
10127// String returns the string representation
10128func (s GCMChannelRequest) String() string {
10129	return awsutil.Prettify(s)
10130}
10131
10132// GoString returns the string representation
10133func (s GCMChannelRequest) GoString() string {
10134	return s.String()
10135}
10136
10137// SetApiKey sets the ApiKey field's value.
10138func (s *GCMChannelRequest) SetApiKey(v string) *GCMChannelRequest {
10139	s.ApiKey = &v
10140	return s
10141}
10142
10143// SetEnabled sets the Enabled field's value.
10144func (s *GCMChannelRequest) SetEnabled(v bool) *GCMChannelRequest {
10145	s.Enabled = &v
10146	return s
10147}
10148
10149// Google Cloud Messaging channel definition
10150// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GCMChannelResponse
10151type GCMChannelResponse struct {
10152	_ struct{} `type:"structure"`
10153
10154	// The ID of the application to which the channel applies.
10155	ApplicationId *string `type:"string"`
10156
10157	// When was this segment created
10158	CreationDate *string `type:"string"`
10159
10160	// The GCM API key from Google.
10161	Credential *string `type:"string"`
10162
10163	// If the channel is enabled for sending messages.
10164	Enabled *bool `type:"boolean"`
10165
10166	// If the channel is registered with a credential for authentication.
10167	HasCredential *bool `type:"boolean"`
10168
10169	// Channel ID. Not used. Present only for backwards compatibility.
10170	Id *string `type:"string"`
10171
10172	// Is this channel archived
10173	IsArchived *bool `type:"boolean"`
10174
10175	// Who last updated this entry
10176	LastModifiedBy *string `type:"string"`
10177
10178	// Last date this was updated
10179	LastModifiedDate *string `type:"string"`
10180
10181	// The platform type. Will be GCM
10182	Platform *string `type:"string"`
10183
10184	// Version of channel
10185	Version *int64 `type:"integer"`
10186}
10187
10188// String returns the string representation
10189func (s GCMChannelResponse) String() string {
10190	return awsutil.Prettify(s)
10191}
10192
10193// GoString returns the string representation
10194func (s GCMChannelResponse) GoString() string {
10195	return s.String()
10196}
10197
10198// SetApplicationId sets the ApplicationId field's value.
10199func (s *GCMChannelResponse) SetApplicationId(v string) *GCMChannelResponse {
10200	s.ApplicationId = &v
10201	return s
10202}
10203
10204// SetCreationDate sets the CreationDate field's value.
10205func (s *GCMChannelResponse) SetCreationDate(v string) *GCMChannelResponse {
10206	s.CreationDate = &v
10207	return s
10208}
10209
10210// SetCredential sets the Credential field's value.
10211func (s *GCMChannelResponse) SetCredential(v string) *GCMChannelResponse {
10212	s.Credential = &v
10213	return s
10214}
10215
10216// SetEnabled sets the Enabled field's value.
10217func (s *GCMChannelResponse) SetEnabled(v bool) *GCMChannelResponse {
10218	s.Enabled = &v
10219	return s
10220}
10221
10222// SetHasCredential sets the HasCredential field's value.
10223func (s *GCMChannelResponse) SetHasCredential(v bool) *GCMChannelResponse {
10224	s.HasCredential = &v
10225	return s
10226}
10227
10228// SetId sets the Id field's value.
10229func (s *GCMChannelResponse) SetId(v string) *GCMChannelResponse {
10230	s.Id = &v
10231	return s
10232}
10233
10234// SetIsArchived sets the IsArchived field's value.
10235func (s *GCMChannelResponse) SetIsArchived(v bool) *GCMChannelResponse {
10236	s.IsArchived = &v
10237	return s
10238}
10239
10240// SetLastModifiedBy sets the LastModifiedBy field's value.
10241func (s *GCMChannelResponse) SetLastModifiedBy(v string) *GCMChannelResponse {
10242	s.LastModifiedBy = &v
10243	return s
10244}
10245
10246// SetLastModifiedDate sets the LastModifiedDate field's value.
10247func (s *GCMChannelResponse) SetLastModifiedDate(v string) *GCMChannelResponse {
10248	s.LastModifiedDate = &v
10249	return s
10250}
10251
10252// SetPlatform sets the Platform field's value.
10253func (s *GCMChannelResponse) SetPlatform(v string) *GCMChannelResponse {
10254	s.Platform = &v
10255	return s
10256}
10257
10258// SetVersion sets the Version field's value.
10259func (s *GCMChannelResponse) SetVersion(v int64) *GCMChannelResponse {
10260	s.Version = &v
10261	return s
10262}
10263
10264// GCM Message.
10265// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GCMMessage
10266type GCMMessage struct {
10267	_ struct{} `type:"structure"`
10268
10269	// The action that occurs if the user taps a push notification delivered by
10270	// the campaign: OPEN_APP - Your app launches, or it becomes the foreground
10271	// app if it has been sent to the background. This is the default action. DEEP_LINK
10272	// - Uses deep linking features in iOS and Android to open your app and display
10273	// a designated user interface within the app. URL - The default mobile browser
10274	// on the user's device launches and opens a web page at the URL you specify.
10275	// Possible values include: OPEN_APP | DEEP_LINK | URL
10276	Action *string `type:"string" enum:"Action"`
10277
10278	// The message body of the notification, the email body or the text message.
10279	Body *string `type:"string"`
10280
10281	// This parameter identifies a group of messages (e.g., with collapse_key: "Updates
10282	// Available") that can be collapsed, so that only the last message gets sent
10283	// when delivery can be resumed. This is intended to avoid sending too many
10284	// of the same messages when the device comes back online or becomes active.
10285	CollapseKey *string `type:"string"`
10286
10287	Data map[string]*string `type:"map"`
10288
10289	// The icon image name of the asset saved in your application.
10290	IconReference *string `type:"string"`
10291
10292	// The URL that points to an image used as the large icon to the notification
10293	// content view.
10294	ImageIconUrl *string `type:"string"`
10295
10296	// The URL that points to an image used in the push notification.
10297	ImageUrl *string `type:"string"`
10298
10299	// Is this a transaction priority message or lower priority.
10300	Priority *string `type:"string"`
10301
10302	// The Raw JSON formatted string to be used as the payload. This value overrides
10303	// the message.
10304	RawContent *string `type:"string"`
10305
10306	// This parameter specifies the package name of the application where the registration
10307	// tokens must match in order to receive the message.
10308	RestrictedPackageName *string `type:"string"`
10309
10310	// Indicates if the message should display on the users device. Silent pushes
10311	// can be used for Remote Configuration and Phone Home use cases.
10312	SilentPush *bool `type:"boolean"`
10313
10314	// The URL that points to an image used as the small icon for the notification
10315	// which will be used to represent the notification in the status bar and content
10316	// view
10317	SmallImageIconUrl *string `type:"string"`
10318
10319	// Indicates a sound to play when the device receives the notification. Supports
10320	// default, or the filename of a sound resource bundled in the app. Android
10321	// sound files must reside in /res/raw/
10322	Sound *string `type:"string"`
10323
10324	Substitutions map[string][]*string `type:"map"`
10325
10326	// This parameter specifies how long (in seconds) the message should be kept
10327	// in GCM storage if the device is offline. The maximum time to live supported
10328	// is 4 weeks, and the default value is 4 weeks.
10329	TimeToLive *int64 `type:"integer"`
10330
10331	// The message title that displays above the message on the user's device.
10332	Title *string `type:"string"`
10333
10334	// The URL to open in the user's mobile browser. Used if the value for Action
10335	// is URL.
10336	Url *string `type:"string"`
10337}
10338
10339// String returns the string representation
10340func (s GCMMessage) String() string {
10341	return awsutil.Prettify(s)
10342}
10343
10344// GoString returns the string representation
10345func (s GCMMessage) GoString() string {
10346	return s.String()
10347}
10348
10349// SetAction sets the Action field's value.
10350func (s *GCMMessage) SetAction(v string) *GCMMessage {
10351	s.Action = &v
10352	return s
10353}
10354
10355// SetBody sets the Body field's value.
10356func (s *GCMMessage) SetBody(v string) *GCMMessage {
10357	s.Body = &v
10358	return s
10359}
10360
10361// SetCollapseKey sets the CollapseKey field's value.
10362func (s *GCMMessage) SetCollapseKey(v string) *GCMMessage {
10363	s.CollapseKey = &v
10364	return s
10365}
10366
10367// SetData sets the Data field's value.
10368func (s *GCMMessage) SetData(v map[string]*string) *GCMMessage {
10369	s.Data = v
10370	return s
10371}
10372
10373// SetIconReference sets the IconReference field's value.
10374func (s *GCMMessage) SetIconReference(v string) *GCMMessage {
10375	s.IconReference = &v
10376	return s
10377}
10378
10379// SetImageIconUrl sets the ImageIconUrl field's value.
10380func (s *GCMMessage) SetImageIconUrl(v string) *GCMMessage {
10381	s.ImageIconUrl = &v
10382	return s
10383}
10384
10385// SetImageUrl sets the ImageUrl field's value.
10386func (s *GCMMessage) SetImageUrl(v string) *GCMMessage {
10387	s.ImageUrl = &v
10388	return s
10389}
10390
10391// SetPriority sets the Priority field's value.
10392func (s *GCMMessage) SetPriority(v string) *GCMMessage {
10393	s.Priority = &v
10394	return s
10395}
10396
10397// SetRawContent sets the RawContent field's value.
10398func (s *GCMMessage) SetRawContent(v string) *GCMMessage {
10399	s.RawContent = &v
10400	return s
10401}
10402
10403// SetRestrictedPackageName sets the RestrictedPackageName field's value.
10404func (s *GCMMessage) SetRestrictedPackageName(v string) *GCMMessage {
10405	s.RestrictedPackageName = &v
10406	return s
10407}
10408
10409// SetSilentPush sets the SilentPush field's value.
10410func (s *GCMMessage) SetSilentPush(v bool) *GCMMessage {
10411	s.SilentPush = &v
10412	return s
10413}
10414
10415// SetSmallImageIconUrl sets the SmallImageIconUrl field's value.
10416func (s *GCMMessage) SetSmallImageIconUrl(v string) *GCMMessage {
10417	s.SmallImageIconUrl = &v
10418	return s
10419}
10420
10421// SetSound sets the Sound field's value.
10422func (s *GCMMessage) SetSound(v string) *GCMMessage {
10423	s.Sound = &v
10424	return s
10425}
10426
10427// SetSubstitutions sets the Substitutions field's value.
10428func (s *GCMMessage) SetSubstitutions(v map[string][]*string) *GCMMessage {
10429	s.Substitutions = v
10430	return s
10431}
10432
10433// SetTimeToLive sets the TimeToLive field's value.
10434func (s *GCMMessage) SetTimeToLive(v int64) *GCMMessage {
10435	s.TimeToLive = &v
10436	return s
10437}
10438
10439// SetTitle sets the Title field's value.
10440func (s *GCMMessage) SetTitle(v string) *GCMMessage {
10441	s.Title = &v
10442	return s
10443}
10444
10445// SetUrl sets the Url field's value.
10446func (s *GCMMessage) SetUrl(v string) *GCMMessage {
10447	s.Url = &v
10448	return s
10449}
10450
10451// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAdmChannelRequest
10452type GetAdmChannelInput struct {
10453	_ struct{} `type:"structure"`
10454
10455	// ApplicationId is a required field
10456	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10457}
10458
10459// String returns the string representation
10460func (s GetAdmChannelInput) String() string {
10461	return awsutil.Prettify(s)
10462}
10463
10464// GoString returns the string representation
10465func (s GetAdmChannelInput) GoString() string {
10466	return s.String()
10467}
10468
10469// Validate inspects the fields of the type to determine if they are valid.
10470func (s *GetAdmChannelInput) Validate() error {
10471	invalidParams := request.ErrInvalidParams{Context: "GetAdmChannelInput"}
10472	if s.ApplicationId == nil {
10473		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10474	}
10475
10476	if invalidParams.Len() > 0 {
10477		return invalidParams
10478	}
10479	return nil
10480}
10481
10482// SetApplicationId sets the ApplicationId field's value.
10483func (s *GetAdmChannelInput) SetApplicationId(v string) *GetAdmChannelInput {
10484	s.ApplicationId = &v
10485	return s
10486}
10487
10488// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAdmChannelResponse
10489type GetAdmChannelOutput struct {
10490	_ struct{} `type:"structure" payload:"ADMChannelResponse"`
10491
10492	// Amazon Device Messaging channel definition.
10493	//
10494	// ADMChannelResponse is a required field
10495	ADMChannelResponse *ADMChannelResponse `type:"structure" required:"true"`
10496}
10497
10498// String returns the string representation
10499func (s GetAdmChannelOutput) String() string {
10500	return awsutil.Prettify(s)
10501}
10502
10503// GoString returns the string representation
10504func (s GetAdmChannelOutput) GoString() string {
10505	return s.String()
10506}
10507
10508// SetADMChannelResponse sets the ADMChannelResponse field's value.
10509func (s *GetAdmChannelOutput) SetADMChannelResponse(v *ADMChannelResponse) *GetAdmChannelOutput {
10510	s.ADMChannelResponse = v
10511	return s
10512}
10513
10514// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsChannelRequest
10515type GetApnsChannelInput struct {
10516	_ struct{} `type:"structure"`
10517
10518	// ApplicationId is a required field
10519	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10520}
10521
10522// String returns the string representation
10523func (s GetApnsChannelInput) String() string {
10524	return awsutil.Prettify(s)
10525}
10526
10527// GoString returns the string representation
10528func (s GetApnsChannelInput) GoString() string {
10529	return s.String()
10530}
10531
10532// Validate inspects the fields of the type to determine if they are valid.
10533func (s *GetApnsChannelInput) Validate() error {
10534	invalidParams := request.ErrInvalidParams{Context: "GetApnsChannelInput"}
10535	if s.ApplicationId == nil {
10536		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10537	}
10538
10539	if invalidParams.Len() > 0 {
10540		return invalidParams
10541	}
10542	return nil
10543}
10544
10545// SetApplicationId sets the ApplicationId field's value.
10546func (s *GetApnsChannelInput) SetApplicationId(v string) *GetApnsChannelInput {
10547	s.ApplicationId = &v
10548	return s
10549}
10550
10551// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsChannelResponse
10552type GetApnsChannelOutput struct {
10553	_ struct{} `type:"structure" payload:"APNSChannelResponse"`
10554
10555	// Apple Distribution Push Notification Service channel definition.
10556	//
10557	// APNSChannelResponse is a required field
10558	APNSChannelResponse *APNSChannelResponse `type:"structure" required:"true"`
10559}
10560
10561// String returns the string representation
10562func (s GetApnsChannelOutput) String() string {
10563	return awsutil.Prettify(s)
10564}
10565
10566// GoString returns the string representation
10567func (s GetApnsChannelOutput) GoString() string {
10568	return s.String()
10569}
10570
10571// SetAPNSChannelResponse sets the APNSChannelResponse field's value.
10572func (s *GetApnsChannelOutput) SetAPNSChannelResponse(v *APNSChannelResponse) *GetApnsChannelOutput {
10573	s.APNSChannelResponse = v
10574	return s
10575}
10576
10577// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsSandboxChannelRequest
10578type GetApnsSandboxChannelInput struct {
10579	_ struct{} `type:"structure"`
10580
10581	// ApplicationId is a required field
10582	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10583}
10584
10585// String returns the string representation
10586func (s GetApnsSandboxChannelInput) String() string {
10587	return awsutil.Prettify(s)
10588}
10589
10590// GoString returns the string representation
10591func (s GetApnsSandboxChannelInput) GoString() string {
10592	return s.String()
10593}
10594
10595// Validate inspects the fields of the type to determine if they are valid.
10596func (s *GetApnsSandboxChannelInput) Validate() error {
10597	invalidParams := request.ErrInvalidParams{Context: "GetApnsSandboxChannelInput"}
10598	if s.ApplicationId == nil {
10599		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10600	}
10601
10602	if invalidParams.Len() > 0 {
10603		return invalidParams
10604	}
10605	return nil
10606}
10607
10608// SetApplicationId sets the ApplicationId field's value.
10609func (s *GetApnsSandboxChannelInput) SetApplicationId(v string) *GetApnsSandboxChannelInput {
10610	s.ApplicationId = &v
10611	return s
10612}
10613
10614// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsSandboxChannelResponse
10615type GetApnsSandboxChannelOutput struct {
10616	_ struct{} `type:"structure" payload:"APNSSandboxChannelResponse"`
10617
10618	// Apple Development Push Notification Service channel definition.
10619	//
10620	// APNSSandboxChannelResponse is a required field
10621	APNSSandboxChannelResponse *APNSSandboxChannelResponse `type:"structure" required:"true"`
10622}
10623
10624// String returns the string representation
10625func (s GetApnsSandboxChannelOutput) String() string {
10626	return awsutil.Prettify(s)
10627}
10628
10629// GoString returns the string representation
10630func (s GetApnsSandboxChannelOutput) GoString() string {
10631	return s.String()
10632}
10633
10634// SetAPNSSandboxChannelResponse sets the APNSSandboxChannelResponse field's value.
10635func (s *GetApnsSandboxChannelOutput) SetAPNSSandboxChannelResponse(v *APNSSandboxChannelResponse) *GetApnsSandboxChannelOutput {
10636	s.APNSSandboxChannelResponse = v
10637	return s
10638}
10639
10640// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipChannelRequest
10641type GetApnsVoipChannelInput struct {
10642	_ struct{} `type:"structure"`
10643
10644	// ApplicationId is a required field
10645	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10646}
10647
10648// String returns the string representation
10649func (s GetApnsVoipChannelInput) String() string {
10650	return awsutil.Prettify(s)
10651}
10652
10653// GoString returns the string representation
10654func (s GetApnsVoipChannelInput) GoString() string {
10655	return s.String()
10656}
10657
10658// Validate inspects the fields of the type to determine if they are valid.
10659func (s *GetApnsVoipChannelInput) Validate() error {
10660	invalidParams := request.ErrInvalidParams{Context: "GetApnsVoipChannelInput"}
10661	if s.ApplicationId == nil {
10662		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10663	}
10664
10665	if invalidParams.Len() > 0 {
10666		return invalidParams
10667	}
10668	return nil
10669}
10670
10671// SetApplicationId sets the ApplicationId field's value.
10672func (s *GetApnsVoipChannelInput) SetApplicationId(v string) *GetApnsVoipChannelInput {
10673	s.ApplicationId = &v
10674	return s
10675}
10676
10677// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipChannelResponse
10678type GetApnsVoipChannelOutput struct {
10679	_ struct{} `type:"structure" payload:"APNSVoipChannelResponse"`
10680
10681	// Apple VOIP Push Notification Service channel definition.
10682	//
10683	// APNSVoipChannelResponse is a required field
10684	APNSVoipChannelResponse *APNSVoipChannelResponse `type:"structure" required:"true"`
10685}
10686
10687// String returns the string representation
10688func (s GetApnsVoipChannelOutput) String() string {
10689	return awsutil.Prettify(s)
10690}
10691
10692// GoString returns the string representation
10693func (s GetApnsVoipChannelOutput) GoString() string {
10694	return s.String()
10695}
10696
10697// SetAPNSVoipChannelResponse sets the APNSVoipChannelResponse field's value.
10698func (s *GetApnsVoipChannelOutput) SetAPNSVoipChannelResponse(v *APNSVoipChannelResponse) *GetApnsVoipChannelOutput {
10699	s.APNSVoipChannelResponse = v
10700	return s
10701}
10702
10703// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipSandboxChannelRequest
10704type GetApnsVoipSandboxChannelInput struct {
10705	_ struct{} `type:"structure"`
10706
10707	// ApplicationId is a required field
10708	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10709}
10710
10711// String returns the string representation
10712func (s GetApnsVoipSandboxChannelInput) String() string {
10713	return awsutil.Prettify(s)
10714}
10715
10716// GoString returns the string representation
10717func (s GetApnsVoipSandboxChannelInput) GoString() string {
10718	return s.String()
10719}
10720
10721// Validate inspects the fields of the type to determine if they are valid.
10722func (s *GetApnsVoipSandboxChannelInput) Validate() error {
10723	invalidParams := request.ErrInvalidParams{Context: "GetApnsVoipSandboxChannelInput"}
10724	if s.ApplicationId == nil {
10725		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10726	}
10727
10728	if invalidParams.Len() > 0 {
10729		return invalidParams
10730	}
10731	return nil
10732}
10733
10734// SetApplicationId sets the ApplicationId field's value.
10735func (s *GetApnsVoipSandboxChannelInput) SetApplicationId(v string) *GetApnsVoipSandboxChannelInput {
10736	s.ApplicationId = &v
10737	return s
10738}
10739
10740// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApnsVoipSandboxChannelResponse
10741type GetApnsVoipSandboxChannelOutput struct {
10742	_ struct{} `type:"structure" payload:"APNSVoipSandboxChannelResponse"`
10743
10744	// Apple VOIP Developer Push Notification Service channel definition.
10745	//
10746	// APNSVoipSandboxChannelResponse is a required field
10747	APNSVoipSandboxChannelResponse *APNSVoipSandboxChannelResponse `type:"structure" required:"true"`
10748}
10749
10750// String returns the string representation
10751func (s GetApnsVoipSandboxChannelOutput) String() string {
10752	return awsutil.Prettify(s)
10753}
10754
10755// GoString returns the string representation
10756func (s GetApnsVoipSandboxChannelOutput) GoString() string {
10757	return s.String()
10758}
10759
10760// SetAPNSVoipSandboxChannelResponse sets the APNSVoipSandboxChannelResponse field's value.
10761func (s *GetApnsVoipSandboxChannelOutput) SetAPNSVoipSandboxChannelResponse(v *APNSVoipSandboxChannelResponse) *GetApnsVoipSandboxChannelOutput {
10762	s.APNSVoipSandboxChannelResponse = v
10763	return s
10764}
10765
10766// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAppRequest
10767type GetAppInput struct {
10768	_ struct{} `type:"structure"`
10769
10770	// ApplicationId is a required field
10771	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10772}
10773
10774// String returns the string representation
10775func (s GetAppInput) String() string {
10776	return awsutil.Prettify(s)
10777}
10778
10779// GoString returns the string representation
10780func (s GetAppInput) GoString() string {
10781	return s.String()
10782}
10783
10784// Validate inspects the fields of the type to determine if they are valid.
10785func (s *GetAppInput) Validate() error {
10786	invalidParams := request.ErrInvalidParams{Context: "GetAppInput"}
10787	if s.ApplicationId == nil {
10788		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10789	}
10790
10791	if invalidParams.Len() > 0 {
10792		return invalidParams
10793	}
10794	return nil
10795}
10796
10797// SetApplicationId sets the ApplicationId field's value.
10798func (s *GetAppInput) SetApplicationId(v string) *GetAppInput {
10799	s.ApplicationId = &v
10800	return s
10801}
10802
10803// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAppResponse
10804type GetAppOutput struct {
10805	_ struct{} `type:"structure" payload:"ApplicationResponse"`
10806
10807	// Application Response.
10808	//
10809	// ApplicationResponse is a required field
10810	ApplicationResponse *ApplicationResponse `type:"structure" required:"true"`
10811}
10812
10813// String returns the string representation
10814func (s GetAppOutput) String() string {
10815	return awsutil.Prettify(s)
10816}
10817
10818// GoString returns the string representation
10819func (s GetAppOutput) GoString() string {
10820	return s.String()
10821}
10822
10823// SetApplicationResponse sets the ApplicationResponse field's value.
10824func (s *GetAppOutput) SetApplicationResponse(v *ApplicationResponse) *GetAppOutput {
10825	s.ApplicationResponse = v
10826	return s
10827}
10828
10829// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApplicationSettingsRequest
10830type GetApplicationSettingsInput struct {
10831	_ struct{} `type:"structure"`
10832
10833	// ApplicationId is a required field
10834	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10835}
10836
10837// String returns the string representation
10838func (s GetApplicationSettingsInput) String() string {
10839	return awsutil.Prettify(s)
10840}
10841
10842// GoString returns the string representation
10843func (s GetApplicationSettingsInput) GoString() string {
10844	return s.String()
10845}
10846
10847// Validate inspects the fields of the type to determine if they are valid.
10848func (s *GetApplicationSettingsInput) Validate() error {
10849	invalidParams := request.ErrInvalidParams{Context: "GetApplicationSettingsInput"}
10850	if s.ApplicationId == nil {
10851		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10852	}
10853
10854	if invalidParams.Len() > 0 {
10855		return invalidParams
10856	}
10857	return nil
10858}
10859
10860// SetApplicationId sets the ApplicationId field's value.
10861func (s *GetApplicationSettingsInput) SetApplicationId(v string) *GetApplicationSettingsInput {
10862	s.ApplicationId = &v
10863	return s
10864}
10865
10866// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetApplicationSettingsResponse
10867type GetApplicationSettingsOutput struct {
10868	_ struct{} `type:"structure" payload:"ApplicationSettingsResource"`
10869
10870	// Application settings.
10871	//
10872	// ApplicationSettingsResource is a required field
10873	ApplicationSettingsResource *ApplicationSettingsResource `type:"structure" required:"true"`
10874}
10875
10876// String returns the string representation
10877func (s GetApplicationSettingsOutput) String() string {
10878	return awsutil.Prettify(s)
10879}
10880
10881// GoString returns the string representation
10882func (s GetApplicationSettingsOutput) GoString() string {
10883	return s.String()
10884}
10885
10886// SetApplicationSettingsResource sets the ApplicationSettingsResource field's value.
10887func (s *GetApplicationSettingsOutput) SetApplicationSettingsResource(v *ApplicationSettingsResource) *GetApplicationSettingsOutput {
10888	s.ApplicationSettingsResource = v
10889	return s
10890}
10891
10892// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAppsRequest
10893type GetAppsInput struct {
10894	_ struct{} `type:"structure"`
10895
10896	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
10897
10898	Token *string `location:"querystring" locationName:"token" type:"string"`
10899}
10900
10901// String returns the string representation
10902func (s GetAppsInput) String() string {
10903	return awsutil.Prettify(s)
10904}
10905
10906// GoString returns the string representation
10907func (s GetAppsInput) GoString() string {
10908	return s.String()
10909}
10910
10911// SetPageSize sets the PageSize field's value.
10912func (s *GetAppsInput) SetPageSize(v string) *GetAppsInput {
10913	s.PageSize = &v
10914	return s
10915}
10916
10917// SetToken sets the Token field's value.
10918func (s *GetAppsInput) SetToken(v string) *GetAppsInput {
10919	s.Token = &v
10920	return s
10921}
10922
10923// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetAppsResponse
10924type GetAppsOutput struct {
10925	_ struct{} `type:"structure" payload:"ApplicationsResponse"`
10926
10927	// Get Applications Result.
10928	//
10929	// ApplicationsResponse is a required field
10930	ApplicationsResponse *ApplicationsResponse `type:"structure" required:"true"`
10931}
10932
10933// String returns the string representation
10934func (s GetAppsOutput) String() string {
10935	return awsutil.Prettify(s)
10936}
10937
10938// GoString returns the string representation
10939func (s GetAppsOutput) GoString() string {
10940	return s.String()
10941}
10942
10943// SetApplicationsResponse sets the ApplicationsResponse field's value.
10944func (s *GetAppsOutput) SetApplicationsResponse(v *ApplicationsResponse) *GetAppsOutput {
10945	s.ApplicationsResponse = v
10946	return s
10947}
10948
10949// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetBaiduChannelRequest
10950type GetBaiduChannelInput struct {
10951	_ struct{} `type:"structure"`
10952
10953	// ApplicationId is a required field
10954	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
10955}
10956
10957// String returns the string representation
10958func (s GetBaiduChannelInput) String() string {
10959	return awsutil.Prettify(s)
10960}
10961
10962// GoString returns the string representation
10963func (s GetBaiduChannelInput) GoString() string {
10964	return s.String()
10965}
10966
10967// Validate inspects the fields of the type to determine if they are valid.
10968func (s *GetBaiduChannelInput) Validate() error {
10969	invalidParams := request.ErrInvalidParams{Context: "GetBaiduChannelInput"}
10970	if s.ApplicationId == nil {
10971		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
10972	}
10973
10974	if invalidParams.Len() > 0 {
10975		return invalidParams
10976	}
10977	return nil
10978}
10979
10980// SetApplicationId sets the ApplicationId field's value.
10981func (s *GetBaiduChannelInput) SetApplicationId(v string) *GetBaiduChannelInput {
10982	s.ApplicationId = &v
10983	return s
10984}
10985
10986// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetBaiduChannelResponse
10987type GetBaiduChannelOutput struct {
10988	_ struct{} `type:"structure" payload:"BaiduChannelResponse"`
10989
10990	// Baidu Cloud Messaging channel definition
10991	//
10992	// BaiduChannelResponse is a required field
10993	BaiduChannelResponse *BaiduChannelResponse `type:"structure" required:"true"`
10994}
10995
10996// String returns the string representation
10997func (s GetBaiduChannelOutput) String() string {
10998	return awsutil.Prettify(s)
10999}
11000
11001// GoString returns the string representation
11002func (s GetBaiduChannelOutput) GoString() string {
11003	return s.String()
11004}
11005
11006// SetBaiduChannelResponse sets the BaiduChannelResponse field's value.
11007func (s *GetBaiduChannelOutput) SetBaiduChannelResponse(v *BaiduChannelResponse) *GetBaiduChannelOutput {
11008	s.BaiduChannelResponse = v
11009	return s
11010}
11011
11012// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignActivitiesRequest
11013type GetCampaignActivitiesInput struct {
11014	_ struct{} `type:"structure"`
11015
11016	// ApplicationId is a required field
11017	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11018
11019	// CampaignId is a required field
11020	CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"`
11021
11022	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
11023
11024	Token *string `location:"querystring" locationName:"token" type:"string"`
11025}
11026
11027// String returns the string representation
11028func (s GetCampaignActivitiesInput) String() string {
11029	return awsutil.Prettify(s)
11030}
11031
11032// GoString returns the string representation
11033func (s GetCampaignActivitiesInput) GoString() string {
11034	return s.String()
11035}
11036
11037// Validate inspects the fields of the type to determine if they are valid.
11038func (s *GetCampaignActivitiesInput) Validate() error {
11039	invalidParams := request.ErrInvalidParams{Context: "GetCampaignActivitiesInput"}
11040	if s.ApplicationId == nil {
11041		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11042	}
11043	if s.CampaignId == nil {
11044		invalidParams.Add(request.NewErrParamRequired("CampaignId"))
11045	}
11046
11047	if invalidParams.Len() > 0 {
11048		return invalidParams
11049	}
11050	return nil
11051}
11052
11053// SetApplicationId sets the ApplicationId field's value.
11054func (s *GetCampaignActivitiesInput) SetApplicationId(v string) *GetCampaignActivitiesInput {
11055	s.ApplicationId = &v
11056	return s
11057}
11058
11059// SetCampaignId sets the CampaignId field's value.
11060func (s *GetCampaignActivitiesInput) SetCampaignId(v string) *GetCampaignActivitiesInput {
11061	s.CampaignId = &v
11062	return s
11063}
11064
11065// SetPageSize sets the PageSize field's value.
11066func (s *GetCampaignActivitiesInput) SetPageSize(v string) *GetCampaignActivitiesInput {
11067	s.PageSize = &v
11068	return s
11069}
11070
11071// SetToken sets the Token field's value.
11072func (s *GetCampaignActivitiesInput) SetToken(v string) *GetCampaignActivitiesInput {
11073	s.Token = &v
11074	return s
11075}
11076
11077// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignActivitiesResponse
11078type GetCampaignActivitiesOutput struct {
11079	_ struct{} `type:"structure" payload:"ActivitiesResponse"`
11080
11081	// Activities for campaign.
11082	//
11083	// ActivitiesResponse is a required field
11084	ActivitiesResponse *ActivitiesResponse `type:"structure" required:"true"`
11085}
11086
11087// String returns the string representation
11088func (s GetCampaignActivitiesOutput) String() string {
11089	return awsutil.Prettify(s)
11090}
11091
11092// GoString returns the string representation
11093func (s GetCampaignActivitiesOutput) GoString() string {
11094	return s.String()
11095}
11096
11097// SetActivitiesResponse sets the ActivitiesResponse field's value.
11098func (s *GetCampaignActivitiesOutput) SetActivitiesResponse(v *ActivitiesResponse) *GetCampaignActivitiesOutput {
11099	s.ActivitiesResponse = v
11100	return s
11101}
11102
11103// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignRequest
11104type GetCampaignInput struct {
11105	_ struct{} `type:"structure"`
11106
11107	// ApplicationId is a required field
11108	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11109
11110	// CampaignId is a required field
11111	CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"`
11112}
11113
11114// String returns the string representation
11115func (s GetCampaignInput) String() string {
11116	return awsutil.Prettify(s)
11117}
11118
11119// GoString returns the string representation
11120func (s GetCampaignInput) GoString() string {
11121	return s.String()
11122}
11123
11124// Validate inspects the fields of the type to determine if they are valid.
11125func (s *GetCampaignInput) Validate() error {
11126	invalidParams := request.ErrInvalidParams{Context: "GetCampaignInput"}
11127	if s.ApplicationId == nil {
11128		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11129	}
11130	if s.CampaignId == nil {
11131		invalidParams.Add(request.NewErrParamRequired("CampaignId"))
11132	}
11133
11134	if invalidParams.Len() > 0 {
11135		return invalidParams
11136	}
11137	return nil
11138}
11139
11140// SetApplicationId sets the ApplicationId field's value.
11141func (s *GetCampaignInput) SetApplicationId(v string) *GetCampaignInput {
11142	s.ApplicationId = &v
11143	return s
11144}
11145
11146// SetCampaignId sets the CampaignId field's value.
11147func (s *GetCampaignInput) SetCampaignId(v string) *GetCampaignInput {
11148	s.CampaignId = &v
11149	return s
11150}
11151
11152// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignResponse
11153type GetCampaignOutput struct {
11154	_ struct{} `type:"structure" payload:"CampaignResponse"`
11155
11156	// Campaign definition
11157	//
11158	// CampaignResponse is a required field
11159	CampaignResponse *CampaignResponse `type:"structure" required:"true"`
11160}
11161
11162// String returns the string representation
11163func (s GetCampaignOutput) String() string {
11164	return awsutil.Prettify(s)
11165}
11166
11167// GoString returns the string representation
11168func (s GetCampaignOutput) GoString() string {
11169	return s.String()
11170}
11171
11172// SetCampaignResponse sets the CampaignResponse field's value.
11173func (s *GetCampaignOutput) SetCampaignResponse(v *CampaignResponse) *GetCampaignOutput {
11174	s.CampaignResponse = v
11175	return s
11176}
11177
11178// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersionRequest
11179type GetCampaignVersionInput struct {
11180	_ struct{} `type:"structure"`
11181
11182	// ApplicationId is a required field
11183	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11184
11185	// CampaignId is a required field
11186	CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"`
11187
11188	// Version is a required field
11189	Version *string `location:"uri" locationName:"version" type:"string" required:"true"`
11190}
11191
11192// String returns the string representation
11193func (s GetCampaignVersionInput) String() string {
11194	return awsutil.Prettify(s)
11195}
11196
11197// GoString returns the string representation
11198func (s GetCampaignVersionInput) GoString() string {
11199	return s.String()
11200}
11201
11202// Validate inspects the fields of the type to determine if they are valid.
11203func (s *GetCampaignVersionInput) Validate() error {
11204	invalidParams := request.ErrInvalidParams{Context: "GetCampaignVersionInput"}
11205	if s.ApplicationId == nil {
11206		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11207	}
11208	if s.CampaignId == nil {
11209		invalidParams.Add(request.NewErrParamRequired("CampaignId"))
11210	}
11211	if s.Version == nil {
11212		invalidParams.Add(request.NewErrParamRequired("Version"))
11213	}
11214
11215	if invalidParams.Len() > 0 {
11216		return invalidParams
11217	}
11218	return nil
11219}
11220
11221// SetApplicationId sets the ApplicationId field's value.
11222func (s *GetCampaignVersionInput) SetApplicationId(v string) *GetCampaignVersionInput {
11223	s.ApplicationId = &v
11224	return s
11225}
11226
11227// SetCampaignId sets the CampaignId field's value.
11228func (s *GetCampaignVersionInput) SetCampaignId(v string) *GetCampaignVersionInput {
11229	s.CampaignId = &v
11230	return s
11231}
11232
11233// SetVersion sets the Version field's value.
11234func (s *GetCampaignVersionInput) SetVersion(v string) *GetCampaignVersionInput {
11235	s.Version = &v
11236	return s
11237}
11238
11239// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersionResponse
11240type GetCampaignVersionOutput struct {
11241	_ struct{} `type:"structure" payload:"CampaignResponse"`
11242
11243	// Campaign definition
11244	//
11245	// CampaignResponse is a required field
11246	CampaignResponse *CampaignResponse `type:"structure" required:"true"`
11247}
11248
11249// String returns the string representation
11250func (s GetCampaignVersionOutput) String() string {
11251	return awsutil.Prettify(s)
11252}
11253
11254// GoString returns the string representation
11255func (s GetCampaignVersionOutput) GoString() string {
11256	return s.String()
11257}
11258
11259// SetCampaignResponse sets the CampaignResponse field's value.
11260func (s *GetCampaignVersionOutput) SetCampaignResponse(v *CampaignResponse) *GetCampaignVersionOutput {
11261	s.CampaignResponse = v
11262	return s
11263}
11264
11265// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersionsRequest
11266type GetCampaignVersionsInput struct {
11267	_ struct{} `type:"structure"`
11268
11269	// ApplicationId is a required field
11270	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11271
11272	// CampaignId is a required field
11273	CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"`
11274
11275	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
11276
11277	Token *string `location:"querystring" locationName:"token" type:"string"`
11278}
11279
11280// String returns the string representation
11281func (s GetCampaignVersionsInput) String() string {
11282	return awsutil.Prettify(s)
11283}
11284
11285// GoString returns the string representation
11286func (s GetCampaignVersionsInput) GoString() string {
11287	return s.String()
11288}
11289
11290// Validate inspects the fields of the type to determine if they are valid.
11291func (s *GetCampaignVersionsInput) Validate() error {
11292	invalidParams := request.ErrInvalidParams{Context: "GetCampaignVersionsInput"}
11293	if s.ApplicationId == nil {
11294		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11295	}
11296	if s.CampaignId == nil {
11297		invalidParams.Add(request.NewErrParamRequired("CampaignId"))
11298	}
11299
11300	if invalidParams.Len() > 0 {
11301		return invalidParams
11302	}
11303	return nil
11304}
11305
11306// SetApplicationId sets the ApplicationId field's value.
11307func (s *GetCampaignVersionsInput) SetApplicationId(v string) *GetCampaignVersionsInput {
11308	s.ApplicationId = &v
11309	return s
11310}
11311
11312// SetCampaignId sets the CampaignId field's value.
11313func (s *GetCampaignVersionsInput) SetCampaignId(v string) *GetCampaignVersionsInput {
11314	s.CampaignId = &v
11315	return s
11316}
11317
11318// SetPageSize sets the PageSize field's value.
11319func (s *GetCampaignVersionsInput) SetPageSize(v string) *GetCampaignVersionsInput {
11320	s.PageSize = &v
11321	return s
11322}
11323
11324// SetToken sets the Token field's value.
11325func (s *GetCampaignVersionsInput) SetToken(v string) *GetCampaignVersionsInput {
11326	s.Token = &v
11327	return s
11328}
11329
11330// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignVersionsResponse
11331type GetCampaignVersionsOutput struct {
11332	_ struct{} `type:"structure" payload:"CampaignsResponse"`
11333
11334	// List of available campaigns.
11335	//
11336	// CampaignsResponse is a required field
11337	CampaignsResponse *CampaignsResponse `type:"structure" required:"true"`
11338}
11339
11340// String returns the string representation
11341func (s GetCampaignVersionsOutput) String() string {
11342	return awsutil.Prettify(s)
11343}
11344
11345// GoString returns the string representation
11346func (s GetCampaignVersionsOutput) GoString() string {
11347	return s.String()
11348}
11349
11350// SetCampaignsResponse sets the CampaignsResponse field's value.
11351func (s *GetCampaignVersionsOutput) SetCampaignsResponse(v *CampaignsResponse) *GetCampaignVersionsOutput {
11352	s.CampaignsResponse = v
11353	return s
11354}
11355
11356// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignsRequest
11357type GetCampaignsInput struct {
11358	_ struct{} `type:"structure"`
11359
11360	// ApplicationId is a required field
11361	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11362
11363	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
11364
11365	Token *string `location:"querystring" locationName:"token" type:"string"`
11366}
11367
11368// String returns the string representation
11369func (s GetCampaignsInput) String() string {
11370	return awsutil.Prettify(s)
11371}
11372
11373// GoString returns the string representation
11374func (s GetCampaignsInput) GoString() string {
11375	return s.String()
11376}
11377
11378// Validate inspects the fields of the type to determine if they are valid.
11379func (s *GetCampaignsInput) Validate() error {
11380	invalidParams := request.ErrInvalidParams{Context: "GetCampaignsInput"}
11381	if s.ApplicationId == nil {
11382		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11383	}
11384
11385	if invalidParams.Len() > 0 {
11386		return invalidParams
11387	}
11388	return nil
11389}
11390
11391// SetApplicationId sets the ApplicationId field's value.
11392func (s *GetCampaignsInput) SetApplicationId(v string) *GetCampaignsInput {
11393	s.ApplicationId = &v
11394	return s
11395}
11396
11397// SetPageSize sets the PageSize field's value.
11398func (s *GetCampaignsInput) SetPageSize(v string) *GetCampaignsInput {
11399	s.PageSize = &v
11400	return s
11401}
11402
11403// SetToken sets the Token field's value.
11404func (s *GetCampaignsInput) SetToken(v string) *GetCampaignsInput {
11405	s.Token = &v
11406	return s
11407}
11408
11409// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetCampaignsResponse
11410type GetCampaignsOutput struct {
11411	_ struct{} `type:"structure" payload:"CampaignsResponse"`
11412
11413	// List of available campaigns.
11414	//
11415	// CampaignsResponse is a required field
11416	CampaignsResponse *CampaignsResponse `type:"structure" required:"true"`
11417}
11418
11419// String returns the string representation
11420func (s GetCampaignsOutput) String() string {
11421	return awsutil.Prettify(s)
11422}
11423
11424// GoString returns the string representation
11425func (s GetCampaignsOutput) GoString() string {
11426	return s.String()
11427}
11428
11429// SetCampaignsResponse sets the CampaignsResponse field's value.
11430func (s *GetCampaignsOutput) SetCampaignsResponse(v *CampaignsResponse) *GetCampaignsOutput {
11431	s.CampaignsResponse = v
11432	return s
11433}
11434
11435// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEmailChannelRequest
11436type GetEmailChannelInput struct {
11437	_ struct{} `type:"structure"`
11438
11439	// ApplicationId is a required field
11440	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11441}
11442
11443// String returns the string representation
11444func (s GetEmailChannelInput) String() string {
11445	return awsutil.Prettify(s)
11446}
11447
11448// GoString returns the string representation
11449func (s GetEmailChannelInput) GoString() string {
11450	return s.String()
11451}
11452
11453// Validate inspects the fields of the type to determine if they are valid.
11454func (s *GetEmailChannelInput) Validate() error {
11455	invalidParams := request.ErrInvalidParams{Context: "GetEmailChannelInput"}
11456	if s.ApplicationId == nil {
11457		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11458	}
11459
11460	if invalidParams.Len() > 0 {
11461		return invalidParams
11462	}
11463	return nil
11464}
11465
11466// SetApplicationId sets the ApplicationId field's value.
11467func (s *GetEmailChannelInput) SetApplicationId(v string) *GetEmailChannelInput {
11468	s.ApplicationId = &v
11469	return s
11470}
11471
11472// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEmailChannelResponse
11473type GetEmailChannelOutput struct {
11474	_ struct{} `type:"structure" payload:"EmailChannelResponse"`
11475
11476	// Email Channel Response.
11477	//
11478	// EmailChannelResponse is a required field
11479	EmailChannelResponse *EmailChannelResponse `type:"structure" required:"true"`
11480}
11481
11482// String returns the string representation
11483func (s GetEmailChannelOutput) String() string {
11484	return awsutil.Prettify(s)
11485}
11486
11487// GoString returns the string representation
11488func (s GetEmailChannelOutput) GoString() string {
11489	return s.String()
11490}
11491
11492// SetEmailChannelResponse sets the EmailChannelResponse field's value.
11493func (s *GetEmailChannelOutput) SetEmailChannelResponse(v *EmailChannelResponse) *GetEmailChannelOutput {
11494	s.EmailChannelResponse = v
11495	return s
11496}
11497
11498// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEndpointRequest
11499type GetEndpointInput struct {
11500	_ struct{} `type:"structure"`
11501
11502	// ApplicationId is a required field
11503	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11504
11505	// EndpointId is a required field
11506	EndpointId *string `location:"uri" locationName:"endpoint-id" type:"string" required:"true"`
11507}
11508
11509// String returns the string representation
11510func (s GetEndpointInput) String() string {
11511	return awsutil.Prettify(s)
11512}
11513
11514// GoString returns the string representation
11515func (s GetEndpointInput) GoString() string {
11516	return s.String()
11517}
11518
11519// Validate inspects the fields of the type to determine if they are valid.
11520func (s *GetEndpointInput) Validate() error {
11521	invalidParams := request.ErrInvalidParams{Context: "GetEndpointInput"}
11522	if s.ApplicationId == nil {
11523		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11524	}
11525	if s.EndpointId == nil {
11526		invalidParams.Add(request.NewErrParamRequired("EndpointId"))
11527	}
11528
11529	if invalidParams.Len() > 0 {
11530		return invalidParams
11531	}
11532	return nil
11533}
11534
11535// SetApplicationId sets the ApplicationId field's value.
11536func (s *GetEndpointInput) SetApplicationId(v string) *GetEndpointInput {
11537	s.ApplicationId = &v
11538	return s
11539}
11540
11541// SetEndpointId sets the EndpointId field's value.
11542func (s *GetEndpointInput) SetEndpointId(v string) *GetEndpointInput {
11543	s.EndpointId = &v
11544	return s
11545}
11546
11547// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEndpointResponse
11548type GetEndpointOutput struct {
11549	_ struct{} `type:"structure" payload:"EndpointResponse"`
11550
11551	// Endpoint response
11552	//
11553	// EndpointResponse is a required field
11554	EndpointResponse *EndpointResponse `type:"structure" required:"true"`
11555}
11556
11557// String returns the string representation
11558func (s GetEndpointOutput) String() string {
11559	return awsutil.Prettify(s)
11560}
11561
11562// GoString returns the string representation
11563func (s GetEndpointOutput) GoString() string {
11564	return s.String()
11565}
11566
11567// SetEndpointResponse sets the EndpointResponse field's value.
11568func (s *GetEndpointOutput) SetEndpointResponse(v *EndpointResponse) *GetEndpointOutput {
11569	s.EndpointResponse = v
11570	return s
11571}
11572
11573// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEventStreamRequest
11574type GetEventStreamInput struct {
11575	_ struct{} `type:"structure"`
11576
11577	// Application Id.
11578	//
11579	// ApplicationId is a required field
11580	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11581}
11582
11583// String returns the string representation
11584func (s GetEventStreamInput) String() string {
11585	return awsutil.Prettify(s)
11586}
11587
11588// GoString returns the string representation
11589func (s GetEventStreamInput) GoString() string {
11590	return s.String()
11591}
11592
11593// Validate inspects the fields of the type to determine if they are valid.
11594func (s *GetEventStreamInput) Validate() error {
11595	invalidParams := request.ErrInvalidParams{Context: "GetEventStreamInput"}
11596	if s.ApplicationId == nil {
11597		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11598	}
11599
11600	if invalidParams.Len() > 0 {
11601		return invalidParams
11602	}
11603	return nil
11604}
11605
11606// SetApplicationId sets the ApplicationId field's value.
11607func (s *GetEventStreamInput) SetApplicationId(v string) *GetEventStreamInput {
11608	s.ApplicationId = &v
11609	return s
11610}
11611
11612// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetEventStreamResponse
11613type GetEventStreamOutput struct {
11614	_ struct{} `type:"structure" payload:"EventStream"`
11615
11616	// Model for an event publishing subscription export.
11617	//
11618	// EventStream is a required field
11619	EventStream *EventStream `type:"structure" required:"true"`
11620}
11621
11622// String returns the string representation
11623func (s GetEventStreamOutput) String() string {
11624	return awsutil.Prettify(s)
11625}
11626
11627// GoString returns the string representation
11628func (s GetEventStreamOutput) GoString() string {
11629	return s.String()
11630}
11631
11632// SetEventStream sets the EventStream field's value.
11633func (s *GetEventStreamOutput) SetEventStream(v *EventStream) *GetEventStreamOutput {
11634	s.EventStream = v
11635	return s
11636}
11637
11638// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetGcmChannelRequest
11639type GetGcmChannelInput struct {
11640	_ struct{} `type:"structure"`
11641
11642	// ApplicationId is a required field
11643	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11644}
11645
11646// String returns the string representation
11647func (s GetGcmChannelInput) String() string {
11648	return awsutil.Prettify(s)
11649}
11650
11651// GoString returns the string representation
11652func (s GetGcmChannelInput) GoString() string {
11653	return s.String()
11654}
11655
11656// Validate inspects the fields of the type to determine if they are valid.
11657func (s *GetGcmChannelInput) Validate() error {
11658	invalidParams := request.ErrInvalidParams{Context: "GetGcmChannelInput"}
11659	if s.ApplicationId == nil {
11660		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11661	}
11662
11663	if invalidParams.Len() > 0 {
11664		return invalidParams
11665	}
11666	return nil
11667}
11668
11669// SetApplicationId sets the ApplicationId field's value.
11670func (s *GetGcmChannelInput) SetApplicationId(v string) *GetGcmChannelInput {
11671	s.ApplicationId = &v
11672	return s
11673}
11674
11675// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetGcmChannelResponse
11676type GetGcmChannelOutput struct {
11677	_ struct{} `type:"structure" payload:"GCMChannelResponse"`
11678
11679	// Google Cloud Messaging channel definition
11680	//
11681	// GCMChannelResponse is a required field
11682	GCMChannelResponse *GCMChannelResponse `type:"structure" required:"true"`
11683}
11684
11685// String returns the string representation
11686func (s GetGcmChannelOutput) String() string {
11687	return awsutil.Prettify(s)
11688}
11689
11690// GoString returns the string representation
11691func (s GetGcmChannelOutput) GoString() string {
11692	return s.String()
11693}
11694
11695// SetGCMChannelResponse sets the GCMChannelResponse field's value.
11696func (s *GetGcmChannelOutput) SetGCMChannelResponse(v *GCMChannelResponse) *GetGcmChannelOutput {
11697	s.GCMChannelResponse = v
11698	return s
11699}
11700
11701// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJobRequest
11702type GetImportJobInput struct {
11703	_ struct{} `type:"structure"`
11704
11705	// ApplicationId is a required field
11706	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11707
11708	// JobId is a required field
11709	JobId *string `location:"uri" locationName:"job-id" type:"string" required:"true"`
11710}
11711
11712// String returns the string representation
11713func (s GetImportJobInput) String() string {
11714	return awsutil.Prettify(s)
11715}
11716
11717// GoString returns the string representation
11718func (s GetImportJobInput) GoString() string {
11719	return s.String()
11720}
11721
11722// Validate inspects the fields of the type to determine if they are valid.
11723func (s *GetImportJobInput) Validate() error {
11724	invalidParams := request.ErrInvalidParams{Context: "GetImportJobInput"}
11725	if s.ApplicationId == nil {
11726		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11727	}
11728	if s.JobId == nil {
11729		invalidParams.Add(request.NewErrParamRequired("JobId"))
11730	}
11731
11732	if invalidParams.Len() > 0 {
11733		return invalidParams
11734	}
11735	return nil
11736}
11737
11738// SetApplicationId sets the ApplicationId field's value.
11739func (s *GetImportJobInput) SetApplicationId(v string) *GetImportJobInput {
11740	s.ApplicationId = &v
11741	return s
11742}
11743
11744// SetJobId sets the JobId field's value.
11745func (s *GetImportJobInput) SetJobId(v string) *GetImportJobInput {
11746	s.JobId = &v
11747	return s
11748}
11749
11750// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJobResponse
11751type GetImportJobOutput struct {
11752	_ struct{} `type:"structure" payload:"ImportJobResponse"`
11753
11754	// ImportJobResponse is a required field
11755	ImportJobResponse *ImportJobResponse `type:"structure" required:"true"`
11756}
11757
11758// String returns the string representation
11759func (s GetImportJobOutput) String() string {
11760	return awsutil.Prettify(s)
11761}
11762
11763// GoString returns the string representation
11764func (s GetImportJobOutput) GoString() string {
11765	return s.String()
11766}
11767
11768// SetImportJobResponse sets the ImportJobResponse field's value.
11769func (s *GetImportJobOutput) SetImportJobResponse(v *ImportJobResponse) *GetImportJobOutput {
11770	s.ImportJobResponse = v
11771	return s
11772}
11773
11774// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJobsRequest
11775type GetImportJobsInput struct {
11776	_ struct{} `type:"structure"`
11777
11778	// ApplicationId is a required field
11779	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11780
11781	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
11782
11783	Token *string `location:"querystring" locationName:"token" type:"string"`
11784}
11785
11786// String returns the string representation
11787func (s GetImportJobsInput) String() string {
11788	return awsutil.Prettify(s)
11789}
11790
11791// GoString returns the string representation
11792func (s GetImportJobsInput) GoString() string {
11793	return s.String()
11794}
11795
11796// Validate inspects the fields of the type to determine if they are valid.
11797func (s *GetImportJobsInput) Validate() error {
11798	invalidParams := request.ErrInvalidParams{Context: "GetImportJobsInput"}
11799	if s.ApplicationId == nil {
11800		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11801	}
11802
11803	if invalidParams.Len() > 0 {
11804		return invalidParams
11805	}
11806	return nil
11807}
11808
11809// SetApplicationId sets the ApplicationId field's value.
11810func (s *GetImportJobsInput) SetApplicationId(v string) *GetImportJobsInput {
11811	s.ApplicationId = &v
11812	return s
11813}
11814
11815// SetPageSize sets the PageSize field's value.
11816func (s *GetImportJobsInput) SetPageSize(v string) *GetImportJobsInput {
11817	s.PageSize = &v
11818	return s
11819}
11820
11821// SetToken sets the Token field's value.
11822func (s *GetImportJobsInput) SetToken(v string) *GetImportJobsInput {
11823	s.Token = &v
11824	return s
11825}
11826
11827// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetImportJobsResponse
11828type GetImportJobsOutput struct {
11829	_ struct{} `type:"structure" payload:"ImportJobsResponse"`
11830
11831	// Import job list.
11832	//
11833	// ImportJobsResponse is a required field
11834	ImportJobsResponse *ImportJobsResponse `type:"structure" required:"true"`
11835}
11836
11837// String returns the string representation
11838func (s GetImportJobsOutput) String() string {
11839	return awsutil.Prettify(s)
11840}
11841
11842// GoString returns the string representation
11843func (s GetImportJobsOutput) GoString() string {
11844	return s.String()
11845}
11846
11847// SetImportJobsResponse sets the ImportJobsResponse field's value.
11848func (s *GetImportJobsOutput) SetImportJobsResponse(v *ImportJobsResponse) *GetImportJobsOutput {
11849	s.ImportJobsResponse = v
11850	return s
11851}
11852
11853// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentImportJobsRequest
11854type GetSegmentImportJobsInput struct {
11855	_ struct{} `type:"structure"`
11856
11857	// ApplicationId is a required field
11858	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11859
11860	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
11861
11862	// SegmentId is a required field
11863	SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"`
11864
11865	Token *string `location:"querystring" locationName:"token" type:"string"`
11866}
11867
11868// String returns the string representation
11869func (s GetSegmentImportJobsInput) String() string {
11870	return awsutil.Prettify(s)
11871}
11872
11873// GoString returns the string representation
11874func (s GetSegmentImportJobsInput) GoString() string {
11875	return s.String()
11876}
11877
11878// Validate inspects the fields of the type to determine if they are valid.
11879func (s *GetSegmentImportJobsInput) Validate() error {
11880	invalidParams := request.ErrInvalidParams{Context: "GetSegmentImportJobsInput"}
11881	if s.ApplicationId == nil {
11882		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11883	}
11884	if s.SegmentId == nil {
11885		invalidParams.Add(request.NewErrParamRequired("SegmentId"))
11886	}
11887
11888	if invalidParams.Len() > 0 {
11889		return invalidParams
11890	}
11891	return nil
11892}
11893
11894// SetApplicationId sets the ApplicationId field's value.
11895func (s *GetSegmentImportJobsInput) SetApplicationId(v string) *GetSegmentImportJobsInput {
11896	s.ApplicationId = &v
11897	return s
11898}
11899
11900// SetPageSize sets the PageSize field's value.
11901func (s *GetSegmentImportJobsInput) SetPageSize(v string) *GetSegmentImportJobsInput {
11902	s.PageSize = &v
11903	return s
11904}
11905
11906// SetSegmentId sets the SegmentId field's value.
11907func (s *GetSegmentImportJobsInput) SetSegmentId(v string) *GetSegmentImportJobsInput {
11908	s.SegmentId = &v
11909	return s
11910}
11911
11912// SetToken sets the Token field's value.
11913func (s *GetSegmentImportJobsInput) SetToken(v string) *GetSegmentImportJobsInput {
11914	s.Token = &v
11915	return s
11916}
11917
11918// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentImportJobsResponse
11919type GetSegmentImportJobsOutput struct {
11920	_ struct{} `type:"structure" payload:"ImportJobsResponse"`
11921
11922	// Import job list.
11923	//
11924	// ImportJobsResponse is a required field
11925	ImportJobsResponse *ImportJobsResponse `type:"structure" required:"true"`
11926}
11927
11928// String returns the string representation
11929func (s GetSegmentImportJobsOutput) String() string {
11930	return awsutil.Prettify(s)
11931}
11932
11933// GoString returns the string representation
11934func (s GetSegmentImportJobsOutput) GoString() string {
11935	return s.String()
11936}
11937
11938// SetImportJobsResponse sets the ImportJobsResponse field's value.
11939func (s *GetSegmentImportJobsOutput) SetImportJobsResponse(v *ImportJobsResponse) *GetSegmentImportJobsOutput {
11940	s.ImportJobsResponse = v
11941	return s
11942}
11943
11944// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentRequest
11945type GetSegmentInput struct {
11946	_ struct{} `type:"structure"`
11947
11948	// ApplicationId is a required field
11949	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
11950
11951	// SegmentId is a required field
11952	SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"`
11953}
11954
11955// String returns the string representation
11956func (s GetSegmentInput) String() string {
11957	return awsutil.Prettify(s)
11958}
11959
11960// GoString returns the string representation
11961func (s GetSegmentInput) GoString() string {
11962	return s.String()
11963}
11964
11965// Validate inspects the fields of the type to determine if they are valid.
11966func (s *GetSegmentInput) Validate() error {
11967	invalidParams := request.ErrInvalidParams{Context: "GetSegmentInput"}
11968	if s.ApplicationId == nil {
11969		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
11970	}
11971	if s.SegmentId == nil {
11972		invalidParams.Add(request.NewErrParamRequired("SegmentId"))
11973	}
11974
11975	if invalidParams.Len() > 0 {
11976		return invalidParams
11977	}
11978	return nil
11979}
11980
11981// SetApplicationId sets the ApplicationId field's value.
11982func (s *GetSegmentInput) SetApplicationId(v string) *GetSegmentInput {
11983	s.ApplicationId = &v
11984	return s
11985}
11986
11987// SetSegmentId sets the SegmentId field's value.
11988func (s *GetSegmentInput) SetSegmentId(v string) *GetSegmentInput {
11989	s.SegmentId = &v
11990	return s
11991}
11992
11993// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentResponse
11994type GetSegmentOutput struct {
11995	_ struct{} `type:"structure" payload:"SegmentResponse"`
11996
11997	// Segment definition.
11998	//
11999	// SegmentResponse is a required field
12000	SegmentResponse *SegmentResponse `type:"structure" required:"true"`
12001}
12002
12003// String returns the string representation
12004func (s GetSegmentOutput) String() string {
12005	return awsutil.Prettify(s)
12006}
12007
12008// GoString returns the string representation
12009func (s GetSegmentOutput) GoString() string {
12010	return s.String()
12011}
12012
12013// SetSegmentResponse sets the SegmentResponse field's value.
12014func (s *GetSegmentOutput) SetSegmentResponse(v *SegmentResponse) *GetSegmentOutput {
12015	s.SegmentResponse = v
12016	return s
12017}
12018
12019// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersionRequest
12020type GetSegmentVersionInput struct {
12021	_ struct{} `type:"structure"`
12022
12023	// ApplicationId is a required field
12024	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
12025
12026	// SegmentId is a required field
12027	SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"`
12028
12029	// Version is a required field
12030	Version *string `location:"uri" locationName:"version" type:"string" required:"true"`
12031}
12032
12033// String returns the string representation
12034func (s GetSegmentVersionInput) String() string {
12035	return awsutil.Prettify(s)
12036}
12037
12038// GoString returns the string representation
12039func (s GetSegmentVersionInput) GoString() string {
12040	return s.String()
12041}
12042
12043// Validate inspects the fields of the type to determine if they are valid.
12044func (s *GetSegmentVersionInput) Validate() error {
12045	invalidParams := request.ErrInvalidParams{Context: "GetSegmentVersionInput"}
12046	if s.ApplicationId == nil {
12047		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
12048	}
12049	if s.SegmentId == nil {
12050		invalidParams.Add(request.NewErrParamRequired("SegmentId"))
12051	}
12052	if s.Version == nil {
12053		invalidParams.Add(request.NewErrParamRequired("Version"))
12054	}
12055
12056	if invalidParams.Len() > 0 {
12057		return invalidParams
12058	}
12059	return nil
12060}
12061
12062// SetApplicationId sets the ApplicationId field's value.
12063func (s *GetSegmentVersionInput) SetApplicationId(v string) *GetSegmentVersionInput {
12064	s.ApplicationId = &v
12065	return s
12066}
12067
12068// SetSegmentId sets the SegmentId field's value.
12069func (s *GetSegmentVersionInput) SetSegmentId(v string) *GetSegmentVersionInput {
12070	s.SegmentId = &v
12071	return s
12072}
12073
12074// SetVersion sets the Version field's value.
12075func (s *GetSegmentVersionInput) SetVersion(v string) *GetSegmentVersionInput {
12076	s.Version = &v
12077	return s
12078}
12079
12080// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersionResponse
12081type GetSegmentVersionOutput struct {
12082	_ struct{} `type:"structure" payload:"SegmentResponse"`
12083
12084	// Segment definition.
12085	//
12086	// SegmentResponse is a required field
12087	SegmentResponse *SegmentResponse `type:"structure" required:"true"`
12088}
12089
12090// String returns the string representation
12091func (s GetSegmentVersionOutput) String() string {
12092	return awsutil.Prettify(s)
12093}
12094
12095// GoString returns the string representation
12096func (s GetSegmentVersionOutput) GoString() string {
12097	return s.String()
12098}
12099
12100// SetSegmentResponse sets the SegmentResponse field's value.
12101func (s *GetSegmentVersionOutput) SetSegmentResponse(v *SegmentResponse) *GetSegmentVersionOutput {
12102	s.SegmentResponse = v
12103	return s
12104}
12105
12106// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersionsRequest
12107type GetSegmentVersionsInput struct {
12108	_ struct{} `type:"structure"`
12109
12110	// ApplicationId is a required field
12111	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
12112
12113	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
12114
12115	// SegmentId is a required field
12116	SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"`
12117
12118	Token *string `location:"querystring" locationName:"token" type:"string"`
12119}
12120
12121// String returns the string representation
12122func (s GetSegmentVersionsInput) String() string {
12123	return awsutil.Prettify(s)
12124}
12125
12126// GoString returns the string representation
12127func (s GetSegmentVersionsInput) GoString() string {
12128	return s.String()
12129}
12130
12131// Validate inspects the fields of the type to determine if they are valid.
12132func (s *GetSegmentVersionsInput) Validate() error {
12133	invalidParams := request.ErrInvalidParams{Context: "GetSegmentVersionsInput"}
12134	if s.ApplicationId == nil {
12135		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
12136	}
12137	if s.SegmentId == nil {
12138		invalidParams.Add(request.NewErrParamRequired("SegmentId"))
12139	}
12140
12141	if invalidParams.Len() > 0 {
12142		return invalidParams
12143	}
12144	return nil
12145}
12146
12147// SetApplicationId sets the ApplicationId field's value.
12148func (s *GetSegmentVersionsInput) SetApplicationId(v string) *GetSegmentVersionsInput {
12149	s.ApplicationId = &v
12150	return s
12151}
12152
12153// SetPageSize sets the PageSize field's value.
12154func (s *GetSegmentVersionsInput) SetPageSize(v string) *GetSegmentVersionsInput {
12155	s.PageSize = &v
12156	return s
12157}
12158
12159// SetSegmentId sets the SegmentId field's value.
12160func (s *GetSegmentVersionsInput) SetSegmentId(v string) *GetSegmentVersionsInput {
12161	s.SegmentId = &v
12162	return s
12163}
12164
12165// SetToken sets the Token field's value.
12166func (s *GetSegmentVersionsInput) SetToken(v string) *GetSegmentVersionsInput {
12167	s.Token = &v
12168	return s
12169}
12170
12171// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentVersionsResponse
12172type GetSegmentVersionsOutput struct {
12173	_ struct{} `type:"structure" payload:"SegmentsResponse"`
12174
12175	// Segments in your account.
12176	//
12177	// SegmentsResponse is a required field
12178	SegmentsResponse *SegmentsResponse `type:"structure" required:"true"`
12179}
12180
12181// String returns the string representation
12182func (s GetSegmentVersionsOutput) String() string {
12183	return awsutil.Prettify(s)
12184}
12185
12186// GoString returns the string representation
12187func (s GetSegmentVersionsOutput) GoString() string {
12188	return s.String()
12189}
12190
12191// SetSegmentsResponse sets the SegmentsResponse field's value.
12192func (s *GetSegmentVersionsOutput) SetSegmentsResponse(v *SegmentsResponse) *GetSegmentVersionsOutput {
12193	s.SegmentsResponse = v
12194	return s
12195}
12196
12197// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentsRequest
12198type GetSegmentsInput struct {
12199	_ struct{} `type:"structure"`
12200
12201	// ApplicationId is a required field
12202	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
12203
12204	PageSize *string `location:"querystring" locationName:"page-size" type:"string"`
12205
12206	Token *string `location:"querystring" locationName:"token" type:"string"`
12207}
12208
12209// String returns the string representation
12210func (s GetSegmentsInput) String() string {
12211	return awsutil.Prettify(s)
12212}
12213
12214// GoString returns the string representation
12215func (s GetSegmentsInput) GoString() string {
12216	return s.String()
12217}
12218
12219// Validate inspects the fields of the type to determine if they are valid.
12220func (s *GetSegmentsInput) Validate() error {
12221	invalidParams := request.ErrInvalidParams{Context: "GetSegmentsInput"}
12222	if s.ApplicationId == nil {
12223		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
12224	}
12225
12226	if invalidParams.Len() > 0 {
12227		return invalidParams
12228	}
12229	return nil
12230}
12231
12232// SetApplicationId sets the ApplicationId field's value.
12233func (s *GetSegmentsInput) SetApplicationId(v string) *GetSegmentsInput {
12234	s.ApplicationId = &v
12235	return s
12236}
12237
12238// SetPageSize sets the PageSize field's value.
12239func (s *GetSegmentsInput) SetPageSize(v string) *GetSegmentsInput {
12240	s.PageSize = &v
12241	return s
12242}
12243
12244// SetToken sets the Token field's value.
12245func (s *GetSegmentsInput) SetToken(v string) *GetSegmentsInput {
12246	s.Token = &v
12247	return s
12248}
12249
12250// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSegmentsResponse
12251type GetSegmentsOutput struct {
12252	_ struct{} `type:"structure" payload:"SegmentsResponse"`
12253
12254	// Segments in your account.
12255	//
12256	// SegmentsResponse is a required field
12257	SegmentsResponse *SegmentsResponse `type:"structure" required:"true"`
12258}
12259
12260// String returns the string representation
12261func (s GetSegmentsOutput) String() string {
12262	return awsutil.Prettify(s)
12263}
12264
12265// GoString returns the string representation
12266func (s GetSegmentsOutput) GoString() string {
12267	return s.String()
12268}
12269
12270// SetSegmentsResponse sets the SegmentsResponse field's value.
12271func (s *GetSegmentsOutput) SetSegmentsResponse(v *SegmentsResponse) *GetSegmentsOutput {
12272	s.SegmentsResponse = v
12273	return s
12274}
12275
12276// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSmsChannelRequest
12277type GetSmsChannelInput struct {
12278	_ struct{} `type:"structure"`
12279
12280	// ApplicationId is a required field
12281	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
12282}
12283
12284// String returns the string representation
12285func (s GetSmsChannelInput) String() string {
12286	return awsutil.Prettify(s)
12287}
12288
12289// GoString returns the string representation
12290func (s GetSmsChannelInput) GoString() string {
12291	return s.String()
12292}
12293
12294// Validate inspects the fields of the type to determine if they are valid.
12295func (s *GetSmsChannelInput) Validate() error {
12296	invalidParams := request.ErrInvalidParams{Context: "GetSmsChannelInput"}
12297	if s.ApplicationId == nil {
12298		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
12299	}
12300
12301	if invalidParams.Len() > 0 {
12302		return invalidParams
12303	}
12304	return nil
12305}
12306
12307// SetApplicationId sets the ApplicationId field's value.
12308func (s *GetSmsChannelInput) SetApplicationId(v string) *GetSmsChannelInput {
12309	s.ApplicationId = &v
12310	return s
12311}
12312
12313// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/GetSmsChannelResponse
12314type GetSmsChannelOutput struct {
12315	_ struct{} `type:"structure" payload:"SMSChannelResponse"`
12316
12317	// SMS Channel Response.
12318	//
12319	// SMSChannelResponse is a required field
12320	SMSChannelResponse *SMSChannelResponse `type:"structure" required:"true"`
12321}
12322
12323// String returns the string representation
12324func (s GetSmsChannelOutput) String() string {
12325	return awsutil.Prettify(s)
12326}
12327
12328// GoString returns the string representation
12329func (s GetSmsChannelOutput) GoString() string {
12330	return s.String()
12331}
12332
12333// SetSMSChannelResponse sets the SMSChannelResponse field's value.
12334func (s *GetSmsChannelOutput) SetSMSChannelResponse(v *SMSChannelResponse) *GetSmsChannelOutput {
12335	s.SMSChannelResponse = v
12336	return s
12337}
12338
12339// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ImportJobRequest
12340type ImportJobRequest struct {
12341	_ struct{} `type:"structure"`
12342
12343	// Sets whether the endpoints create a segment when they are imported.
12344	DefineSegment *bool `type:"boolean"`
12345
12346	// A unique, custom ID assigned to the IAM role that restricts who can assume
12347	// the role.
12348	ExternalId *string `type:"string"`
12349
12350	// The format of the files that contain the endpoint definitions.Valid values:
12351	// CSV, JSON
12352	Format *string `type:"string" enum:"Format"`
12353
12354	// Sets whether the endpoints are registered with Amazon Pinpoint when they
12355	// are imported.
12356	RegisterEndpoints *bool `type:"boolean"`
12357
12358	// The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
12359	// access to the Amazon S3 location that contains the endpoints to import.
12360	RoleArn *string `type:"string"`
12361
12362	// A URL that points to the location within an Amazon S3 bucket that contains
12363	// the endpoints to import. The location can be a folder or a single file.The
12364	// URL should follow this format: s3://bucket-name/folder-name/file-nameAmazon
12365	// Pinpoint will import endpoints from this location and any subfolders it contains.
12366	S3Url *string `type:"string"`
12367
12368	// The ID of the segment to update if the import job is meant to update an existing
12369	// segment.
12370	SegmentId *string `type:"string"`
12371
12372	// A custom name for the segment created by the import job. Use if DefineSegment
12373	// is true.
12374	SegmentName *string `type:"string"`
12375}
12376
12377// String returns the string representation
12378func (s ImportJobRequest) String() string {
12379	return awsutil.Prettify(s)
12380}
12381
12382// GoString returns the string representation
12383func (s ImportJobRequest) GoString() string {
12384	return s.String()
12385}
12386
12387// SetDefineSegment sets the DefineSegment field's value.
12388func (s *ImportJobRequest) SetDefineSegment(v bool) *ImportJobRequest {
12389	s.DefineSegment = &v
12390	return s
12391}
12392
12393// SetExternalId sets the ExternalId field's value.
12394func (s *ImportJobRequest) SetExternalId(v string) *ImportJobRequest {
12395	s.ExternalId = &v
12396	return s
12397}
12398
12399// SetFormat sets the Format field's value.
12400func (s *ImportJobRequest) SetFormat(v string) *ImportJobRequest {
12401	s.Format = &v
12402	return s
12403}
12404
12405// SetRegisterEndpoints sets the RegisterEndpoints field's value.
12406func (s *ImportJobRequest) SetRegisterEndpoints(v bool) *ImportJobRequest {
12407	s.RegisterEndpoints = &v
12408	return s
12409}
12410
12411// SetRoleArn sets the RoleArn field's value.
12412func (s *ImportJobRequest) SetRoleArn(v string) *ImportJobRequest {
12413	s.RoleArn = &v
12414	return s
12415}
12416
12417// SetS3Url sets the S3Url field's value.
12418func (s *ImportJobRequest) SetS3Url(v string) *ImportJobRequest {
12419	s.S3Url = &v
12420	return s
12421}
12422
12423// SetSegmentId sets the SegmentId field's value.
12424func (s *ImportJobRequest) SetSegmentId(v string) *ImportJobRequest {
12425	s.SegmentId = &v
12426	return s
12427}
12428
12429// SetSegmentName sets the SegmentName field's value.
12430func (s *ImportJobRequest) SetSegmentName(v string) *ImportJobRequest {
12431	s.SegmentName = &v
12432	return s
12433}
12434
12435// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ImportJobResource
12436type ImportJobResource struct {
12437	_ struct{} `type:"structure"`
12438
12439	// Sets whether the endpoints create a segment when they are imported.
12440	DefineSegment *bool `type:"boolean"`
12441
12442	// A unique, custom ID assigned to the IAM role that restricts who can assume
12443	// the role.
12444	ExternalId *string `type:"string"`
12445
12446	// The format of the files that contain the endpoint definitions.Valid values:
12447	// CSV, JSON
12448	Format *string `type:"string" enum:"Format"`
12449
12450	// Sets whether the endpoints are registered with Amazon Pinpoint when they
12451	// are imported.
12452	RegisterEndpoints *bool `type:"boolean"`
12453
12454	// The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
12455	// access to the Amazon S3 location that contains the endpoints to import.
12456	RoleArn *string `type:"string"`
12457
12458	// A URL that points to the location within an Amazon S3 bucket that contains
12459	// the endpoints to import. The location can be a folder or a single file.The
12460	// URL should follow this format: s3://bucket-name/folder-name/file-nameAmazon
12461	// Pinpoint will import endpoints from this location and any subfolders it contains.
12462	S3Url *string `type:"string"`
12463
12464	// The ID of the segment to update if the import job is meant to update an existing
12465	// segment.
12466	SegmentId *string `type:"string"`
12467
12468	// A custom name for the segment created by the import job. Use if DefineSegment
12469	// is true.
12470	SegmentName *string `type:"string"`
12471}
12472
12473// String returns the string representation
12474func (s ImportJobResource) String() string {
12475	return awsutil.Prettify(s)
12476}
12477
12478// GoString returns the string representation
12479func (s ImportJobResource) GoString() string {
12480	return s.String()
12481}
12482
12483// SetDefineSegment sets the DefineSegment field's value.
12484func (s *ImportJobResource) SetDefineSegment(v bool) *ImportJobResource {
12485	s.DefineSegment = &v
12486	return s
12487}
12488
12489// SetExternalId sets the ExternalId field's value.
12490func (s *ImportJobResource) SetExternalId(v string) *ImportJobResource {
12491	s.ExternalId = &v
12492	return s
12493}
12494
12495// SetFormat sets the Format field's value.
12496func (s *ImportJobResource) SetFormat(v string) *ImportJobResource {
12497	s.Format = &v
12498	return s
12499}
12500
12501// SetRegisterEndpoints sets the RegisterEndpoints field's value.
12502func (s *ImportJobResource) SetRegisterEndpoints(v bool) *ImportJobResource {
12503	s.RegisterEndpoints = &v
12504	return s
12505}
12506
12507// SetRoleArn sets the RoleArn field's value.
12508func (s *ImportJobResource) SetRoleArn(v string) *ImportJobResource {
12509	s.RoleArn = &v
12510	return s
12511}
12512
12513// SetS3Url sets the S3Url field's value.
12514func (s *ImportJobResource) SetS3Url(v string) *ImportJobResource {
12515	s.S3Url = &v
12516	return s
12517}
12518
12519// SetSegmentId sets the SegmentId field's value.
12520func (s *ImportJobResource) SetSegmentId(v string) *ImportJobResource {
12521	s.SegmentId = &v
12522	return s
12523}
12524
12525// SetSegmentName sets the SegmentName field's value.
12526func (s *ImportJobResource) SetSegmentName(v string) *ImportJobResource {
12527	s.SegmentName = &v
12528	return s
12529}
12530
12531// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ImportJobResponse
12532type ImportJobResponse struct {
12533	_ struct{} `type:"structure"`
12534
12535	// The unique ID of the application to which the import job applies.
12536	ApplicationId *string `type:"string"`
12537
12538	// The number of pieces that have successfully imported as of the time of the
12539	// request.
12540	CompletedPieces *int64 `type:"integer"`
12541
12542	// The date the import job completed in ISO 8601 format.
12543	CompletionDate *string `type:"string"`
12544
12545	// The date the import job was created in ISO 8601 format.
12546	CreationDate *string `type:"string"`
12547
12548	// The import job settings.
12549	Definition *ImportJobResource `type:"structure"`
12550
12551	// The number of pieces that have failed to import as of the time of the request.
12552	FailedPieces *int64 `type:"integer"`
12553
12554	Failures []*string `type:"list"`
12555
12556	// The unique ID of the import job.
12557	Id *string `type:"string"`
12558
12559	// The status of the import job.Valid values: CREATED, INITIALIZING, PROCESSING,
12560	// COMPLETING, COMPLETED, FAILING, FAILEDThe job status is FAILED if one or
12561	// more pieces failed to import.
12562	JobStatus *string `type:"string" enum:"JobStatus"`
12563
12564	// The number of endpoints that failed to import; for example, because of syntax
12565	// errors.
12566	TotalFailures *int64 `type:"integer"`
12567
12568	// The total number of pieces that must be imported to finish the job. Each
12569	// piece is an approximately equal portion of the endpoints to import.
12570	TotalPieces *int64 `type:"integer"`
12571
12572	// The number of endpoints that were processed by the import job.
12573	TotalProcessed *int64 `type:"integer"`
12574
12575	// The job type. Will be Import.
12576	Type *string `type:"string"`
12577}
12578
12579// String returns the string representation
12580func (s ImportJobResponse) String() string {
12581	return awsutil.Prettify(s)
12582}
12583
12584// GoString returns the string representation
12585func (s ImportJobResponse) GoString() string {
12586	return s.String()
12587}
12588
12589// SetApplicationId sets the ApplicationId field's value.
12590func (s *ImportJobResponse) SetApplicationId(v string) *ImportJobResponse {
12591	s.ApplicationId = &v
12592	return s
12593}
12594
12595// SetCompletedPieces sets the CompletedPieces field's value.
12596func (s *ImportJobResponse) SetCompletedPieces(v int64) *ImportJobResponse {
12597	s.CompletedPieces = &v
12598	return s
12599}
12600
12601// SetCompletionDate sets the CompletionDate field's value.
12602func (s *ImportJobResponse) SetCompletionDate(v string) *ImportJobResponse {
12603	s.CompletionDate = &v
12604	return s
12605}
12606
12607// SetCreationDate sets the CreationDate field's value.
12608func (s *ImportJobResponse) SetCreationDate(v string) *ImportJobResponse {
12609	s.CreationDate = &v
12610	return s
12611}
12612
12613// SetDefinition sets the Definition field's value.
12614func (s *ImportJobResponse) SetDefinition(v *ImportJobResource) *ImportJobResponse {
12615	s.Definition = v
12616	return s
12617}
12618
12619// SetFailedPieces sets the FailedPieces field's value.
12620func (s *ImportJobResponse) SetFailedPieces(v int64) *ImportJobResponse {
12621	s.FailedPieces = &v
12622	return s
12623}
12624
12625// SetFailures sets the Failures field's value.
12626func (s *ImportJobResponse) SetFailures(v []*string) *ImportJobResponse {
12627	s.Failures = v
12628	return s
12629}
12630
12631// SetId sets the Id field's value.
12632func (s *ImportJobResponse) SetId(v string) *ImportJobResponse {
12633	s.Id = &v
12634	return s
12635}
12636
12637// SetJobStatus sets the JobStatus field's value.
12638func (s *ImportJobResponse) SetJobStatus(v string) *ImportJobResponse {
12639	s.JobStatus = &v
12640	return s
12641}
12642
12643// SetTotalFailures sets the TotalFailures field's value.
12644func (s *ImportJobResponse) SetTotalFailures(v int64) *ImportJobResponse {
12645	s.TotalFailures = &v
12646	return s
12647}
12648
12649// SetTotalPieces sets the TotalPieces field's value.
12650func (s *ImportJobResponse) SetTotalPieces(v int64) *ImportJobResponse {
12651	s.TotalPieces = &v
12652	return s
12653}
12654
12655// SetTotalProcessed sets the TotalProcessed field's value.
12656func (s *ImportJobResponse) SetTotalProcessed(v int64) *ImportJobResponse {
12657	s.TotalProcessed = &v
12658	return s
12659}
12660
12661// SetType sets the Type field's value.
12662func (s *ImportJobResponse) SetType(v string) *ImportJobResponse {
12663	s.Type = &v
12664	return s
12665}
12666
12667// Import job list.
12668// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/ImportJobsResponse
12669type ImportJobsResponse struct {
12670	_ struct{} `type:"structure"`
12671
12672	// A list of import jobs for the application.
12673	Item []*ImportJobResponse `type:"list"`
12674
12675	// The string that you use in a subsequent request to get the next page of results
12676	// in a paginated response.
12677	NextToken *string `type:"string"`
12678}
12679
12680// String returns the string representation
12681func (s ImportJobsResponse) String() string {
12682	return awsutil.Prettify(s)
12683}
12684
12685// GoString returns the string representation
12686func (s ImportJobsResponse) GoString() string {
12687	return s.String()
12688}
12689
12690// SetItem sets the Item field's value.
12691func (s *ImportJobsResponse) SetItem(v []*ImportJobResponse) *ImportJobsResponse {
12692	s.Item = v
12693	return s
12694}
12695
12696// SetNextToken sets the NextToken field's value.
12697func (s *ImportJobsResponse) SetNextToken(v string) *ImportJobsResponse {
12698	s.NextToken = &v
12699	return s
12700}
12701
12702// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/Message
12703type Message struct {
12704	_ struct{} `type:"structure"`
12705
12706	// The action that occurs if the user taps a push notification delivered by
12707	// the campaign:OPEN_APP - Your app launches, or it becomes the foreground app
12708	// if it has been sent to the background. This is the default action.DEEP_LINK
12709	// - Uses deep linking features in iOS and Android to open your app and display
12710	// a designated user interface within the app.URL - The default mobile browser
12711	// on the user's device launches and opens a web page at the URL you specify.
12712	Action *string `type:"string" enum:"Action"`
12713
12714	// The message body. Can include up to 140 characters.
12715	Body *string `type:"string"`
12716
12717	// The URL that points to the icon image for the push notification icon, for
12718	// example, the app icon.
12719	ImageIconUrl *string `type:"string"`
12720
12721	// The URL that points to the small icon image for the push notification icon,
12722	// for example, the app icon.
12723	ImageSmallIconUrl *string `type:"string"`
12724
12725	// The URL that points to an image used in the push notification.
12726	ImageUrl *string `type:"string"`
12727
12728	// The JSON payload used for a silent push.
12729	JsonBody *string `type:"string"`
12730
12731	// The URL that points to the media resource, for example a .mp4 or .gif file.
12732	MediaUrl *string `type:"string"`
12733
12734	// The Raw JSON formatted string to be used as the payload. This value overrides
12735	// the message.
12736	RawContent *string `type:"string"`
12737
12738	// Indicates if the message should display on the users device.Silent pushes
12739	// can be used for Remote Configuration and Phone Home use cases.
12740	SilentPush *bool `type:"boolean"`
12741
12742	// The message title that displays above the message on the user's device.
12743	Title *string `type:"string"`
12744
12745	// The URL to open in the user's mobile browser. Used if the value for Action
12746	// is URL.
12747	Url *string `type:"string"`
12748}
12749
12750// String returns the string representation
12751func (s Message) String() string {
12752	return awsutil.Prettify(s)
12753}
12754
12755// GoString returns the string representation
12756func (s Message) GoString() string {
12757	return s.String()
12758}
12759
12760// SetAction sets the Action field's value.
12761func (s *Message) SetAction(v string) *Message {
12762	s.Action = &v
12763	return s
12764}
12765
12766// SetBody sets the Body field's value.
12767func (s *Message) SetBody(v string) *Message {
12768	s.Body = &v
12769	return s
12770}
12771
12772// SetImageIconUrl sets the ImageIconUrl field's value.
12773func (s *Message) SetImageIconUrl(v string) *Message {
12774	s.ImageIconUrl = &v
12775	return s
12776}
12777
12778// SetImageSmallIconUrl sets the ImageSmallIconUrl field's value.
12779func (s *Message) SetImageSmallIconUrl(v string) *Message {
12780	s.ImageSmallIconUrl = &v
12781	return s
12782}
12783
12784// SetImageUrl sets the ImageUrl field's value.
12785func (s *Message) SetImageUrl(v string) *Message {
12786	s.ImageUrl = &v
12787	return s
12788}
12789
12790// SetJsonBody sets the JsonBody field's value.
12791func (s *Message) SetJsonBody(v string) *Message {
12792	s.JsonBody = &v
12793	return s
12794}
12795
12796// SetMediaUrl sets the MediaUrl field's value.
12797func (s *Message) SetMediaUrl(v string) *Message {
12798	s.MediaUrl = &v
12799	return s
12800}
12801
12802// SetRawContent sets the RawContent field's value.
12803func (s *Message) SetRawContent(v string) *Message {
12804	s.RawContent = &v
12805	return s
12806}
12807
12808// SetSilentPush sets the SilentPush field's value.
12809func (s *Message) SetSilentPush(v bool) *Message {
12810	s.SilentPush = &v
12811	return s
12812}
12813
12814// SetTitle sets the Title field's value.
12815func (s *Message) SetTitle(v string) *Message {
12816	s.Title = &v
12817	return s
12818}
12819
12820// SetUrl sets the Url field's value.
12821func (s *Message) SetUrl(v string) *Message {
12822	s.Url = &v
12823	return s
12824}
12825
12826// Simple message object.
12827// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MessageBody
12828type MessageBody struct {
12829	_ struct{} `type:"structure"`
12830
12831	// The error message returned from the API.
12832	Message *string `type:"string"`
12833
12834	// The unique message body ID.
12835	RequestID *string `type:"string"`
12836}
12837
12838// String returns the string representation
12839func (s MessageBody) String() string {
12840	return awsutil.Prettify(s)
12841}
12842
12843// GoString returns the string representation
12844func (s MessageBody) GoString() string {
12845	return s.String()
12846}
12847
12848// SetMessage sets the Message field's value.
12849func (s *MessageBody) SetMessage(v string) *MessageBody {
12850	s.Message = &v
12851	return s
12852}
12853
12854// SetRequestID sets the RequestID field's value.
12855func (s *MessageBody) SetRequestID(v string) *MessageBody {
12856	s.RequestID = &v
12857	return s
12858}
12859
12860// Message configuration for a campaign.
12861// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MessageConfiguration
12862type MessageConfiguration struct {
12863	_ struct{} `type:"structure"`
12864
12865	// The message that the campaign delivers to ADM channels. Overrides the default
12866	// message.
12867	ADMMessage *Message `type:"structure"`
12868
12869	// The message that the campaign delivers to APNS channels. Overrides the default
12870	// message.
12871	APNSMessage *Message `type:"structure"`
12872
12873	// The message that the campaign delivers to Baidu channels. Overrides the default
12874	// message.
12875	BaiduMessage *Message `type:"structure"`
12876
12877	// The default message for all channels.
12878	DefaultMessage *Message `type:"structure"`
12879
12880	// The email message configuration.
12881	EmailMessage *CampaignEmailMessage `type:"structure"`
12882
12883	// The message that the campaign delivers to GCM channels. Overrides the default
12884	// message.
12885	GCMMessage *Message `type:"structure"`
12886
12887	// The SMS message configuration.
12888	SMSMessage *CampaignSmsMessage `type:"structure"`
12889}
12890
12891// String returns the string representation
12892func (s MessageConfiguration) String() string {
12893	return awsutil.Prettify(s)
12894}
12895
12896// GoString returns the string representation
12897func (s MessageConfiguration) GoString() string {
12898	return s.String()
12899}
12900
12901// SetADMMessage sets the ADMMessage field's value.
12902func (s *MessageConfiguration) SetADMMessage(v *Message) *MessageConfiguration {
12903	s.ADMMessage = v
12904	return s
12905}
12906
12907// SetAPNSMessage sets the APNSMessage field's value.
12908func (s *MessageConfiguration) SetAPNSMessage(v *Message) *MessageConfiguration {
12909	s.APNSMessage = v
12910	return s
12911}
12912
12913// SetBaiduMessage sets the BaiduMessage field's value.
12914func (s *MessageConfiguration) SetBaiduMessage(v *Message) *MessageConfiguration {
12915	s.BaiduMessage = v
12916	return s
12917}
12918
12919// SetDefaultMessage sets the DefaultMessage field's value.
12920func (s *MessageConfiguration) SetDefaultMessage(v *Message) *MessageConfiguration {
12921	s.DefaultMessage = v
12922	return s
12923}
12924
12925// SetEmailMessage sets the EmailMessage field's value.
12926func (s *MessageConfiguration) SetEmailMessage(v *CampaignEmailMessage) *MessageConfiguration {
12927	s.EmailMessage = v
12928	return s
12929}
12930
12931// SetGCMMessage sets the GCMMessage field's value.
12932func (s *MessageConfiguration) SetGCMMessage(v *Message) *MessageConfiguration {
12933	s.GCMMessage = v
12934	return s
12935}
12936
12937// SetSMSMessage sets the SMSMessage field's value.
12938func (s *MessageConfiguration) SetSMSMessage(v *CampaignSmsMessage) *MessageConfiguration {
12939	s.SMSMessage = v
12940	return s
12941}
12942
12943// Send message request.
12944// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MessageRequest
12945type MessageRequest struct {
12946	_ struct{} `type:"structure"`
12947
12948	// A map of destination addresses, with the address as the key(Email address,
12949	// phone number or push token) and the Address Configuration as the value.
12950	Addresses map[string]*AddressConfiguration `type:"map"`
12951
12952	Context map[string]*string `type:"map"`
12953
12954	// A map of destination addresses, with the address as the key(Email address,
12955	// phone number or push token) and the Address Configuration as the value.
12956	Endpoints map[string]*EndpointSendConfiguration `type:"map"`
12957
12958	// Message configuration.
12959	MessageConfiguration *DirectMessageConfiguration `type:"structure"`
12960}
12961
12962// String returns the string representation
12963func (s MessageRequest) String() string {
12964	return awsutil.Prettify(s)
12965}
12966
12967// GoString returns the string representation
12968func (s MessageRequest) GoString() string {
12969	return s.String()
12970}
12971
12972// SetAddresses sets the Addresses field's value.
12973func (s *MessageRequest) SetAddresses(v map[string]*AddressConfiguration) *MessageRequest {
12974	s.Addresses = v
12975	return s
12976}
12977
12978// SetContext sets the Context field's value.
12979func (s *MessageRequest) SetContext(v map[string]*string) *MessageRequest {
12980	s.Context = v
12981	return s
12982}
12983
12984// SetEndpoints sets the Endpoints field's value.
12985func (s *MessageRequest) SetEndpoints(v map[string]*EndpointSendConfiguration) *MessageRequest {
12986	s.Endpoints = v
12987	return s
12988}
12989
12990// SetMessageConfiguration sets the MessageConfiguration field's value.
12991func (s *MessageRequest) SetMessageConfiguration(v *DirectMessageConfiguration) *MessageRequest {
12992	s.MessageConfiguration = v
12993	return s
12994}
12995
12996// Send message response.
12997// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MessageResponse
12998type MessageResponse struct {
12999	_ struct{} `type:"structure"`
13000
13001	// Application id of the message.
13002	ApplicationId *string `type:"string"`
13003
13004	// A map containing a multi part response for each address, with the endpointId
13005	// as the key and the result as the value.
13006	EndpointResult map[string]*EndpointMessageResult `type:"map"`
13007
13008	// Original request Id for which this message was delivered.
13009	RequestId *string `type:"string"`
13010
13011	// A map containing a multi part response for each address, with the address
13012	// as the key(Email address, phone number or push token) and the result as the
13013	// value.
13014	Result map[string]*MessageResult `type:"map"`
13015}
13016
13017// String returns the string representation
13018func (s MessageResponse) String() string {
13019	return awsutil.Prettify(s)
13020}
13021
13022// GoString returns the string representation
13023func (s MessageResponse) GoString() string {
13024	return s.String()
13025}
13026
13027// SetApplicationId sets the ApplicationId field's value.
13028func (s *MessageResponse) SetApplicationId(v string) *MessageResponse {
13029	s.ApplicationId = &v
13030	return s
13031}
13032
13033// SetEndpointResult sets the EndpointResult field's value.
13034func (s *MessageResponse) SetEndpointResult(v map[string]*EndpointMessageResult) *MessageResponse {
13035	s.EndpointResult = v
13036	return s
13037}
13038
13039// SetRequestId sets the RequestId field's value.
13040func (s *MessageResponse) SetRequestId(v string) *MessageResponse {
13041	s.RequestId = &v
13042	return s
13043}
13044
13045// SetResult sets the Result field's value.
13046func (s *MessageResponse) SetResult(v map[string]*MessageResult) *MessageResponse {
13047	s.Result = v
13048	return s
13049}
13050
13051// The result from sending a message to an address.
13052// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/MessageResult
13053type MessageResult struct {
13054	_ struct{} `type:"structure"`
13055
13056	// Delivery status of message.
13057	DeliveryStatus *string `type:"string" enum:"DeliveryStatus"`
13058
13059	// Downstream service status code.
13060	StatusCode *int64 `type:"integer"`
13061
13062	// Status message for message delivery.
13063	StatusMessage *string `type:"string"`
13064
13065	// If token was updated as part of delivery. (This is GCM Specific)
13066	UpdatedToken *string `type:"string"`
13067}
13068
13069// String returns the string representation
13070func (s MessageResult) String() string {
13071	return awsutil.Prettify(s)
13072}
13073
13074// GoString returns the string representation
13075func (s MessageResult) GoString() string {
13076	return s.String()
13077}
13078
13079// SetDeliveryStatus sets the DeliveryStatus field's value.
13080func (s *MessageResult) SetDeliveryStatus(v string) *MessageResult {
13081	s.DeliveryStatus = &v
13082	return s
13083}
13084
13085// SetStatusCode sets the StatusCode field's value.
13086func (s *MessageResult) SetStatusCode(v int64) *MessageResult {
13087	s.StatusCode = &v
13088	return s
13089}
13090
13091// SetStatusMessage sets the StatusMessage field's value.
13092func (s *MessageResult) SetStatusMessage(v string) *MessageResult {
13093	s.StatusMessage = &v
13094	return s
13095}
13096
13097// SetUpdatedToken sets the UpdatedToken field's value.
13098func (s *MessageResult) SetUpdatedToken(v string) *MessageResult {
13099	s.UpdatedToken = &v
13100	return s
13101}
13102
13103// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PutEventStreamRequest
13104type PutEventStreamInput struct {
13105	_ struct{} `type:"structure" payload:"WriteEventStream"`
13106
13107	// Application Id.
13108	//
13109	// ApplicationId is a required field
13110	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
13111
13112	// Write event stream wrapper.
13113	//
13114	// WriteEventStream is a required field
13115	WriteEventStream *WriteEventStream `type:"structure" required:"true"`
13116}
13117
13118// String returns the string representation
13119func (s PutEventStreamInput) String() string {
13120	return awsutil.Prettify(s)
13121}
13122
13123// GoString returns the string representation
13124func (s PutEventStreamInput) GoString() string {
13125	return s.String()
13126}
13127
13128// Validate inspects the fields of the type to determine if they are valid.
13129func (s *PutEventStreamInput) Validate() error {
13130	invalidParams := request.ErrInvalidParams{Context: "PutEventStreamInput"}
13131	if s.ApplicationId == nil {
13132		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
13133	}
13134	if s.WriteEventStream == nil {
13135		invalidParams.Add(request.NewErrParamRequired("WriteEventStream"))
13136	}
13137
13138	if invalidParams.Len() > 0 {
13139		return invalidParams
13140	}
13141	return nil
13142}
13143
13144// SetApplicationId sets the ApplicationId field's value.
13145func (s *PutEventStreamInput) SetApplicationId(v string) *PutEventStreamInput {
13146	s.ApplicationId = &v
13147	return s
13148}
13149
13150// SetWriteEventStream sets the WriteEventStream field's value.
13151func (s *PutEventStreamInput) SetWriteEventStream(v *WriteEventStream) *PutEventStreamInput {
13152	s.WriteEventStream = v
13153	return s
13154}
13155
13156// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/PutEventStreamResponse
13157type PutEventStreamOutput struct {
13158	_ struct{} `type:"structure" payload:"EventStream"`
13159
13160	// Model for an event publishing subscription export.
13161	//
13162	// EventStream is a required field
13163	EventStream *EventStream `type:"structure" required:"true"`
13164}
13165
13166// String returns the string representation
13167func (s PutEventStreamOutput) String() string {
13168	return awsutil.Prettify(s)
13169}
13170
13171// GoString returns the string representation
13172func (s PutEventStreamOutput) GoString() string {
13173	return s.String()
13174}
13175
13176// SetEventStream sets the EventStream field's value.
13177func (s *PutEventStreamOutput) SetEventStream(v *EventStream) *PutEventStreamOutput {
13178	s.EventStream = v
13179	return s
13180}
13181
13182// Quiet Time
13183// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/QuietTime
13184type QuietTime struct {
13185	_ struct{} `type:"structure"`
13186
13187	// The default end time for quiet time in ISO 8601 format.
13188	End *string `type:"string"`
13189
13190	// The default start time for quiet time in ISO 8601 format.
13191	Start *string `type:"string"`
13192}
13193
13194// String returns the string representation
13195func (s QuietTime) String() string {
13196	return awsutil.Prettify(s)
13197}
13198
13199// GoString returns the string representation
13200func (s QuietTime) GoString() string {
13201	return s.String()
13202}
13203
13204// SetEnd sets the End field's value.
13205func (s *QuietTime) SetEnd(v string) *QuietTime {
13206	s.End = &v
13207	return s
13208}
13209
13210// SetStart sets the Start field's value.
13211func (s *QuietTime) SetStart(v string) *QuietTime {
13212	s.Start = &v
13213	return s
13214}
13215
13216// Define how a segment based on recency of use.
13217// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/RecencyDimension
13218type RecencyDimension struct {
13219	_ struct{} `type:"structure"`
13220
13221	// The length of time during which users have been active or inactive with your
13222	// app.Valid values: HR_24, DAY_7, DAY_14, DAY_30
13223	Duration *string `type:"string" enum:"Duration"`
13224
13225	// The recency dimension type:ACTIVE - Users who have used your app within the
13226	// specified duration are included in the segment.INACTIVE - Users who have
13227	// not used your app within the specified duration are included in the segment.
13228	RecencyType *string `type:"string" enum:"RecencyType"`
13229}
13230
13231// String returns the string representation
13232func (s RecencyDimension) String() string {
13233	return awsutil.Prettify(s)
13234}
13235
13236// GoString returns the string representation
13237func (s RecencyDimension) GoString() string {
13238	return s.String()
13239}
13240
13241// SetDuration sets the Duration field's value.
13242func (s *RecencyDimension) SetDuration(v string) *RecencyDimension {
13243	s.Duration = &v
13244	return s
13245}
13246
13247// SetRecencyType sets the RecencyType field's value.
13248func (s *RecencyDimension) SetRecencyType(v string) *RecencyDimension {
13249	s.RecencyType = &v
13250	return s
13251}
13252
13253// SMS Channel Request
13254// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SMSChannelRequest
13255type SMSChannelRequest struct {
13256	_ struct{} `type:"structure"`
13257
13258	// If the channel is enabled for sending messages.
13259	Enabled *bool `type:"boolean"`
13260
13261	// Sender identifier of your messages.
13262	SenderId *string `type:"string"`
13263
13264	// ShortCode registered with phone provider.
13265	ShortCode *string `type:"string"`
13266}
13267
13268// String returns the string representation
13269func (s SMSChannelRequest) String() string {
13270	return awsutil.Prettify(s)
13271}
13272
13273// GoString returns the string representation
13274func (s SMSChannelRequest) GoString() string {
13275	return s.String()
13276}
13277
13278// SetEnabled sets the Enabled field's value.
13279func (s *SMSChannelRequest) SetEnabled(v bool) *SMSChannelRequest {
13280	s.Enabled = &v
13281	return s
13282}
13283
13284// SetSenderId sets the SenderId field's value.
13285func (s *SMSChannelRequest) SetSenderId(v string) *SMSChannelRequest {
13286	s.SenderId = &v
13287	return s
13288}
13289
13290// SetShortCode sets the ShortCode field's value.
13291func (s *SMSChannelRequest) SetShortCode(v string) *SMSChannelRequest {
13292	s.ShortCode = &v
13293	return s
13294}
13295
13296// SMS Channel Response.
13297// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SMSChannelResponse
13298type SMSChannelResponse struct {
13299	_ struct{} `type:"structure"`
13300
13301	// The unique ID of the application to which the SMS channel belongs.
13302	ApplicationId *string `type:"string"`
13303
13304	// The date that the settings were last updated in ISO 8601 format.
13305	CreationDate *string `type:"string"`
13306
13307	// If the channel is enabled for sending messages.
13308	Enabled *bool `type:"boolean"`
13309
13310	// If the channel is registered with a credential for authentication.
13311	HasCredential *bool `type:"boolean"`
13312
13313	// Channel ID. Not used, only for backwards compatibility.
13314	Id *string `type:"string"`
13315
13316	// Is this channel archived
13317	IsArchived *bool `type:"boolean"`
13318
13319	// Who last updated this entry
13320	LastModifiedBy *string `type:"string"`
13321
13322	// Last date this was updated
13323	LastModifiedDate *string `type:"string"`
13324
13325	// Platform type. Will be "SMS"
13326	Platform *string `type:"string"`
13327
13328	// Sender identifier of your messages.
13329	SenderId *string `type:"string"`
13330
13331	// The short code registered with the phone provider.
13332	ShortCode *string `type:"string"`
13333
13334	// Version of channel
13335	Version *int64 `type:"integer"`
13336}
13337
13338// String returns the string representation
13339func (s SMSChannelResponse) String() string {
13340	return awsutil.Prettify(s)
13341}
13342
13343// GoString returns the string representation
13344func (s SMSChannelResponse) GoString() string {
13345	return s.String()
13346}
13347
13348// SetApplicationId sets the ApplicationId field's value.
13349func (s *SMSChannelResponse) SetApplicationId(v string) *SMSChannelResponse {
13350	s.ApplicationId = &v
13351	return s
13352}
13353
13354// SetCreationDate sets the CreationDate field's value.
13355func (s *SMSChannelResponse) SetCreationDate(v string) *SMSChannelResponse {
13356	s.CreationDate = &v
13357	return s
13358}
13359
13360// SetEnabled sets the Enabled field's value.
13361func (s *SMSChannelResponse) SetEnabled(v bool) *SMSChannelResponse {
13362	s.Enabled = &v
13363	return s
13364}
13365
13366// SetHasCredential sets the HasCredential field's value.
13367func (s *SMSChannelResponse) SetHasCredential(v bool) *SMSChannelResponse {
13368	s.HasCredential = &v
13369	return s
13370}
13371
13372// SetId sets the Id field's value.
13373func (s *SMSChannelResponse) SetId(v string) *SMSChannelResponse {
13374	s.Id = &v
13375	return s
13376}
13377
13378// SetIsArchived sets the IsArchived field's value.
13379func (s *SMSChannelResponse) SetIsArchived(v bool) *SMSChannelResponse {
13380	s.IsArchived = &v
13381	return s
13382}
13383
13384// SetLastModifiedBy sets the LastModifiedBy field's value.
13385func (s *SMSChannelResponse) SetLastModifiedBy(v string) *SMSChannelResponse {
13386	s.LastModifiedBy = &v
13387	return s
13388}
13389
13390// SetLastModifiedDate sets the LastModifiedDate field's value.
13391func (s *SMSChannelResponse) SetLastModifiedDate(v string) *SMSChannelResponse {
13392	s.LastModifiedDate = &v
13393	return s
13394}
13395
13396// SetPlatform sets the Platform field's value.
13397func (s *SMSChannelResponse) SetPlatform(v string) *SMSChannelResponse {
13398	s.Platform = &v
13399	return s
13400}
13401
13402// SetSenderId sets the SenderId field's value.
13403func (s *SMSChannelResponse) SetSenderId(v string) *SMSChannelResponse {
13404	s.SenderId = &v
13405	return s
13406}
13407
13408// SetShortCode sets the ShortCode field's value.
13409func (s *SMSChannelResponse) SetShortCode(v string) *SMSChannelResponse {
13410	s.ShortCode = &v
13411	return s
13412}
13413
13414// SetVersion sets the Version field's value.
13415func (s *SMSChannelResponse) SetVersion(v int64) *SMSChannelResponse {
13416	s.Version = &v
13417	return s
13418}
13419
13420// SMS Message.
13421// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SMSMessage
13422type SMSMessage struct {
13423	_ struct{} `type:"structure"`
13424
13425	// The message body of the notification, the email body or the text message.
13426	Body *string `type:"string"`
13427
13428	// Is this a transaction priority message or lower priority.
13429	MessageType *string `type:"string" enum:"MessageType"`
13430
13431	// Sender ID of sent message.
13432	SenderId *string `type:"string"`
13433
13434	Substitutions map[string][]*string `type:"map"`
13435}
13436
13437// String returns the string representation
13438func (s SMSMessage) String() string {
13439	return awsutil.Prettify(s)
13440}
13441
13442// GoString returns the string representation
13443func (s SMSMessage) GoString() string {
13444	return s.String()
13445}
13446
13447// SetBody sets the Body field's value.
13448func (s *SMSMessage) SetBody(v string) *SMSMessage {
13449	s.Body = &v
13450	return s
13451}
13452
13453// SetMessageType sets the MessageType field's value.
13454func (s *SMSMessage) SetMessageType(v string) *SMSMessage {
13455	s.MessageType = &v
13456	return s
13457}
13458
13459// SetSenderId sets the SenderId field's value.
13460func (s *SMSMessage) SetSenderId(v string) *SMSMessage {
13461	s.SenderId = &v
13462	return s
13463}
13464
13465// SetSubstitutions sets the Substitutions field's value.
13466func (s *SMSMessage) SetSubstitutions(v map[string][]*string) *SMSMessage {
13467	s.Substitutions = v
13468	return s
13469}
13470
13471// Shcedule that defines when a campaign is run.
13472// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/Schedule
13473type Schedule struct {
13474	_ struct{} `type:"structure"`
13475
13476	// The scheduled time that the campaign ends in ISO 8601 format.
13477	EndTime *string `type:"string"`
13478
13479	// How often the campaign delivers messages.Valid values: ONCE, HOURLY, DAILY,
13480	// WEEKLY, MONTHLY
13481	Frequency *string `type:"string" enum:"Frequency"`
13482
13483	// Indicates whether the campaign schedule takes effect according to each user's
13484	// local time.
13485	IsLocalTime *bool `type:"boolean"`
13486
13487	// The time during which the campaign sends no messages.
13488	QuietTime *QuietTime `type:"structure"`
13489
13490	// The scheduled time that the campaign begins in ISO 8601 format.
13491	StartTime *string `type:"string"`
13492
13493	// The starting UTC offset for the schedule if the value for isLocalTime is
13494	// trueValid values: UTCUTC+01UTC+02UTC+03UTC+03:30UTC+04UTC+04:30UTC+05UTC+05:30UTC+05:45UTC+06UTC+06:30UTC+07UTC+08UTC+09UTC+09:30UTC+10UTC+10:30UTC+11UTC+12UTC+13UTC-02UTC-03UTC-04UTC-05UTC-06UTC-07UTC-08UTC-09UTC-10UTC-11
13495	Timezone *string `type:"string"`
13496}
13497
13498// String returns the string representation
13499func (s Schedule) String() string {
13500	return awsutil.Prettify(s)
13501}
13502
13503// GoString returns the string representation
13504func (s Schedule) GoString() string {
13505	return s.String()
13506}
13507
13508// SetEndTime sets the EndTime field's value.
13509func (s *Schedule) SetEndTime(v string) *Schedule {
13510	s.EndTime = &v
13511	return s
13512}
13513
13514// SetFrequency sets the Frequency field's value.
13515func (s *Schedule) SetFrequency(v string) *Schedule {
13516	s.Frequency = &v
13517	return s
13518}
13519
13520// SetIsLocalTime sets the IsLocalTime field's value.
13521func (s *Schedule) SetIsLocalTime(v bool) *Schedule {
13522	s.IsLocalTime = &v
13523	return s
13524}
13525
13526// SetQuietTime sets the QuietTime field's value.
13527func (s *Schedule) SetQuietTime(v *QuietTime) *Schedule {
13528	s.QuietTime = v
13529	return s
13530}
13531
13532// SetStartTime sets the StartTime field's value.
13533func (s *Schedule) SetStartTime(v string) *Schedule {
13534	s.StartTime = &v
13535	return s
13536}
13537
13538// SetTimezone sets the Timezone field's value.
13539func (s *Schedule) SetTimezone(v string) *Schedule {
13540	s.Timezone = &v
13541	return s
13542}
13543
13544// Segment behavior dimensions
13545// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentBehaviors
13546type SegmentBehaviors struct {
13547	_ struct{} `type:"structure"`
13548
13549	// The recency of use.
13550	Recency *RecencyDimension `type:"structure"`
13551}
13552
13553// String returns the string representation
13554func (s SegmentBehaviors) String() string {
13555	return awsutil.Prettify(s)
13556}
13557
13558// GoString returns the string representation
13559func (s SegmentBehaviors) GoString() string {
13560	return s.String()
13561}
13562
13563// SetRecency sets the Recency field's value.
13564func (s *SegmentBehaviors) SetRecency(v *RecencyDimension) *SegmentBehaviors {
13565	s.Recency = v
13566	return s
13567}
13568
13569// Segment demographic dimensions
13570// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentDemographics
13571type SegmentDemographics struct {
13572	_ struct{} `type:"structure"`
13573
13574	// The app version criteria for the segment.
13575	AppVersion *SetDimension `type:"structure"`
13576
13577	// The channel criteria for the segment.
13578	Channel *SetDimension `type:"structure"`
13579
13580	// The device type criteria for the segment.
13581	DeviceType *SetDimension `type:"structure"`
13582
13583	// The device make criteria for the segment.
13584	Make *SetDimension `type:"structure"`
13585
13586	// The device model criteria for the segment.
13587	Model *SetDimension `type:"structure"`
13588
13589	// The device platform criteria for the segment.
13590	Platform *SetDimension `type:"structure"`
13591}
13592
13593// String returns the string representation
13594func (s SegmentDemographics) String() string {
13595	return awsutil.Prettify(s)
13596}
13597
13598// GoString returns the string representation
13599func (s SegmentDemographics) GoString() string {
13600	return s.String()
13601}
13602
13603// SetAppVersion sets the AppVersion field's value.
13604func (s *SegmentDemographics) SetAppVersion(v *SetDimension) *SegmentDemographics {
13605	s.AppVersion = v
13606	return s
13607}
13608
13609// SetChannel sets the Channel field's value.
13610func (s *SegmentDemographics) SetChannel(v *SetDimension) *SegmentDemographics {
13611	s.Channel = v
13612	return s
13613}
13614
13615// SetDeviceType sets the DeviceType field's value.
13616func (s *SegmentDemographics) SetDeviceType(v *SetDimension) *SegmentDemographics {
13617	s.DeviceType = v
13618	return s
13619}
13620
13621// SetMake sets the Make field's value.
13622func (s *SegmentDemographics) SetMake(v *SetDimension) *SegmentDemographics {
13623	s.Make = v
13624	return s
13625}
13626
13627// SetModel sets the Model field's value.
13628func (s *SegmentDemographics) SetModel(v *SetDimension) *SegmentDemographics {
13629	s.Model = v
13630	return s
13631}
13632
13633// SetPlatform sets the Platform field's value.
13634func (s *SegmentDemographics) SetPlatform(v *SetDimension) *SegmentDemographics {
13635	s.Platform = v
13636	return s
13637}
13638
13639// Segment dimensions
13640// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentDimensions
13641type SegmentDimensions struct {
13642	_ struct{} `type:"structure"`
13643
13644	// Custom segment attributes.
13645	Attributes map[string]*AttributeDimension `type:"map"`
13646
13647	// The segment behaviors attributes.
13648	Behavior *SegmentBehaviors `type:"structure"`
13649
13650	// The segment demographics attributes.
13651	Demographic *SegmentDemographics `type:"structure"`
13652
13653	// The segment location attributes.
13654	Location *SegmentLocation `type:"structure"`
13655
13656	// Custom segment user attributes.
13657	UserAttributes map[string]*AttributeDimension `type:"map"`
13658}
13659
13660// String returns the string representation
13661func (s SegmentDimensions) String() string {
13662	return awsutil.Prettify(s)
13663}
13664
13665// GoString returns the string representation
13666func (s SegmentDimensions) GoString() string {
13667	return s.String()
13668}
13669
13670// SetAttributes sets the Attributes field's value.
13671func (s *SegmentDimensions) SetAttributes(v map[string]*AttributeDimension) *SegmentDimensions {
13672	s.Attributes = v
13673	return s
13674}
13675
13676// SetBehavior sets the Behavior field's value.
13677func (s *SegmentDimensions) SetBehavior(v *SegmentBehaviors) *SegmentDimensions {
13678	s.Behavior = v
13679	return s
13680}
13681
13682// SetDemographic sets the Demographic field's value.
13683func (s *SegmentDimensions) SetDemographic(v *SegmentDemographics) *SegmentDimensions {
13684	s.Demographic = v
13685	return s
13686}
13687
13688// SetLocation sets the Location field's value.
13689func (s *SegmentDimensions) SetLocation(v *SegmentLocation) *SegmentDimensions {
13690	s.Location = v
13691	return s
13692}
13693
13694// SetUserAttributes sets the UserAttributes field's value.
13695func (s *SegmentDimensions) SetUserAttributes(v map[string]*AttributeDimension) *SegmentDimensions {
13696	s.UserAttributes = v
13697	return s
13698}
13699
13700// Segment import definition.
13701// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentImportResource
13702type SegmentImportResource struct {
13703	_ struct{} `type:"structure"`
13704
13705	ChannelCounts map[string]*int64 `type:"map"`
13706
13707	// A unique, custom ID assigned to the IAM role that restricts who can assume
13708	// the role.
13709	ExternalId *string `type:"string"`
13710
13711	// The format of the endpoint files that were imported to create this segment.Valid
13712	// values: CSV, JSON
13713	Format *string `type:"string" enum:"Format"`
13714
13715	// The Amazon Resource Name (ARN) of an IAM role that grants Amazon Pinpoint
13716	// access to the endpoints in Amazon S3.
13717	RoleArn *string `type:"string"`
13718
13719	// A URL that points to the Amazon S3 location from which the endpoints for
13720	// this segment were imported.
13721	S3Url *string `type:"string"`
13722
13723	// The number of endpoints that were successfully imported to create this segment.
13724	Size *int64 `type:"integer"`
13725}
13726
13727// String returns the string representation
13728func (s SegmentImportResource) String() string {
13729	return awsutil.Prettify(s)
13730}
13731
13732// GoString returns the string representation
13733func (s SegmentImportResource) GoString() string {
13734	return s.String()
13735}
13736
13737// SetChannelCounts sets the ChannelCounts field's value.
13738func (s *SegmentImportResource) SetChannelCounts(v map[string]*int64) *SegmentImportResource {
13739	s.ChannelCounts = v
13740	return s
13741}
13742
13743// SetExternalId sets the ExternalId field's value.
13744func (s *SegmentImportResource) SetExternalId(v string) *SegmentImportResource {
13745	s.ExternalId = &v
13746	return s
13747}
13748
13749// SetFormat sets the Format field's value.
13750func (s *SegmentImportResource) SetFormat(v string) *SegmentImportResource {
13751	s.Format = &v
13752	return s
13753}
13754
13755// SetRoleArn sets the RoleArn field's value.
13756func (s *SegmentImportResource) SetRoleArn(v string) *SegmentImportResource {
13757	s.RoleArn = &v
13758	return s
13759}
13760
13761// SetS3Url sets the S3Url field's value.
13762func (s *SegmentImportResource) SetS3Url(v string) *SegmentImportResource {
13763	s.S3Url = &v
13764	return s
13765}
13766
13767// SetSize sets the Size field's value.
13768func (s *SegmentImportResource) SetSize(v int64) *SegmentImportResource {
13769	s.Size = &v
13770	return s
13771}
13772
13773// Segment location dimensions
13774// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentLocation
13775type SegmentLocation struct {
13776	_ struct{} `type:"structure"`
13777
13778	// The country filter according to ISO 3166-1 Alpha-2 codes.
13779	Country *SetDimension `type:"structure"`
13780}
13781
13782// String returns the string representation
13783func (s SegmentLocation) String() string {
13784	return awsutil.Prettify(s)
13785}
13786
13787// GoString returns the string representation
13788func (s SegmentLocation) GoString() string {
13789	return s.String()
13790}
13791
13792// SetCountry sets the Country field's value.
13793func (s *SegmentLocation) SetCountry(v *SetDimension) *SegmentLocation {
13794	s.Country = v
13795	return s
13796}
13797
13798// Segment definition.
13799// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentResponse
13800type SegmentResponse struct {
13801	_ struct{} `type:"structure"`
13802
13803	// The ID of the application to which the segment applies.
13804	ApplicationId *string `type:"string"`
13805
13806	// The date the segment was created in ISO 8601 format.
13807	CreationDate *string `type:"string"`
13808
13809	// The segment dimensions attributes.
13810	Dimensions *SegmentDimensions `type:"structure"`
13811
13812	// The unique segment ID.
13813	Id *string `type:"string"`
13814
13815	// The import job settings.
13816	ImportDefinition *SegmentImportResource `type:"structure"`
13817
13818	// The date the segment was last updated in ISO 8601 format.
13819	LastModifiedDate *string `type:"string"`
13820
13821	// The name of segment
13822	Name *string `type:"string"`
13823
13824	// The segment type:DIMENSIONAL - A dynamic segment built from selection criteria
13825	// based on endpoint data reported by your app. You create this type of segment
13826	// by using the segment builder in the Amazon Pinpoint console or by making
13827	// a POST request to the segments resource.IMPORT - A static segment built from
13828	// an imported set of endpoint definitions. You create this type of segment
13829	// by importing a segment in the Amazon Pinpoint console or by making a POST
13830	// request to the jobs/import resource.
13831	SegmentType *string `type:"string" enum:"SegmentType"`
13832
13833	// The segment version number.
13834	Version *int64 `type:"integer"`
13835}
13836
13837// String returns the string representation
13838func (s SegmentResponse) String() string {
13839	return awsutil.Prettify(s)
13840}
13841
13842// GoString returns the string representation
13843func (s SegmentResponse) GoString() string {
13844	return s.String()
13845}
13846
13847// SetApplicationId sets the ApplicationId field's value.
13848func (s *SegmentResponse) SetApplicationId(v string) *SegmentResponse {
13849	s.ApplicationId = &v
13850	return s
13851}
13852
13853// SetCreationDate sets the CreationDate field's value.
13854func (s *SegmentResponse) SetCreationDate(v string) *SegmentResponse {
13855	s.CreationDate = &v
13856	return s
13857}
13858
13859// SetDimensions sets the Dimensions field's value.
13860func (s *SegmentResponse) SetDimensions(v *SegmentDimensions) *SegmentResponse {
13861	s.Dimensions = v
13862	return s
13863}
13864
13865// SetId sets the Id field's value.
13866func (s *SegmentResponse) SetId(v string) *SegmentResponse {
13867	s.Id = &v
13868	return s
13869}
13870
13871// SetImportDefinition sets the ImportDefinition field's value.
13872func (s *SegmentResponse) SetImportDefinition(v *SegmentImportResource) *SegmentResponse {
13873	s.ImportDefinition = v
13874	return s
13875}
13876
13877// SetLastModifiedDate sets the LastModifiedDate field's value.
13878func (s *SegmentResponse) SetLastModifiedDate(v string) *SegmentResponse {
13879	s.LastModifiedDate = &v
13880	return s
13881}
13882
13883// SetName sets the Name field's value.
13884func (s *SegmentResponse) SetName(v string) *SegmentResponse {
13885	s.Name = &v
13886	return s
13887}
13888
13889// SetSegmentType sets the SegmentType field's value.
13890func (s *SegmentResponse) SetSegmentType(v string) *SegmentResponse {
13891	s.SegmentType = &v
13892	return s
13893}
13894
13895// SetVersion sets the Version field's value.
13896func (s *SegmentResponse) SetVersion(v int64) *SegmentResponse {
13897	s.Version = &v
13898	return s
13899}
13900
13901// Segments in your account.
13902// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SegmentsResponse
13903type SegmentsResponse struct {
13904	_ struct{} `type:"structure"`
13905
13906	// The list of segments.
13907	Item []*SegmentResponse `type:"list"`
13908
13909	// An identifier used to retrieve the next page of results. The token is null
13910	// if no additional pages exist.
13911	NextToken *string `type:"string"`
13912}
13913
13914// String returns the string representation
13915func (s SegmentsResponse) String() string {
13916	return awsutil.Prettify(s)
13917}
13918
13919// GoString returns the string representation
13920func (s SegmentsResponse) GoString() string {
13921	return s.String()
13922}
13923
13924// SetItem sets the Item field's value.
13925func (s *SegmentsResponse) SetItem(v []*SegmentResponse) *SegmentsResponse {
13926	s.Item = v
13927	return s
13928}
13929
13930// SetNextToken sets the NextToken field's value.
13931func (s *SegmentsResponse) SetNextToken(v string) *SegmentsResponse {
13932	s.NextToken = &v
13933	return s
13934}
13935
13936// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendMessagesRequest
13937type SendMessagesInput struct {
13938	_ struct{} `type:"structure" payload:"MessageRequest"`
13939
13940	// ApplicationId is a required field
13941	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
13942
13943	// Send message request.
13944	//
13945	// MessageRequest is a required field
13946	MessageRequest *MessageRequest `type:"structure" required:"true"`
13947}
13948
13949// String returns the string representation
13950func (s SendMessagesInput) String() string {
13951	return awsutil.Prettify(s)
13952}
13953
13954// GoString returns the string representation
13955func (s SendMessagesInput) GoString() string {
13956	return s.String()
13957}
13958
13959// Validate inspects the fields of the type to determine if they are valid.
13960func (s *SendMessagesInput) Validate() error {
13961	invalidParams := request.ErrInvalidParams{Context: "SendMessagesInput"}
13962	if s.ApplicationId == nil {
13963		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
13964	}
13965	if s.MessageRequest == nil {
13966		invalidParams.Add(request.NewErrParamRequired("MessageRequest"))
13967	}
13968
13969	if invalidParams.Len() > 0 {
13970		return invalidParams
13971	}
13972	return nil
13973}
13974
13975// SetApplicationId sets the ApplicationId field's value.
13976func (s *SendMessagesInput) SetApplicationId(v string) *SendMessagesInput {
13977	s.ApplicationId = &v
13978	return s
13979}
13980
13981// SetMessageRequest sets the MessageRequest field's value.
13982func (s *SendMessagesInput) SetMessageRequest(v *MessageRequest) *SendMessagesInput {
13983	s.MessageRequest = v
13984	return s
13985}
13986
13987// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendMessagesResponse
13988type SendMessagesOutput struct {
13989	_ struct{} `type:"structure" payload:"MessageResponse"`
13990
13991	// Send message response.
13992	//
13993	// MessageResponse is a required field
13994	MessageResponse *MessageResponse `type:"structure" required:"true"`
13995}
13996
13997// String returns the string representation
13998func (s SendMessagesOutput) String() string {
13999	return awsutil.Prettify(s)
14000}
14001
14002// GoString returns the string representation
14003func (s SendMessagesOutput) GoString() string {
14004	return s.String()
14005}
14006
14007// SetMessageResponse sets the MessageResponse field's value.
14008func (s *SendMessagesOutput) SetMessageResponse(v *MessageResponse) *SendMessagesOutput {
14009	s.MessageResponse = v
14010	return s
14011}
14012
14013// Send message request.
14014// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessageRequest
14015type SendUsersMessageRequest struct {
14016	_ struct{} `type:"structure"`
14017
14018	Context map[string]*string `type:"map"`
14019
14020	// Message configuration.
14021	MessageConfiguration *DirectMessageConfiguration `type:"structure"`
14022
14023	// A map of destination endpoints, with the EndpointId as the key Endpoint Message
14024	// Configuration as the value.
14025	Users map[string]*EndpointSendConfiguration `type:"map"`
14026}
14027
14028// String returns the string representation
14029func (s SendUsersMessageRequest) String() string {
14030	return awsutil.Prettify(s)
14031}
14032
14033// GoString returns the string representation
14034func (s SendUsersMessageRequest) GoString() string {
14035	return s.String()
14036}
14037
14038// SetContext sets the Context field's value.
14039func (s *SendUsersMessageRequest) SetContext(v map[string]*string) *SendUsersMessageRequest {
14040	s.Context = v
14041	return s
14042}
14043
14044// SetMessageConfiguration sets the MessageConfiguration field's value.
14045func (s *SendUsersMessageRequest) SetMessageConfiguration(v *DirectMessageConfiguration) *SendUsersMessageRequest {
14046	s.MessageConfiguration = v
14047	return s
14048}
14049
14050// SetUsers sets the Users field's value.
14051func (s *SendUsersMessageRequest) SetUsers(v map[string]*EndpointSendConfiguration) *SendUsersMessageRequest {
14052	s.Users = v
14053	return s
14054}
14055
14056// User send message response.
14057// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessageResponse
14058type SendUsersMessageResponse struct {
14059	_ struct{} `type:"structure"`
14060
14061	// Application id of the message.
14062	ApplicationId *string `type:"string"`
14063
14064	// Original request Id for which this message was delivered.
14065	RequestId *string `type:"string"`
14066
14067	// A map containing of UserId to Map of EndpointId to Endpoint Message Result.
14068	Result map[string]map[string]*EndpointMessageResult `type:"map"`
14069}
14070
14071// String returns the string representation
14072func (s SendUsersMessageResponse) String() string {
14073	return awsutil.Prettify(s)
14074}
14075
14076// GoString returns the string representation
14077func (s SendUsersMessageResponse) GoString() string {
14078	return s.String()
14079}
14080
14081// SetApplicationId sets the ApplicationId field's value.
14082func (s *SendUsersMessageResponse) SetApplicationId(v string) *SendUsersMessageResponse {
14083	s.ApplicationId = &v
14084	return s
14085}
14086
14087// SetRequestId sets the RequestId field's value.
14088func (s *SendUsersMessageResponse) SetRequestId(v string) *SendUsersMessageResponse {
14089	s.RequestId = &v
14090	return s
14091}
14092
14093// SetResult sets the Result field's value.
14094func (s *SendUsersMessageResponse) SetResult(v map[string]map[string]*EndpointMessageResult) *SendUsersMessageResponse {
14095	s.Result = v
14096	return s
14097}
14098
14099// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessagesRequest
14100type SendUsersMessagesInput struct {
14101	_ struct{} `type:"structure" payload:"SendUsersMessageRequest"`
14102
14103	// ApplicationId is a required field
14104	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14105
14106	// Send message request.
14107	//
14108	// SendUsersMessageRequest is a required field
14109	SendUsersMessageRequest *SendUsersMessageRequest `type:"structure" required:"true"`
14110}
14111
14112// String returns the string representation
14113func (s SendUsersMessagesInput) String() string {
14114	return awsutil.Prettify(s)
14115}
14116
14117// GoString returns the string representation
14118func (s SendUsersMessagesInput) GoString() string {
14119	return s.String()
14120}
14121
14122// Validate inspects the fields of the type to determine if they are valid.
14123func (s *SendUsersMessagesInput) Validate() error {
14124	invalidParams := request.ErrInvalidParams{Context: "SendUsersMessagesInput"}
14125	if s.ApplicationId == nil {
14126		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14127	}
14128	if s.SendUsersMessageRequest == nil {
14129		invalidParams.Add(request.NewErrParamRequired("SendUsersMessageRequest"))
14130	}
14131
14132	if invalidParams.Len() > 0 {
14133		return invalidParams
14134	}
14135	return nil
14136}
14137
14138// SetApplicationId sets the ApplicationId field's value.
14139func (s *SendUsersMessagesInput) SetApplicationId(v string) *SendUsersMessagesInput {
14140	s.ApplicationId = &v
14141	return s
14142}
14143
14144// SetSendUsersMessageRequest sets the SendUsersMessageRequest field's value.
14145func (s *SendUsersMessagesInput) SetSendUsersMessageRequest(v *SendUsersMessageRequest) *SendUsersMessagesInput {
14146	s.SendUsersMessageRequest = v
14147	return s
14148}
14149
14150// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SendUsersMessagesResponse
14151type SendUsersMessagesOutput struct {
14152	_ struct{} `type:"structure" payload:"SendUsersMessageResponse"`
14153
14154	// User send message response.
14155	//
14156	// SendUsersMessageResponse is a required field
14157	SendUsersMessageResponse *SendUsersMessageResponse `type:"structure" required:"true"`
14158}
14159
14160// String returns the string representation
14161func (s SendUsersMessagesOutput) String() string {
14162	return awsutil.Prettify(s)
14163}
14164
14165// GoString returns the string representation
14166func (s SendUsersMessagesOutput) GoString() string {
14167	return s.String()
14168}
14169
14170// SetSendUsersMessageResponse sets the SendUsersMessageResponse field's value.
14171func (s *SendUsersMessagesOutput) SetSendUsersMessageResponse(v *SendUsersMessageResponse) *SendUsersMessagesOutput {
14172	s.SendUsersMessageResponse = v
14173	return s
14174}
14175
14176// Dimension specification of a segment.
14177// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/SetDimension
14178type SetDimension struct {
14179	_ struct{} `type:"structure"`
14180
14181	// The type of dimension:INCLUSIVE - Endpoints that match the criteria are included
14182	// in the segment.EXCLUSIVE - Endpoints that match the criteria are excluded
14183	// from the segment.
14184	DimensionType *string `type:"string" enum:"DimensionType"`
14185
14186	Values []*string `type:"list"`
14187}
14188
14189// String returns the string representation
14190func (s SetDimension) String() string {
14191	return awsutil.Prettify(s)
14192}
14193
14194// GoString returns the string representation
14195func (s SetDimension) GoString() string {
14196	return s.String()
14197}
14198
14199// SetDimensionType sets the DimensionType field's value.
14200func (s *SetDimension) SetDimensionType(v string) *SetDimension {
14201	s.DimensionType = &v
14202	return s
14203}
14204
14205// SetValues sets the Values field's value.
14206func (s *SetDimension) SetValues(v []*string) *SetDimension {
14207	s.Values = v
14208	return s
14209}
14210
14211// Treatment resource
14212// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/TreatmentResource
14213type TreatmentResource struct {
14214	_ struct{} `type:"structure"`
14215
14216	// The unique treatment ID.
14217	Id *string `type:"string"`
14218
14219	// The message configuration settings.
14220	MessageConfiguration *MessageConfiguration `type:"structure"`
14221
14222	// The campaign schedule.
14223	Schedule *Schedule `type:"structure"`
14224
14225	// The allocated percentage of users for this treatment.
14226	SizePercent *int64 `type:"integer"`
14227
14228	// The treatment status.
14229	State *CampaignState `type:"structure"`
14230
14231	// A custom description for the treatment.
14232	TreatmentDescription *string `type:"string"`
14233
14234	// The custom name of a variation of the campaign used for A/B testing.
14235	TreatmentName *string `type:"string"`
14236}
14237
14238// String returns the string representation
14239func (s TreatmentResource) String() string {
14240	return awsutil.Prettify(s)
14241}
14242
14243// GoString returns the string representation
14244func (s TreatmentResource) GoString() string {
14245	return s.String()
14246}
14247
14248// SetId sets the Id field's value.
14249func (s *TreatmentResource) SetId(v string) *TreatmentResource {
14250	s.Id = &v
14251	return s
14252}
14253
14254// SetMessageConfiguration sets the MessageConfiguration field's value.
14255func (s *TreatmentResource) SetMessageConfiguration(v *MessageConfiguration) *TreatmentResource {
14256	s.MessageConfiguration = v
14257	return s
14258}
14259
14260// SetSchedule sets the Schedule field's value.
14261func (s *TreatmentResource) SetSchedule(v *Schedule) *TreatmentResource {
14262	s.Schedule = v
14263	return s
14264}
14265
14266// SetSizePercent sets the SizePercent field's value.
14267func (s *TreatmentResource) SetSizePercent(v int64) *TreatmentResource {
14268	s.SizePercent = &v
14269	return s
14270}
14271
14272// SetState sets the State field's value.
14273func (s *TreatmentResource) SetState(v *CampaignState) *TreatmentResource {
14274	s.State = v
14275	return s
14276}
14277
14278// SetTreatmentDescription sets the TreatmentDescription field's value.
14279func (s *TreatmentResource) SetTreatmentDescription(v string) *TreatmentResource {
14280	s.TreatmentDescription = &v
14281	return s
14282}
14283
14284// SetTreatmentName sets the TreatmentName field's value.
14285func (s *TreatmentResource) SetTreatmentName(v string) *TreatmentResource {
14286	s.TreatmentName = &v
14287	return s
14288}
14289
14290// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateAdmChannelRequest
14291type UpdateAdmChannelInput struct {
14292	_ struct{} `type:"structure" payload:"ADMChannelRequest"`
14293
14294	// Amazon Device Messaging channel definition.
14295	//
14296	// ADMChannelRequest is a required field
14297	ADMChannelRequest *ADMChannelRequest `type:"structure" required:"true"`
14298
14299	// ApplicationId is a required field
14300	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14301}
14302
14303// String returns the string representation
14304func (s UpdateAdmChannelInput) String() string {
14305	return awsutil.Prettify(s)
14306}
14307
14308// GoString returns the string representation
14309func (s UpdateAdmChannelInput) GoString() string {
14310	return s.String()
14311}
14312
14313// Validate inspects the fields of the type to determine if they are valid.
14314func (s *UpdateAdmChannelInput) Validate() error {
14315	invalidParams := request.ErrInvalidParams{Context: "UpdateAdmChannelInput"}
14316	if s.ADMChannelRequest == nil {
14317		invalidParams.Add(request.NewErrParamRequired("ADMChannelRequest"))
14318	}
14319	if s.ApplicationId == nil {
14320		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14321	}
14322
14323	if invalidParams.Len() > 0 {
14324		return invalidParams
14325	}
14326	return nil
14327}
14328
14329// SetADMChannelRequest sets the ADMChannelRequest field's value.
14330func (s *UpdateAdmChannelInput) SetADMChannelRequest(v *ADMChannelRequest) *UpdateAdmChannelInput {
14331	s.ADMChannelRequest = v
14332	return s
14333}
14334
14335// SetApplicationId sets the ApplicationId field's value.
14336func (s *UpdateAdmChannelInput) SetApplicationId(v string) *UpdateAdmChannelInput {
14337	s.ApplicationId = &v
14338	return s
14339}
14340
14341// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateAdmChannelResponse
14342type UpdateAdmChannelOutput struct {
14343	_ struct{} `type:"structure" payload:"ADMChannelResponse"`
14344
14345	// Amazon Device Messaging channel definition.
14346	//
14347	// ADMChannelResponse is a required field
14348	ADMChannelResponse *ADMChannelResponse `type:"structure" required:"true"`
14349}
14350
14351// String returns the string representation
14352func (s UpdateAdmChannelOutput) String() string {
14353	return awsutil.Prettify(s)
14354}
14355
14356// GoString returns the string representation
14357func (s UpdateAdmChannelOutput) GoString() string {
14358	return s.String()
14359}
14360
14361// SetADMChannelResponse sets the ADMChannelResponse field's value.
14362func (s *UpdateAdmChannelOutput) SetADMChannelResponse(v *ADMChannelResponse) *UpdateAdmChannelOutput {
14363	s.ADMChannelResponse = v
14364	return s
14365}
14366
14367// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsChannelRequest
14368type UpdateApnsChannelInput struct {
14369	_ struct{} `type:"structure" payload:"APNSChannelRequest"`
14370
14371	// Apple Push Notification Service channel definition.
14372	//
14373	// APNSChannelRequest is a required field
14374	APNSChannelRequest *APNSChannelRequest `type:"structure" required:"true"`
14375
14376	// ApplicationId is a required field
14377	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14378}
14379
14380// String returns the string representation
14381func (s UpdateApnsChannelInput) String() string {
14382	return awsutil.Prettify(s)
14383}
14384
14385// GoString returns the string representation
14386func (s UpdateApnsChannelInput) GoString() string {
14387	return s.String()
14388}
14389
14390// Validate inspects the fields of the type to determine if they are valid.
14391func (s *UpdateApnsChannelInput) Validate() error {
14392	invalidParams := request.ErrInvalidParams{Context: "UpdateApnsChannelInput"}
14393	if s.APNSChannelRequest == nil {
14394		invalidParams.Add(request.NewErrParamRequired("APNSChannelRequest"))
14395	}
14396	if s.ApplicationId == nil {
14397		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14398	}
14399
14400	if invalidParams.Len() > 0 {
14401		return invalidParams
14402	}
14403	return nil
14404}
14405
14406// SetAPNSChannelRequest sets the APNSChannelRequest field's value.
14407func (s *UpdateApnsChannelInput) SetAPNSChannelRequest(v *APNSChannelRequest) *UpdateApnsChannelInput {
14408	s.APNSChannelRequest = v
14409	return s
14410}
14411
14412// SetApplicationId sets the ApplicationId field's value.
14413func (s *UpdateApnsChannelInput) SetApplicationId(v string) *UpdateApnsChannelInput {
14414	s.ApplicationId = &v
14415	return s
14416}
14417
14418// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsChannelResponse
14419type UpdateApnsChannelOutput struct {
14420	_ struct{} `type:"structure" payload:"APNSChannelResponse"`
14421
14422	// Apple Distribution Push Notification Service channel definition.
14423	//
14424	// APNSChannelResponse is a required field
14425	APNSChannelResponse *APNSChannelResponse `type:"structure" required:"true"`
14426}
14427
14428// String returns the string representation
14429func (s UpdateApnsChannelOutput) String() string {
14430	return awsutil.Prettify(s)
14431}
14432
14433// GoString returns the string representation
14434func (s UpdateApnsChannelOutput) GoString() string {
14435	return s.String()
14436}
14437
14438// SetAPNSChannelResponse sets the APNSChannelResponse field's value.
14439func (s *UpdateApnsChannelOutput) SetAPNSChannelResponse(v *APNSChannelResponse) *UpdateApnsChannelOutput {
14440	s.APNSChannelResponse = v
14441	return s
14442}
14443
14444// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsSandboxChannelRequest
14445type UpdateApnsSandboxChannelInput struct {
14446	_ struct{} `type:"structure" payload:"APNSSandboxChannelRequest"`
14447
14448	// Apple Development Push Notification Service channel definition.
14449	//
14450	// APNSSandboxChannelRequest is a required field
14451	APNSSandboxChannelRequest *APNSSandboxChannelRequest `type:"structure" required:"true"`
14452
14453	// ApplicationId is a required field
14454	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14455}
14456
14457// String returns the string representation
14458func (s UpdateApnsSandboxChannelInput) String() string {
14459	return awsutil.Prettify(s)
14460}
14461
14462// GoString returns the string representation
14463func (s UpdateApnsSandboxChannelInput) GoString() string {
14464	return s.String()
14465}
14466
14467// Validate inspects the fields of the type to determine if they are valid.
14468func (s *UpdateApnsSandboxChannelInput) Validate() error {
14469	invalidParams := request.ErrInvalidParams{Context: "UpdateApnsSandboxChannelInput"}
14470	if s.APNSSandboxChannelRequest == nil {
14471		invalidParams.Add(request.NewErrParamRequired("APNSSandboxChannelRequest"))
14472	}
14473	if s.ApplicationId == nil {
14474		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14475	}
14476
14477	if invalidParams.Len() > 0 {
14478		return invalidParams
14479	}
14480	return nil
14481}
14482
14483// SetAPNSSandboxChannelRequest sets the APNSSandboxChannelRequest field's value.
14484func (s *UpdateApnsSandboxChannelInput) SetAPNSSandboxChannelRequest(v *APNSSandboxChannelRequest) *UpdateApnsSandboxChannelInput {
14485	s.APNSSandboxChannelRequest = v
14486	return s
14487}
14488
14489// SetApplicationId sets the ApplicationId field's value.
14490func (s *UpdateApnsSandboxChannelInput) SetApplicationId(v string) *UpdateApnsSandboxChannelInput {
14491	s.ApplicationId = &v
14492	return s
14493}
14494
14495// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsSandboxChannelResponse
14496type UpdateApnsSandboxChannelOutput struct {
14497	_ struct{} `type:"structure" payload:"APNSSandboxChannelResponse"`
14498
14499	// Apple Development Push Notification Service channel definition.
14500	//
14501	// APNSSandboxChannelResponse is a required field
14502	APNSSandboxChannelResponse *APNSSandboxChannelResponse `type:"structure" required:"true"`
14503}
14504
14505// String returns the string representation
14506func (s UpdateApnsSandboxChannelOutput) String() string {
14507	return awsutil.Prettify(s)
14508}
14509
14510// GoString returns the string representation
14511func (s UpdateApnsSandboxChannelOutput) GoString() string {
14512	return s.String()
14513}
14514
14515// SetAPNSSandboxChannelResponse sets the APNSSandboxChannelResponse field's value.
14516func (s *UpdateApnsSandboxChannelOutput) SetAPNSSandboxChannelResponse(v *APNSSandboxChannelResponse) *UpdateApnsSandboxChannelOutput {
14517	s.APNSSandboxChannelResponse = v
14518	return s
14519}
14520
14521// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipChannelRequest
14522type UpdateApnsVoipChannelInput struct {
14523	_ struct{} `type:"structure" payload:"APNSVoipChannelRequest"`
14524
14525	// Apple VOIP Push Notification Service channel definition.
14526	//
14527	// APNSVoipChannelRequest is a required field
14528	APNSVoipChannelRequest *APNSVoipChannelRequest `type:"structure" required:"true"`
14529
14530	// ApplicationId is a required field
14531	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14532}
14533
14534// String returns the string representation
14535func (s UpdateApnsVoipChannelInput) String() string {
14536	return awsutil.Prettify(s)
14537}
14538
14539// GoString returns the string representation
14540func (s UpdateApnsVoipChannelInput) GoString() string {
14541	return s.String()
14542}
14543
14544// Validate inspects the fields of the type to determine if they are valid.
14545func (s *UpdateApnsVoipChannelInput) Validate() error {
14546	invalidParams := request.ErrInvalidParams{Context: "UpdateApnsVoipChannelInput"}
14547	if s.APNSVoipChannelRequest == nil {
14548		invalidParams.Add(request.NewErrParamRequired("APNSVoipChannelRequest"))
14549	}
14550	if s.ApplicationId == nil {
14551		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14552	}
14553
14554	if invalidParams.Len() > 0 {
14555		return invalidParams
14556	}
14557	return nil
14558}
14559
14560// SetAPNSVoipChannelRequest sets the APNSVoipChannelRequest field's value.
14561func (s *UpdateApnsVoipChannelInput) SetAPNSVoipChannelRequest(v *APNSVoipChannelRequest) *UpdateApnsVoipChannelInput {
14562	s.APNSVoipChannelRequest = v
14563	return s
14564}
14565
14566// SetApplicationId sets the ApplicationId field's value.
14567func (s *UpdateApnsVoipChannelInput) SetApplicationId(v string) *UpdateApnsVoipChannelInput {
14568	s.ApplicationId = &v
14569	return s
14570}
14571
14572// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipChannelResponse
14573type UpdateApnsVoipChannelOutput struct {
14574	_ struct{} `type:"structure" payload:"APNSVoipChannelResponse"`
14575
14576	// Apple VOIP Push Notification Service channel definition.
14577	//
14578	// APNSVoipChannelResponse is a required field
14579	APNSVoipChannelResponse *APNSVoipChannelResponse `type:"structure" required:"true"`
14580}
14581
14582// String returns the string representation
14583func (s UpdateApnsVoipChannelOutput) String() string {
14584	return awsutil.Prettify(s)
14585}
14586
14587// GoString returns the string representation
14588func (s UpdateApnsVoipChannelOutput) GoString() string {
14589	return s.String()
14590}
14591
14592// SetAPNSVoipChannelResponse sets the APNSVoipChannelResponse field's value.
14593func (s *UpdateApnsVoipChannelOutput) SetAPNSVoipChannelResponse(v *APNSVoipChannelResponse) *UpdateApnsVoipChannelOutput {
14594	s.APNSVoipChannelResponse = v
14595	return s
14596}
14597
14598// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipSandboxChannelRequest
14599type UpdateApnsVoipSandboxChannelInput struct {
14600	_ struct{} `type:"structure" payload:"APNSVoipSandboxChannelRequest"`
14601
14602	// Apple VOIP Developer Push Notification Service channel definition.
14603	//
14604	// APNSVoipSandboxChannelRequest is a required field
14605	APNSVoipSandboxChannelRequest *APNSVoipSandboxChannelRequest `type:"structure" required:"true"`
14606
14607	// ApplicationId is a required field
14608	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14609}
14610
14611// String returns the string representation
14612func (s UpdateApnsVoipSandboxChannelInput) String() string {
14613	return awsutil.Prettify(s)
14614}
14615
14616// GoString returns the string representation
14617func (s UpdateApnsVoipSandboxChannelInput) GoString() string {
14618	return s.String()
14619}
14620
14621// Validate inspects the fields of the type to determine if they are valid.
14622func (s *UpdateApnsVoipSandboxChannelInput) Validate() error {
14623	invalidParams := request.ErrInvalidParams{Context: "UpdateApnsVoipSandboxChannelInput"}
14624	if s.APNSVoipSandboxChannelRequest == nil {
14625		invalidParams.Add(request.NewErrParamRequired("APNSVoipSandboxChannelRequest"))
14626	}
14627	if s.ApplicationId == nil {
14628		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14629	}
14630
14631	if invalidParams.Len() > 0 {
14632		return invalidParams
14633	}
14634	return nil
14635}
14636
14637// SetAPNSVoipSandboxChannelRequest sets the APNSVoipSandboxChannelRequest field's value.
14638func (s *UpdateApnsVoipSandboxChannelInput) SetAPNSVoipSandboxChannelRequest(v *APNSVoipSandboxChannelRequest) *UpdateApnsVoipSandboxChannelInput {
14639	s.APNSVoipSandboxChannelRequest = v
14640	return s
14641}
14642
14643// SetApplicationId sets the ApplicationId field's value.
14644func (s *UpdateApnsVoipSandboxChannelInput) SetApplicationId(v string) *UpdateApnsVoipSandboxChannelInput {
14645	s.ApplicationId = &v
14646	return s
14647}
14648
14649// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApnsVoipSandboxChannelResponse
14650type UpdateApnsVoipSandboxChannelOutput struct {
14651	_ struct{} `type:"structure" payload:"APNSVoipSandboxChannelResponse"`
14652
14653	// Apple VOIP Developer Push Notification Service channel definition.
14654	//
14655	// APNSVoipSandboxChannelResponse is a required field
14656	APNSVoipSandboxChannelResponse *APNSVoipSandboxChannelResponse `type:"structure" required:"true"`
14657}
14658
14659// String returns the string representation
14660func (s UpdateApnsVoipSandboxChannelOutput) String() string {
14661	return awsutil.Prettify(s)
14662}
14663
14664// GoString returns the string representation
14665func (s UpdateApnsVoipSandboxChannelOutput) GoString() string {
14666	return s.String()
14667}
14668
14669// SetAPNSVoipSandboxChannelResponse sets the APNSVoipSandboxChannelResponse field's value.
14670func (s *UpdateApnsVoipSandboxChannelOutput) SetAPNSVoipSandboxChannelResponse(v *APNSVoipSandboxChannelResponse) *UpdateApnsVoipSandboxChannelOutput {
14671	s.APNSVoipSandboxChannelResponse = v
14672	return s
14673}
14674
14675// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApplicationSettingsRequest
14676type UpdateApplicationSettingsInput struct {
14677	_ struct{} `type:"structure" payload:"WriteApplicationSettingsRequest"`
14678
14679	// ApplicationId is a required field
14680	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14681
14682	// Creating application setting request
14683	//
14684	// WriteApplicationSettingsRequest is a required field
14685	WriteApplicationSettingsRequest *WriteApplicationSettingsRequest `type:"structure" required:"true"`
14686}
14687
14688// String returns the string representation
14689func (s UpdateApplicationSettingsInput) String() string {
14690	return awsutil.Prettify(s)
14691}
14692
14693// GoString returns the string representation
14694func (s UpdateApplicationSettingsInput) GoString() string {
14695	return s.String()
14696}
14697
14698// Validate inspects the fields of the type to determine if they are valid.
14699func (s *UpdateApplicationSettingsInput) Validate() error {
14700	invalidParams := request.ErrInvalidParams{Context: "UpdateApplicationSettingsInput"}
14701	if s.ApplicationId == nil {
14702		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14703	}
14704	if s.WriteApplicationSettingsRequest == nil {
14705		invalidParams.Add(request.NewErrParamRequired("WriteApplicationSettingsRequest"))
14706	}
14707
14708	if invalidParams.Len() > 0 {
14709		return invalidParams
14710	}
14711	return nil
14712}
14713
14714// SetApplicationId sets the ApplicationId field's value.
14715func (s *UpdateApplicationSettingsInput) SetApplicationId(v string) *UpdateApplicationSettingsInput {
14716	s.ApplicationId = &v
14717	return s
14718}
14719
14720// SetWriteApplicationSettingsRequest sets the WriteApplicationSettingsRequest field's value.
14721func (s *UpdateApplicationSettingsInput) SetWriteApplicationSettingsRequest(v *WriteApplicationSettingsRequest) *UpdateApplicationSettingsInput {
14722	s.WriteApplicationSettingsRequest = v
14723	return s
14724}
14725
14726// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateApplicationSettingsResponse
14727type UpdateApplicationSettingsOutput struct {
14728	_ struct{} `type:"structure" payload:"ApplicationSettingsResource"`
14729
14730	// Application settings.
14731	//
14732	// ApplicationSettingsResource is a required field
14733	ApplicationSettingsResource *ApplicationSettingsResource `type:"structure" required:"true"`
14734}
14735
14736// String returns the string representation
14737func (s UpdateApplicationSettingsOutput) String() string {
14738	return awsutil.Prettify(s)
14739}
14740
14741// GoString returns the string representation
14742func (s UpdateApplicationSettingsOutput) GoString() string {
14743	return s.String()
14744}
14745
14746// SetApplicationSettingsResource sets the ApplicationSettingsResource field's value.
14747func (s *UpdateApplicationSettingsOutput) SetApplicationSettingsResource(v *ApplicationSettingsResource) *UpdateApplicationSettingsOutput {
14748	s.ApplicationSettingsResource = v
14749	return s
14750}
14751
14752// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateBaiduChannelRequest
14753type UpdateBaiduChannelInput struct {
14754	_ struct{} `type:"structure" payload:"BaiduChannelRequest"`
14755
14756	// ApplicationId is a required field
14757	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14758
14759	// Baidu Cloud Push credentials
14760	//
14761	// BaiduChannelRequest is a required field
14762	BaiduChannelRequest *BaiduChannelRequest `type:"structure" required:"true"`
14763}
14764
14765// String returns the string representation
14766func (s UpdateBaiduChannelInput) String() string {
14767	return awsutil.Prettify(s)
14768}
14769
14770// GoString returns the string representation
14771func (s UpdateBaiduChannelInput) GoString() string {
14772	return s.String()
14773}
14774
14775// Validate inspects the fields of the type to determine if they are valid.
14776func (s *UpdateBaiduChannelInput) Validate() error {
14777	invalidParams := request.ErrInvalidParams{Context: "UpdateBaiduChannelInput"}
14778	if s.ApplicationId == nil {
14779		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14780	}
14781	if s.BaiduChannelRequest == nil {
14782		invalidParams.Add(request.NewErrParamRequired("BaiduChannelRequest"))
14783	}
14784
14785	if invalidParams.Len() > 0 {
14786		return invalidParams
14787	}
14788	return nil
14789}
14790
14791// SetApplicationId sets the ApplicationId field's value.
14792func (s *UpdateBaiduChannelInput) SetApplicationId(v string) *UpdateBaiduChannelInput {
14793	s.ApplicationId = &v
14794	return s
14795}
14796
14797// SetBaiduChannelRequest sets the BaiduChannelRequest field's value.
14798func (s *UpdateBaiduChannelInput) SetBaiduChannelRequest(v *BaiduChannelRequest) *UpdateBaiduChannelInput {
14799	s.BaiduChannelRequest = v
14800	return s
14801}
14802
14803// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateBaiduChannelResponse
14804type UpdateBaiduChannelOutput struct {
14805	_ struct{} `type:"structure" payload:"BaiduChannelResponse"`
14806
14807	// Baidu Cloud Messaging channel definition
14808	//
14809	// BaiduChannelResponse is a required field
14810	BaiduChannelResponse *BaiduChannelResponse `type:"structure" required:"true"`
14811}
14812
14813// String returns the string representation
14814func (s UpdateBaiduChannelOutput) String() string {
14815	return awsutil.Prettify(s)
14816}
14817
14818// GoString returns the string representation
14819func (s UpdateBaiduChannelOutput) GoString() string {
14820	return s.String()
14821}
14822
14823// SetBaiduChannelResponse sets the BaiduChannelResponse field's value.
14824func (s *UpdateBaiduChannelOutput) SetBaiduChannelResponse(v *BaiduChannelResponse) *UpdateBaiduChannelOutput {
14825	s.BaiduChannelResponse = v
14826	return s
14827}
14828
14829// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateCampaignRequest
14830type UpdateCampaignInput struct {
14831	_ struct{} `type:"structure" payload:"WriteCampaignRequest"`
14832
14833	// ApplicationId is a required field
14834	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14835
14836	// CampaignId is a required field
14837	CampaignId *string `location:"uri" locationName:"campaign-id" type:"string" required:"true"`
14838
14839	// Used to create a campaign.
14840	//
14841	// WriteCampaignRequest is a required field
14842	WriteCampaignRequest *WriteCampaignRequest `type:"structure" required:"true"`
14843}
14844
14845// String returns the string representation
14846func (s UpdateCampaignInput) String() string {
14847	return awsutil.Prettify(s)
14848}
14849
14850// GoString returns the string representation
14851func (s UpdateCampaignInput) GoString() string {
14852	return s.String()
14853}
14854
14855// Validate inspects the fields of the type to determine if they are valid.
14856func (s *UpdateCampaignInput) Validate() error {
14857	invalidParams := request.ErrInvalidParams{Context: "UpdateCampaignInput"}
14858	if s.ApplicationId == nil {
14859		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14860	}
14861	if s.CampaignId == nil {
14862		invalidParams.Add(request.NewErrParamRequired("CampaignId"))
14863	}
14864	if s.WriteCampaignRequest == nil {
14865		invalidParams.Add(request.NewErrParamRequired("WriteCampaignRequest"))
14866	}
14867
14868	if invalidParams.Len() > 0 {
14869		return invalidParams
14870	}
14871	return nil
14872}
14873
14874// SetApplicationId sets the ApplicationId field's value.
14875func (s *UpdateCampaignInput) SetApplicationId(v string) *UpdateCampaignInput {
14876	s.ApplicationId = &v
14877	return s
14878}
14879
14880// SetCampaignId sets the CampaignId field's value.
14881func (s *UpdateCampaignInput) SetCampaignId(v string) *UpdateCampaignInput {
14882	s.CampaignId = &v
14883	return s
14884}
14885
14886// SetWriteCampaignRequest sets the WriteCampaignRequest field's value.
14887func (s *UpdateCampaignInput) SetWriteCampaignRequest(v *WriteCampaignRequest) *UpdateCampaignInput {
14888	s.WriteCampaignRequest = v
14889	return s
14890}
14891
14892// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateCampaignResponse
14893type UpdateCampaignOutput struct {
14894	_ struct{} `type:"structure" payload:"CampaignResponse"`
14895
14896	// Campaign definition
14897	//
14898	// CampaignResponse is a required field
14899	CampaignResponse *CampaignResponse `type:"structure" required:"true"`
14900}
14901
14902// String returns the string representation
14903func (s UpdateCampaignOutput) String() string {
14904	return awsutil.Prettify(s)
14905}
14906
14907// GoString returns the string representation
14908func (s UpdateCampaignOutput) GoString() string {
14909	return s.String()
14910}
14911
14912// SetCampaignResponse sets the CampaignResponse field's value.
14913func (s *UpdateCampaignOutput) SetCampaignResponse(v *CampaignResponse) *UpdateCampaignOutput {
14914	s.CampaignResponse = v
14915	return s
14916}
14917
14918// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEmailChannelRequest
14919type UpdateEmailChannelInput struct {
14920	_ struct{} `type:"structure" payload:"EmailChannelRequest"`
14921
14922	// ApplicationId is a required field
14923	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
14924
14925	// Email Channel Request
14926	//
14927	// EmailChannelRequest is a required field
14928	EmailChannelRequest *EmailChannelRequest `type:"structure" required:"true"`
14929}
14930
14931// String returns the string representation
14932func (s UpdateEmailChannelInput) String() string {
14933	return awsutil.Prettify(s)
14934}
14935
14936// GoString returns the string representation
14937func (s UpdateEmailChannelInput) GoString() string {
14938	return s.String()
14939}
14940
14941// Validate inspects the fields of the type to determine if they are valid.
14942func (s *UpdateEmailChannelInput) Validate() error {
14943	invalidParams := request.ErrInvalidParams{Context: "UpdateEmailChannelInput"}
14944	if s.ApplicationId == nil {
14945		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
14946	}
14947	if s.EmailChannelRequest == nil {
14948		invalidParams.Add(request.NewErrParamRequired("EmailChannelRequest"))
14949	}
14950
14951	if invalidParams.Len() > 0 {
14952		return invalidParams
14953	}
14954	return nil
14955}
14956
14957// SetApplicationId sets the ApplicationId field's value.
14958func (s *UpdateEmailChannelInput) SetApplicationId(v string) *UpdateEmailChannelInput {
14959	s.ApplicationId = &v
14960	return s
14961}
14962
14963// SetEmailChannelRequest sets the EmailChannelRequest field's value.
14964func (s *UpdateEmailChannelInput) SetEmailChannelRequest(v *EmailChannelRequest) *UpdateEmailChannelInput {
14965	s.EmailChannelRequest = v
14966	return s
14967}
14968
14969// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEmailChannelResponse
14970type UpdateEmailChannelOutput struct {
14971	_ struct{} `type:"structure" payload:"EmailChannelResponse"`
14972
14973	// Email Channel Response.
14974	//
14975	// EmailChannelResponse is a required field
14976	EmailChannelResponse *EmailChannelResponse `type:"structure" required:"true"`
14977}
14978
14979// String returns the string representation
14980func (s UpdateEmailChannelOutput) String() string {
14981	return awsutil.Prettify(s)
14982}
14983
14984// GoString returns the string representation
14985func (s UpdateEmailChannelOutput) GoString() string {
14986	return s.String()
14987}
14988
14989// SetEmailChannelResponse sets the EmailChannelResponse field's value.
14990func (s *UpdateEmailChannelOutput) SetEmailChannelResponse(v *EmailChannelResponse) *UpdateEmailChannelOutput {
14991	s.EmailChannelResponse = v
14992	return s
14993}
14994
14995// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpointRequest
14996type UpdateEndpointInput struct {
14997	_ struct{} `type:"structure" payload:"EndpointRequest"`
14998
14999	// ApplicationId is a required field
15000	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
15001
15002	// EndpointId is a required field
15003	EndpointId *string `location:"uri" locationName:"endpoint-id" type:"string" required:"true"`
15004
15005	// Endpoint update request
15006	//
15007	// EndpointRequest is a required field
15008	EndpointRequest *EndpointRequest `type:"structure" required:"true"`
15009}
15010
15011// String returns the string representation
15012func (s UpdateEndpointInput) String() string {
15013	return awsutil.Prettify(s)
15014}
15015
15016// GoString returns the string representation
15017func (s UpdateEndpointInput) GoString() string {
15018	return s.String()
15019}
15020
15021// Validate inspects the fields of the type to determine if they are valid.
15022func (s *UpdateEndpointInput) Validate() error {
15023	invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointInput"}
15024	if s.ApplicationId == nil {
15025		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
15026	}
15027	if s.EndpointId == nil {
15028		invalidParams.Add(request.NewErrParamRequired("EndpointId"))
15029	}
15030	if s.EndpointRequest == nil {
15031		invalidParams.Add(request.NewErrParamRequired("EndpointRequest"))
15032	}
15033
15034	if invalidParams.Len() > 0 {
15035		return invalidParams
15036	}
15037	return nil
15038}
15039
15040// SetApplicationId sets the ApplicationId field's value.
15041func (s *UpdateEndpointInput) SetApplicationId(v string) *UpdateEndpointInput {
15042	s.ApplicationId = &v
15043	return s
15044}
15045
15046// SetEndpointId sets the EndpointId field's value.
15047func (s *UpdateEndpointInput) SetEndpointId(v string) *UpdateEndpointInput {
15048	s.EndpointId = &v
15049	return s
15050}
15051
15052// SetEndpointRequest sets the EndpointRequest field's value.
15053func (s *UpdateEndpointInput) SetEndpointRequest(v *EndpointRequest) *UpdateEndpointInput {
15054	s.EndpointRequest = v
15055	return s
15056}
15057
15058// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpointResponse
15059type UpdateEndpointOutput struct {
15060	_ struct{} `type:"structure" payload:"MessageBody"`
15061
15062	// Simple message object.
15063	//
15064	// MessageBody is a required field
15065	MessageBody *MessageBody `type:"structure" required:"true"`
15066}
15067
15068// String returns the string representation
15069func (s UpdateEndpointOutput) String() string {
15070	return awsutil.Prettify(s)
15071}
15072
15073// GoString returns the string representation
15074func (s UpdateEndpointOutput) GoString() string {
15075	return s.String()
15076}
15077
15078// SetMessageBody sets the MessageBody field's value.
15079func (s *UpdateEndpointOutput) SetMessageBody(v *MessageBody) *UpdateEndpointOutput {
15080	s.MessageBody = v
15081	return s
15082}
15083
15084// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpointsBatchRequest
15085type UpdateEndpointsBatchInput struct {
15086	_ struct{} `type:"structure" payload:"EndpointBatchRequest"`
15087
15088	// ApplicationId is a required field
15089	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
15090
15091	// Endpoint batch update request.
15092	//
15093	// EndpointBatchRequest is a required field
15094	EndpointBatchRequest *EndpointBatchRequest `type:"structure" required:"true"`
15095}
15096
15097// String returns the string representation
15098func (s UpdateEndpointsBatchInput) String() string {
15099	return awsutil.Prettify(s)
15100}
15101
15102// GoString returns the string representation
15103func (s UpdateEndpointsBatchInput) GoString() string {
15104	return s.String()
15105}
15106
15107// Validate inspects the fields of the type to determine if they are valid.
15108func (s *UpdateEndpointsBatchInput) Validate() error {
15109	invalidParams := request.ErrInvalidParams{Context: "UpdateEndpointsBatchInput"}
15110	if s.ApplicationId == nil {
15111		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
15112	}
15113	if s.EndpointBatchRequest == nil {
15114		invalidParams.Add(request.NewErrParamRequired("EndpointBatchRequest"))
15115	}
15116
15117	if invalidParams.Len() > 0 {
15118		return invalidParams
15119	}
15120	return nil
15121}
15122
15123// SetApplicationId sets the ApplicationId field's value.
15124func (s *UpdateEndpointsBatchInput) SetApplicationId(v string) *UpdateEndpointsBatchInput {
15125	s.ApplicationId = &v
15126	return s
15127}
15128
15129// SetEndpointBatchRequest sets the EndpointBatchRequest field's value.
15130func (s *UpdateEndpointsBatchInput) SetEndpointBatchRequest(v *EndpointBatchRequest) *UpdateEndpointsBatchInput {
15131	s.EndpointBatchRequest = v
15132	return s
15133}
15134
15135// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateEndpointsBatchResponse
15136type UpdateEndpointsBatchOutput struct {
15137	_ struct{} `type:"structure" payload:"MessageBody"`
15138
15139	// Simple message object.
15140	//
15141	// MessageBody is a required field
15142	MessageBody *MessageBody `type:"structure" required:"true"`
15143}
15144
15145// String returns the string representation
15146func (s UpdateEndpointsBatchOutput) String() string {
15147	return awsutil.Prettify(s)
15148}
15149
15150// GoString returns the string representation
15151func (s UpdateEndpointsBatchOutput) GoString() string {
15152	return s.String()
15153}
15154
15155// SetMessageBody sets the MessageBody field's value.
15156func (s *UpdateEndpointsBatchOutput) SetMessageBody(v *MessageBody) *UpdateEndpointsBatchOutput {
15157	s.MessageBody = v
15158	return s
15159}
15160
15161// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateGcmChannelRequest
15162type UpdateGcmChannelInput struct {
15163	_ struct{} `type:"structure" payload:"GCMChannelRequest"`
15164
15165	// ApplicationId is a required field
15166	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
15167
15168	// Google Cloud Messaging credentials
15169	//
15170	// GCMChannelRequest is a required field
15171	GCMChannelRequest *GCMChannelRequest `type:"structure" required:"true"`
15172}
15173
15174// String returns the string representation
15175func (s UpdateGcmChannelInput) String() string {
15176	return awsutil.Prettify(s)
15177}
15178
15179// GoString returns the string representation
15180func (s UpdateGcmChannelInput) GoString() string {
15181	return s.String()
15182}
15183
15184// Validate inspects the fields of the type to determine if they are valid.
15185func (s *UpdateGcmChannelInput) Validate() error {
15186	invalidParams := request.ErrInvalidParams{Context: "UpdateGcmChannelInput"}
15187	if s.ApplicationId == nil {
15188		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
15189	}
15190	if s.GCMChannelRequest == nil {
15191		invalidParams.Add(request.NewErrParamRequired("GCMChannelRequest"))
15192	}
15193
15194	if invalidParams.Len() > 0 {
15195		return invalidParams
15196	}
15197	return nil
15198}
15199
15200// SetApplicationId sets the ApplicationId field's value.
15201func (s *UpdateGcmChannelInput) SetApplicationId(v string) *UpdateGcmChannelInput {
15202	s.ApplicationId = &v
15203	return s
15204}
15205
15206// SetGCMChannelRequest sets the GCMChannelRequest field's value.
15207func (s *UpdateGcmChannelInput) SetGCMChannelRequest(v *GCMChannelRequest) *UpdateGcmChannelInput {
15208	s.GCMChannelRequest = v
15209	return s
15210}
15211
15212// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateGcmChannelResponse
15213type UpdateGcmChannelOutput struct {
15214	_ struct{} `type:"structure" payload:"GCMChannelResponse"`
15215
15216	// Google Cloud Messaging channel definition
15217	//
15218	// GCMChannelResponse is a required field
15219	GCMChannelResponse *GCMChannelResponse `type:"structure" required:"true"`
15220}
15221
15222// String returns the string representation
15223func (s UpdateGcmChannelOutput) String() string {
15224	return awsutil.Prettify(s)
15225}
15226
15227// GoString returns the string representation
15228func (s UpdateGcmChannelOutput) GoString() string {
15229	return s.String()
15230}
15231
15232// SetGCMChannelResponse sets the GCMChannelResponse field's value.
15233func (s *UpdateGcmChannelOutput) SetGCMChannelResponse(v *GCMChannelResponse) *UpdateGcmChannelOutput {
15234	s.GCMChannelResponse = v
15235	return s
15236}
15237
15238// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSegmentRequest
15239type UpdateSegmentInput struct {
15240	_ struct{} `type:"structure" payload:"WriteSegmentRequest"`
15241
15242	// ApplicationId is a required field
15243	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
15244
15245	// SegmentId is a required field
15246	SegmentId *string `location:"uri" locationName:"segment-id" type:"string" required:"true"`
15247
15248	// Segment definition.
15249	//
15250	// WriteSegmentRequest is a required field
15251	WriteSegmentRequest *WriteSegmentRequest `type:"structure" required:"true"`
15252}
15253
15254// String returns the string representation
15255func (s UpdateSegmentInput) String() string {
15256	return awsutil.Prettify(s)
15257}
15258
15259// GoString returns the string representation
15260func (s UpdateSegmentInput) GoString() string {
15261	return s.String()
15262}
15263
15264// Validate inspects the fields of the type to determine if they are valid.
15265func (s *UpdateSegmentInput) Validate() error {
15266	invalidParams := request.ErrInvalidParams{Context: "UpdateSegmentInput"}
15267	if s.ApplicationId == nil {
15268		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
15269	}
15270	if s.SegmentId == nil {
15271		invalidParams.Add(request.NewErrParamRequired("SegmentId"))
15272	}
15273	if s.WriteSegmentRequest == nil {
15274		invalidParams.Add(request.NewErrParamRequired("WriteSegmentRequest"))
15275	}
15276
15277	if invalidParams.Len() > 0 {
15278		return invalidParams
15279	}
15280	return nil
15281}
15282
15283// SetApplicationId sets the ApplicationId field's value.
15284func (s *UpdateSegmentInput) SetApplicationId(v string) *UpdateSegmentInput {
15285	s.ApplicationId = &v
15286	return s
15287}
15288
15289// SetSegmentId sets the SegmentId field's value.
15290func (s *UpdateSegmentInput) SetSegmentId(v string) *UpdateSegmentInput {
15291	s.SegmentId = &v
15292	return s
15293}
15294
15295// SetWriteSegmentRequest sets the WriteSegmentRequest field's value.
15296func (s *UpdateSegmentInput) SetWriteSegmentRequest(v *WriteSegmentRequest) *UpdateSegmentInput {
15297	s.WriteSegmentRequest = v
15298	return s
15299}
15300
15301// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSegmentResponse
15302type UpdateSegmentOutput struct {
15303	_ struct{} `type:"structure" payload:"SegmentResponse"`
15304
15305	// Segment definition.
15306	//
15307	// SegmentResponse is a required field
15308	SegmentResponse *SegmentResponse `type:"structure" required:"true"`
15309}
15310
15311// String returns the string representation
15312func (s UpdateSegmentOutput) String() string {
15313	return awsutil.Prettify(s)
15314}
15315
15316// GoString returns the string representation
15317func (s UpdateSegmentOutput) GoString() string {
15318	return s.String()
15319}
15320
15321// SetSegmentResponse sets the SegmentResponse field's value.
15322func (s *UpdateSegmentOutput) SetSegmentResponse(v *SegmentResponse) *UpdateSegmentOutput {
15323	s.SegmentResponse = v
15324	return s
15325}
15326
15327// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSmsChannelRequest
15328type UpdateSmsChannelInput struct {
15329	_ struct{} `type:"structure" payload:"SMSChannelRequest"`
15330
15331	// ApplicationId is a required field
15332	ApplicationId *string `location:"uri" locationName:"application-id" type:"string" required:"true"`
15333
15334	// SMS Channel Request
15335	//
15336	// SMSChannelRequest is a required field
15337	SMSChannelRequest *SMSChannelRequest `type:"structure" required:"true"`
15338}
15339
15340// String returns the string representation
15341func (s UpdateSmsChannelInput) String() string {
15342	return awsutil.Prettify(s)
15343}
15344
15345// GoString returns the string representation
15346func (s UpdateSmsChannelInput) GoString() string {
15347	return s.String()
15348}
15349
15350// Validate inspects the fields of the type to determine if they are valid.
15351func (s *UpdateSmsChannelInput) Validate() error {
15352	invalidParams := request.ErrInvalidParams{Context: "UpdateSmsChannelInput"}
15353	if s.ApplicationId == nil {
15354		invalidParams.Add(request.NewErrParamRequired("ApplicationId"))
15355	}
15356	if s.SMSChannelRequest == nil {
15357		invalidParams.Add(request.NewErrParamRequired("SMSChannelRequest"))
15358	}
15359
15360	if invalidParams.Len() > 0 {
15361		return invalidParams
15362	}
15363	return nil
15364}
15365
15366// SetApplicationId sets the ApplicationId field's value.
15367func (s *UpdateSmsChannelInput) SetApplicationId(v string) *UpdateSmsChannelInput {
15368	s.ApplicationId = &v
15369	return s
15370}
15371
15372// SetSMSChannelRequest sets the SMSChannelRequest field's value.
15373func (s *UpdateSmsChannelInput) SetSMSChannelRequest(v *SMSChannelRequest) *UpdateSmsChannelInput {
15374	s.SMSChannelRequest = v
15375	return s
15376}
15377
15378// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/UpdateSmsChannelResponse
15379type UpdateSmsChannelOutput struct {
15380	_ struct{} `type:"structure" payload:"SMSChannelResponse"`
15381
15382	// SMS Channel Response.
15383	//
15384	// SMSChannelResponse is a required field
15385	SMSChannelResponse *SMSChannelResponse `type:"structure" required:"true"`
15386}
15387
15388// String returns the string representation
15389func (s UpdateSmsChannelOutput) String() string {
15390	return awsutil.Prettify(s)
15391}
15392
15393// GoString returns the string representation
15394func (s UpdateSmsChannelOutput) GoString() string {
15395	return s.String()
15396}
15397
15398// SetSMSChannelResponse sets the SMSChannelResponse field's value.
15399func (s *UpdateSmsChannelOutput) SetSMSChannelResponse(v *SMSChannelResponse) *UpdateSmsChannelOutput {
15400	s.SMSChannelResponse = v
15401	return s
15402}
15403
15404// Creating application setting request
15405// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/WriteApplicationSettingsRequest
15406type WriteApplicationSettingsRequest struct {
15407	_ struct{} `type:"structure"`
15408
15409	// The default campaign limits for the app. These limits apply to each campaign
15410	// for the app, unless the campaign overrides the default with limits of its
15411	// own.
15412	Limits *CampaignLimits `type:"structure"`
15413
15414	// The default quiet time for the app. Each campaign for this app sends no messages
15415	// during this time unless the campaign overrides the default with a quiet time
15416	// of its own.
15417	QuietTime *QuietTime `type:"structure"`
15418}
15419
15420// String returns the string representation
15421func (s WriteApplicationSettingsRequest) String() string {
15422	return awsutil.Prettify(s)
15423}
15424
15425// GoString returns the string representation
15426func (s WriteApplicationSettingsRequest) GoString() string {
15427	return s.String()
15428}
15429
15430// SetLimits sets the Limits field's value.
15431func (s *WriteApplicationSettingsRequest) SetLimits(v *CampaignLimits) *WriteApplicationSettingsRequest {
15432	s.Limits = v
15433	return s
15434}
15435
15436// SetQuietTime sets the QuietTime field's value.
15437func (s *WriteApplicationSettingsRequest) SetQuietTime(v *QuietTime) *WriteApplicationSettingsRequest {
15438	s.QuietTime = v
15439	return s
15440}
15441
15442// Used to create a campaign.
15443// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/WriteCampaignRequest
15444type WriteCampaignRequest struct {
15445	_ struct{} `type:"structure"`
15446
15447	// Treatments that are defined in addition to the default treatment.
15448	AdditionalTreatments []*WriteTreatmentResource `type:"list"`
15449
15450	// A description of the campaign.
15451	Description *string `type:"string"`
15452
15453	// The allocated percentage of end users who will not receive messages from
15454	// this campaign.
15455	HoldoutPercent *int64 `type:"integer"`
15456
15457	// Indicates whether the campaign is paused. A paused campaign does not send
15458	// messages unless you resume it by setting IsPaused to false.
15459	IsPaused *bool `type:"boolean"`
15460
15461	// The campaign limits settings.
15462	Limits *CampaignLimits `type:"structure"`
15463
15464	// The message configuration settings.
15465	MessageConfiguration *MessageConfiguration `type:"structure"`
15466
15467	// The custom name of the campaign.
15468	Name *string `type:"string"`
15469
15470	// The campaign schedule.
15471	Schedule *Schedule `type:"structure"`
15472
15473	// The ID of the segment to which the campaign sends messages.
15474	SegmentId *string `type:"string"`
15475
15476	// The version of the segment to which the campaign sends messages.
15477	SegmentVersion *int64 `type:"integer"`
15478
15479	// A custom description for the treatment.
15480	TreatmentDescription *string `type:"string"`
15481
15482	// The custom name of a variation of the campaign used for A/B testing.
15483	TreatmentName *string `type:"string"`
15484}
15485
15486// String returns the string representation
15487func (s WriteCampaignRequest) String() string {
15488	return awsutil.Prettify(s)
15489}
15490
15491// GoString returns the string representation
15492func (s WriteCampaignRequest) GoString() string {
15493	return s.String()
15494}
15495
15496// SetAdditionalTreatments sets the AdditionalTreatments field's value.
15497func (s *WriteCampaignRequest) SetAdditionalTreatments(v []*WriteTreatmentResource) *WriteCampaignRequest {
15498	s.AdditionalTreatments = v
15499	return s
15500}
15501
15502// SetDescription sets the Description field's value.
15503func (s *WriteCampaignRequest) SetDescription(v string) *WriteCampaignRequest {
15504	s.Description = &v
15505	return s
15506}
15507
15508// SetHoldoutPercent sets the HoldoutPercent field's value.
15509func (s *WriteCampaignRequest) SetHoldoutPercent(v int64) *WriteCampaignRequest {
15510	s.HoldoutPercent = &v
15511	return s
15512}
15513
15514// SetIsPaused sets the IsPaused field's value.
15515func (s *WriteCampaignRequest) SetIsPaused(v bool) *WriteCampaignRequest {
15516	s.IsPaused = &v
15517	return s
15518}
15519
15520// SetLimits sets the Limits field's value.
15521func (s *WriteCampaignRequest) SetLimits(v *CampaignLimits) *WriteCampaignRequest {
15522	s.Limits = v
15523	return s
15524}
15525
15526// SetMessageConfiguration sets the MessageConfiguration field's value.
15527func (s *WriteCampaignRequest) SetMessageConfiguration(v *MessageConfiguration) *WriteCampaignRequest {
15528	s.MessageConfiguration = v
15529	return s
15530}
15531
15532// SetName sets the Name field's value.
15533func (s *WriteCampaignRequest) SetName(v string) *WriteCampaignRequest {
15534	s.Name = &v
15535	return s
15536}
15537
15538// SetSchedule sets the Schedule field's value.
15539func (s *WriteCampaignRequest) SetSchedule(v *Schedule) *WriteCampaignRequest {
15540	s.Schedule = v
15541	return s
15542}
15543
15544// SetSegmentId sets the SegmentId field's value.
15545func (s *WriteCampaignRequest) SetSegmentId(v string) *WriteCampaignRequest {
15546	s.SegmentId = &v
15547	return s
15548}
15549
15550// SetSegmentVersion sets the SegmentVersion field's value.
15551func (s *WriteCampaignRequest) SetSegmentVersion(v int64) *WriteCampaignRequest {
15552	s.SegmentVersion = &v
15553	return s
15554}
15555
15556// SetTreatmentDescription sets the TreatmentDescription field's value.
15557func (s *WriteCampaignRequest) SetTreatmentDescription(v string) *WriteCampaignRequest {
15558	s.TreatmentDescription = &v
15559	return s
15560}
15561
15562// SetTreatmentName sets the TreatmentName field's value.
15563func (s *WriteCampaignRequest) SetTreatmentName(v string) *WriteCampaignRequest {
15564	s.TreatmentName = &v
15565	return s
15566}
15567
15568// Request to save an EventStream.
15569// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/WriteEventStream
15570type WriteEventStream struct {
15571	_ struct{} `type:"structure"`
15572
15573	// The Amazon Resource Name (ARN) of the Amazon Kinesis stream or Firehose delivery
15574	// stream to which you want to publish events. Firehose ARN: arn:aws:firehose:REGION:ACCOUNT_ID:deliverystream/STREAM_NAME
15575	// Kinesis ARN: arn:aws:kinesis:REGION:ACCOUNT_ID:stream/STREAM_NAME
15576	DestinationStreamArn *string `type:"string"`
15577
15578	// The IAM role that authorizes Amazon Pinpoint to publish events to the stream
15579	// in your account.
15580	RoleArn *string `type:"string"`
15581}
15582
15583// String returns the string representation
15584func (s WriteEventStream) String() string {
15585	return awsutil.Prettify(s)
15586}
15587
15588// GoString returns the string representation
15589func (s WriteEventStream) GoString() string {
15590	return s.String()
15591}
15592
15593// SetDestinationStreamArn sets the DestinationStreamArn field's value.
15594func (s *WriteEventStream) SetDestinationStreamArn(v string) *WriteEventStream {
15595	s.DestinationStreamArn = &v
15596	return s
15597}
15598
15599// SetRoleArn sets the RoleArn field's value.
15600func (s *WriteEventStream) SetRoleArn(v string) *WriteEventStream {
15601	s.RoleArn = &v
15602	return s
15603}
15604
15605// Segment definition.
15606// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/WriteSegmentRequest
15607type WriteSegmentRequest struct {
15608	_ struct{} `type:"structure"`
15609
15610	// The segment dimensions attributes.
15611	Dimensions *SegmentDimensions `type:"structure"`
15612
15613	// The name of segment
15614	Name *string `type:"string"`
15615}
15616
15617// String returns the string representation
15618func (s WriteSegmentRequest) String() string {
15619	return awsutil.Prettify(s)
15620}
15621
15622// GoString returns the string representation
15623func (s WriteSegmentRequest) GoString() string {
15624	return s.String()
15625}
15626
15627// SetDimensions sets the Dimensions field's value.
15628func (s *WriteSegmentRequest) SetDimensions(v *SegmentDimensions) *WriteSegmentRequest {
15629	s.Dimensions = v
15630	return s
15631}
15632
15633// SetName sets the Name field's value.
15634func (s *WriteSegmentRequest) SetName(v string) *WriteSegmentRequest {
15635	s.Name = &v
15636	return s
15637}
15638
15639// Used to create a campaign treatment.
15640// See also, https://docs.aws.amazon.com/goto/WebAPI/pinpoint-2016-12-01/WriteTreatmentResource
15641type WriteTreatmentResource struct {
15642	_ struct{} `type:"structure"`
15643
15644	// The message configuration settings.
15645	MessageConfiguration *MessageConfiguration `type:"structure"`
15646
15647	// The campaign schedule.
15648	Schedule *Schedule `type:"structure"`
15649
15650	// The allocated percentage of users for this treatment.
15651	SizePercent *int64 `type:"integer"`
15652
15653	// A custom description for the treatment.
15654	TreatmentDescription *string `type:"string"`
15655
15656	// The custom name of a variation of the campaign used for A/B testing.
15657	TreatmentName *string `type:"string"`
15658}
15659
15660// String returns the string representation
15661func (s WriteTreatmentResource) String() string {
15662	return awsutil.Prettify(s)
15663}
15664
15665// GoString returns the string representation
15666func (s WriteTreatmentResource) GoString() string {
15667	return s.String()
15668}
15669
15670// SetMessageConfiguration sets the MessageConfiguration field's value.
15671func (s *WriteTreatmentResource) SetMessageConfiguration(v *MessageConfiguration) *WriteTreatmentResource {
15672	s.MessageConfiguration = v
15673	return s
15674}
15675
15676// SetSchedule sets the Schedule field's value.
15677func (s *WriteTreatmentResource) SetSchedule(v *Schedule) *WriteTreatmentResource {
15678	s.Schedule = v
15679	return s
15680}
15681
15682// SetSizePercent sets the SizePercent field's value.
15683func (s *WriteTreatmentResource) SetSizePercent(v int64) *WriteTreatmentResource {
15684	s.SizePercent = &v
15685	return s
15686}
15687
15688// SetTreatmentDescription sets the TreatmentDescription field's value.
15689func (s *WriteTreatmentResource) SetTreatmentDescription(v string) *WriteTreatmentResource {
15690	s.TreatmentDescription = &v
15691	return s
15692}
15693
15694// SetTreatmentName sets the TreatmentName field's value.
15695func (s *WriteTreatmentResource) SetTreatmentName(v string) *WriteTreatmentResource {
15696	s.TreatmentName = &v
15697	return s
15698}
15699
15700const (
15701	// ActionOpenApp is a Action enum value
15702	ActionOpenApp = "OPEN_APP"
15703
15704	// ActionDeepLink is a Action enum value
15705	ActionDeepLink = "DEEP_LINK"
15706
15707	// ActionUrl is a Action enum value
15708	ActionUrl = "URL"
15709)
15710
15711const (
15712	// AttributeTypeInclusive is a AttributeType enum value
15713	AttributeTypeInclusive = "INCLUSIVE"
15714
15715	// AttributeTypeExclusive is a AttributeType enum value
15716	AttributeTypeExclusive = "EXCLUSIVE"
15717)
15718
15719const (
15720	// CampaignStatusScheduled is a CampaignStatus enum value
15721	CampaignStatusScheduled = "SCHEDULED"
15722
15723	// CampaignStatusExecuting is a CampaignStatus enum value
15724	CampaignStatusExecuting = "EXECUTING"
15725
15726	// CampaignStatusPendingNextRun is a CampaignStatus enum value
15727	CampaignStatusPendingNextRun = "PENDING_NEXT_RUN"
15728
15729	// CampaignStatusCompleted is a CampaignStatus enum value
15730	CampaignStatusCompleted = "COMPLETED"
15731
15732	// CampaignStatusPaused is a CampaignStatus enum value
15733	CampaignStatusPaused = "PAUSED"
15734)
15735
15736const (
15737	// ChannelTypeGcm is a ChannelType enum value
15738	ChannelTypeGcm = "GCM"
15739
15740	// ChannelTypeApns is a ChannelType enum value
15741	ChannelTypeApns = "APNS"
15742
15743	// ChannelTypeApnsSandbox is a ChannelType enum value
15744	ChannelTypeApnsSandbox = "APNS_SANDBOX"
15745
15746	// ChannelTypeApnsVoip is a ChannelType enum value
15747	ChannelTypeApnsVoip = "APNS_VOIP"
15748
15749	// ChannelTypeApnsVoipSandbox is a ChannelType enum value
15750	ChannelTypeApnsVoipSandbox = "APNS_VOIP_SANDBOX"
15751
15752	// ChannelTypeAdm is a ChannelType enum value
15753	ChannelTypeAdm = "ADM"
15754
15755	// ChannelTypeSms is a ChannelType enum value
15756	ChannelTypeSms = "SMS"
15757
15758	// ChannelTypeEmail is a ChannelType enum value
15759	ChannelTypeEmail = "EMAIL"
15760
15761	// ChannelTypeBaidu is a ChannelType enum value
15762	ChannelTypeBaidu = "BAIDU"
15763)
15764
15765const (
15766	// DeliveryStatusSuccessful is a DeliveryStatus enum value
15767	DeliveryStatusSuccessful = "SUCCESSFUL"
15768
15769	// DeliveryStatusThrottled is a DeliveryStatus enum value
15770	DeliveryStatusThrottled = "THROTTLED"
15771
15772	// DeliveryStatusTemporaryFailure is a DeliveryStatus enum value
15773	DeliveryStatusTemporaryFailure = "TEMPORARY_FAILURE"
15774
15775	// DeliveryStatusPermanentFailure is a DeliveryStatus enum value
15776	DeliveryStatusPermanentFailure = "PERMANENT_FAILURE"
15777
15778	// DeliveryStatusUnknownFailure is a DeliveryStatus enum value
15779	DeliveryStatusUnknownFailure = "UNKNOWN_FAILURE"
15780
15781	// DeliveryStatusOptOut is a DeliveryStatus enum value
15782	DeliveryStatusOptOut = "OPT_OUT"
15783
15784	// DeliveryStatusDuplicate is a DeliveryStatus enum value
15785	DeliveryStatusDuplicate = "DUPLICATE"
15786)
15787
15788const (
15789	// DimensionTypeInclusive is a DimensionType enum value
15790	DimensionTypeInclusive = "INCLUSIVE"
15791
15792	// DimensionTypeExclusive is a DimensionType enum value
15793	DimensionTypeExclusive = "EXCLUSIVE"
15794)
15795
15796const (
15797	// DurationHr24 is a Duration enum value
15798	DurationHr24 = "HR_24"
15799
15800	// DurationDay7 is a Duration enum value
15801	DurationDay7 = "DAY_7"
15802
15803	// DurationDay14 is a Duration enum value
15804	DurationDay14 = "DAY_14"
15805
15806	// DurationDay30 is a Duration enum value
15807	DurationDay30 = "DAY_30"
15808)
15809
15810const (
15811	// FormatCsv is a Format enum value
15812	FormatCsv = "CSV"
15813
15814	// FormatJson is a Format enum value
15815	FormatJson = "JSON"
15816)
15817
15818const (
15819	// FrequencyOnce is a Frequency enum value
15820	FrequencyOnce = "ONCE"
15821
15822	// FrequencyHourly is a Frequency enum value
15823	FrequencyHourly = "HOURLY"
15824
15825	// FrequencyDaily is a Frequency enum value
15826	FrequencyDaily = "DAILY"
15827
15828	// FrequencyWeekly is a Frequency enum value
15829	FrequencyWeekly = "WEEKLY"
15830
15831	// FrequencyMonthly is a Frequency enum value
15832	FrequencyMonthly = "MONTHLY"
15833)
15834
15835const (
15836	// JobStatusCreated is a JobStatus enum value
15837	JobStatusCreated = "CREATED"
15838
15839	// JobStatusInitializing is a JobStatus enum value
15840	JobStatusInitializing = "INITIALIZING"
15841
15842	// JobStatusProcessing is a JobStatus enum value
15843	JobStatusProcessing = "PROCESSING"
15844
15845	// JobStatusCompleting is a JobStatus enum value
15846	JobStatusCompleting = "COMPLETING"
15847
15848	// JobStatusCompleted is a JobStatus enum value
15849	JobStatusCompleted = "COMPLETED"
15850
15851	// JobStatusFailing is a JobStatus enum value
15852	JobStatusFailing = "FAILING"
15853
15854	// JobStatusFailed is a JobStatus enum value
15855	JobStatusFailed = "FAILED"
15856)
15857
15858const (
15859	// MessageTypeTransactional is a MessageType enum value
15860	MessageTypeTransactional = "TRANSACTIONAL"
15861
15862	// MessageTypePromotional is a MessageType enum value
15863	MessageTypePromotional = "PROMOTIONAL"
15864)
15865
15866const (
15867	// RecencyTypeActive is a RecencyType enum value
15868	RecencyTypeActive = "ACTIVE"
15869
15870	// RecencyTypeInactive is a RecencyType enum value
15871	RecencyTypeInactive = "INACTIVE"
15872)
15873
15874const (
15875	// SegmentTypeDimensional is a SegmentType enum value
15876	SegmentTypeDimensional = "DIMENSIONAL"
15877
15878	// SegmentTypeImport is a SegmentType enum value
15879	SegmentTypeImport = "IMPORT"
15880)
15881