1// Code generated by smithy-go-codegen DO NOT EDIT.
2
3package mediaconvert
4
5import (
6	"context"
7	"fmt"
8	"github.com/aws/aws-sdk-go-v2/service/mediaconvert/types"
9	smithy "github.com/aws/smithy-go"
10	"github.com/aws/smithy-go/middleware"
11)
12
13type validateOpAssociateCertificate struct {
14}
15
16func (*validateOpAssociateCertificate) ID() string {
17	return "OperationInputValidation"
18}
19
20func (m *validateOpAssociateCertificate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
21	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
22) {
23	input, ok := in.Parameters.(*AssociateCertificateInput)
24	if !ok {
25		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
26	}
27	if err := validateOpAssociateCertificateInput(input); err != nil {
28		return out, metadata, err
29	}
30	return next.HandleInitialize(ctx, in)
31}
32
33type validateOpCancelJob struct {
34}
35
36func (*validateOpCancelJob) ID() string {
37	return "OperationInputValidation"
38}
39
40func (m *validateOpCancelJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
41	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
42) {
43	input, ok := in.Parameters.(*CancelJobInput)
44	if !ok {
45		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
46	}
47	if err := validateOpCancelJobInput(input); err != nil {
48		return out, metadata, err
49	}
50	return next.HandleInitialize(ctx, in)
51}
52
53type validateOpCreateJob struct {
54}
55
56func (*validateOpCreateJob) ID() string {
57	return "OperationInputValidation"
58}
59
60func (m *validateOpCreateJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
61	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
62) {
63	input, ok := in.Parameters.(*CreateJobInput)
64	if !ok {
65		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
66	}
67	if err := validateOpCreateJobInput(input); err != nil {
68		return out, metadata, err
69	}
70	return next.HandleInitialize(ctx, in)
71}
72
73type validateOpCreateJobTemplate struct {
74}
75
76func (*validateOpCreateJobTemplate) ID() string {
77	return "OperationInputValidation"
78}
79
80func (m *validateOpCreateJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
81	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
82) {
83	input, ok := in.Parameters.(*CreateJobTemplateInput)
84	if !ok {
85		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
86	}
87	if err := validateOpCreateJobTemplateInput(input); err != nil {
88		return out, metadata, err
89	}
90	return next.HandleInitialize(ctx, in)
91}
92
93type validateOpCreatePreset struct {
94}
95
96func (*validateOpCreatePreset) ID() string {
97	return "OperationInputValidation"
98}
99
100func (m *validateOpCreatePreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
101	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
102) {
103	input, ok := in.Parameters.(*CreatePresetInput)
104	if !ok {
105		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
106	}
107	if err := validateOpCreatePresetInput(input); err != nil {
108		return out, metadata, err
109	}
110	return next.HandleInitialize(ctx, in)
111}
112
113type validateOpCreateQueue struct {
114}
115
116func (*validateOpCreateQueue) ID() string {
117	return "OperationInputValidation"
118}
119
120func (m *validateOpCreateQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
121	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
122) {
123	input, ok := in.Parameters.(*CreateQueueInput)
124	if !ok {
125		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
126	}
127	if err := validateOpCreateQueueInput(input); err != nil {
128		return out, metadata, err
129	}
130	return next.HandleInitialize(ctx, in)
131}
132
133type validateOpDeleteJobTemplate struct {
134}
135
136func (*validateOpDeleteJobTemplate) ID() string {
137	return "OperationInputValidation"
138}
139
140func (m *validateOpDeleteJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
141	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
142) {
143	input, ok := in.Parameters.(*DeleteJobTemplateInput)
144	if !ok {
145		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
146	}
147	if err := validateOpDeleteJobTemplateInput(input); err != nil {
148		return out, metadata, err
149	}
150	return next.HandleInitialize(ctx, in)
151}
152
153type validateOpDeletePreset struct {
154}
155
156func (*validateOpDeletePreset) ID() string {
157	return "OperationInputValidation"
158}
159
160func (m *validateOpDeletePreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
161	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
162) {
163	input, ok := in.Parameters.(*DeletePresetInput)
164	if !ok {
165		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
166	}
167	if err := validateOpDeletePresetInput(input); err != nil {
168		return out, metadata, err
169	}
170	return next.HandleInitialize(ctx, in)
171}
172
173type validateOpDeleteQueue struct {
174}
175
176func (*validateOpDeleteQueue) ID() string {
177	return "OperationInputValidation"
178}
179
180func (m *validateOpDeleteQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
181	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
182) {
183	input, ok := in.Parameters.(*DeleteQueueInput)
184	if !ok {
185		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
186	}
187	if err := validateOpDeleteQueueInput(input); err != nil {
188		return out, metadata, err
189	}
190	return next.HandleInitialize(ctx, in)
191}
192
193type validateOpDisassociateCertificate struct {
194}
195
196func (*validateOpDisassociateCertificate) ID() string {
197	return "OperationInputValidation"
198}
199
200func (m *validateOpDisassociateCertificate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
201	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
202) {
203	input, ok := in.Parameters.(*DisassociateCertificateInput)
204	if !ok {
205		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
206	}
207	if err := validateOpDisassociateCertificateInput(input); err != nil {
208		return out, metadata, err
209	}
210	return next.HandleInitialize(ctx, in)
211}
212
213type validateOpGetJob struct {
214}
215
216func (*validateOpGetJob) ID() string {
217	return "OperationInputValidation"
218}
219
220func (m *validateOpGetJob) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
221	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
222) {
223	input, ok := in.Parameters.(*GetJobInput)
224	if !ok {
225		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
226	}
227	if err := validateOpGetJobInput(input); err != nil {
228		return out, metadata, err
229	}
230	return next.HandleInitialize(ctx, in)
231}
232
233type validateOpGetJobTemplate struct {
234}
235
236func (*validateOpGetJobTemplate) ID() string {
237	return "OperationInputValidation"
238}
239
240func (m *validateOpGetJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
241	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
242) {
243	input, ok := in.Parameters.(*GetJobTemplateInput)
244	if !ok {
245		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
246	}
247	if err := validateOpGetJobTemplateInput(input); err != nil {
248		return out, metadata, err
249	}
250	return next.HandleInitialize(ctx, in)
251}
252
253type validateOpGetPreset struct {
254}
255
256func (*validateOpGetPreset) ID() string {
257	return "OperationInputValidation"
258}
259
260func (m *validateOpGetPreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
261	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
262) {
263	input, ok := in.Parameters.(*GetPresetInput)
264	if !ok {
265		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
266	}
267	if err := validateOpGetPresetInput(input); err != nil {
268		return out, metadata, err
269	}
270	return next.HandleInitialize(ctx, in)
271}
272
273type validateOpGetQueue struct {
274}
275
276func (*validateOpGetQueue) ID() string {
277	return "OperationInputValidation"
278}
279
280func (m *validateOpGetQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
281	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
282) {
283	input, ok := in.Parameters.(*GetQueueInput)
284	if !ok {
285		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
286	}
287	if err := validateOpGetQueueInput(input); err != nil {
288		return out, metadata, err
289	}
290	return next.HandleInitialize(ctx, in)
291}
292
293type validateOpListTagsForResource struct {
294}
295
296func (*validateOpListTagsForResource) ID() string {
297	return "OperationInputValidation"
298}
299
300func (m *validateOpListTagsForResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
301	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
302) {
303	input, ok := in.Parameters.(*ListTagsForResourceInput)
304	if !ok {
305		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
306	}
307	if err := validateOpListTagsForResourceInput(input); err != nil {
308		return out, metadata, err
309	}
310	return next.HandleInitialize(ctx, in)
311}
312
313type validateOpTagResource struct {
314}
315
316func (*validateOpTagResource) ID() string {
317	return "OperationInputValidation"
318}
319
320func (m *validateOpTagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
321	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
322) {
323	input, ok := in.Parameters.(*TagResourceInput)
324	if !ok {
325		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
326	}
327	if err := validateOpTagResourceInput(input); err != nil {
328		return out, metadata, err
329	}
330	return next.HandleInitialize(ctx, in)
331}
332
333type validateOpUntagResource struct {
334}
335
336func (*validateOpUntagResource) ID() string {
337	return "OperationInputValidation"
338}
339
340func (m *validateOpUntagResource) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
341	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
342) {
343	input, ok := in.Parameters.(*UntagResourceInput)
344	if !ok {
345		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
346	}
347	if err := validateOpUntagResourceInput(input); err != nil {
348		return out, metadata, err
349	}
350	return next.HandleInitialize(ctx, in)
351}
352
353type validateOpUpdateJobTemplate struct {
354}
355
356func (*validateOpUpdateJobTemplate) ID() string {
357	return "OperationInputValidation"
358}
359
360func (m *validateOpUpdateJobTemplate) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
361	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
362) {
363	input, ok := in.Parameters.(*UpdateJobTemplateInput)
364	if !ok {
365		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
366	}
367	if err := validateOpUpdateJobTemplateInput(input); err != nil {
368		return out, metadata, err
369	}
370	return next.HandleInitialize(ctx, in)
371}
372
373type validateOpUpdatePreset struct {
374}
375
376func (*validateOpUpdatePreset) ID() string {
377	return "OperationInputValidation"
378}
379
380func (m *validateOpUpdatePreset) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
381	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
382) {
383	input, ok := in.Parameters.(*UpdatePresetInput)
384	if !ok {
385		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
386	}
387	if err := validateOpUpdatePresetInput(input); err != nil {
388		return out, metadata, err
389	}
390	return next.HandleInitialize(ctx, in)
391}
392
393type validateOpUpdateQueue struct {
394}
395
396func (*validateOpUpdateQueue) ID() string {
397	return "OperationInputValidation"
398}
399
400func (m *validateOpUpdateQueue) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) (
401	out middleware.InitializeOutput, metadata middleware.Metadata, err error,
402) {
403	input, ok := in.Parameters.(*UpdateQueueInput)
404	if !ok {
405		return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters)
406	}
407	if err := validateOpUpdateQueueInput(input); err != nil {
408		return out, metadata, err
409	}
410	return next.HandleInitialize(ctx, in)
411}
412
413func addOpAssociateCertificateValidationMiddleware(stack *middleware.Stack) error {
414	return stack.Initialize.Add(&validateOpAssociateCertificate{}, middleware.After)
415}
416
417func addOpCancelJobValidationMiddleware(stack *middleware.Stack) error {
418	return stack.Initialize.Add(&validateOpCancelJob{}, middleware.After)
419}
420
421func addOpCreateJobValidationMiddleware(stack *middleware.Stack) error {
422	return stack.Initialize.Add(&validateOpCreateJob{}, middleware.After)
423}
424
425func addOpCreateJobTemplateValidationMiddleware(stack *middleware.Stack) error {
426	return stack.Initialize.Add(&validateOpCreateJobTemplate{}, middleware.After)
427}
428
429func addOpCreatePresetValidationMiddleware(stack *middleware.Stack) error {
430	return stack.Initialize.Add(&validateOpCreatePreset{}, middleware.After)
431}
432
433func addOpCreateQueueValidationMiddleware(stack *middleware.Stack) error {
434	return stack.Initialize.Add(&validateOpCreateQueue{}, middleware.After)
435}
436
437func addOpDeleteJobTemplateValidationMiddleware(stack *middleware.Stack) error {
438	return stack.Initialize.Add(&validateOpDeleteJobTemplate{}, middleware.After)
439}
440
441func addOpDeletePresetValidationMiddleware(stack *middleware.Stack) error {
442	return stack.Initialize.Add(&validateOpDeletePreset{}, middleware.After)
443}
444
445func addOpDeleteQueueValidationMiddleware(stack *middleware.Stack) error {
446	return stack.Initialize.Add(&validateOpDeleteQueue{}, middleware.After)
447}
448
449func addOpDisassociateCertificateValidationMiddleware(stack *middleware.Stack) error {
450	return stack.Initialize.Add(&validateOpDisassociateCertificate{}, middleware.After)
451}
452
453func addOpGetJobValidationMiddleware(stack *middleware.Stack) error {
454	return stack.Initialize.Add(&validateOpGetJob{}, middleware.After)
455}
456
457func addOpGetJobTemplateValidationMiddleware(stack *middleware.Stack) error {
458	return stack.Initialize.Add(&validateOpGetJobTemplate{}, middleware.After)
459}
460
461func addOpGetPresetValidationMiddleware(stack *middleware.Stack) error {
462	return stack.Initialize.Add(&validateOpGetPreset{}, middleware.After)
463}
464
465func addOpGetQueueValidationMiddleware(stack *middleware.Stack) error {
466	return stack.Initialize.Add(&validateOpGetQueue{}, middleware.After)
467}
468
469func addOpListTagsForResourceValidationMiddleware(stack *middleware.Stack) error {
470	return stack.Initialize.Add(&validateOpListTagsForResource{}, middleware.After)
471}
472
473func addOpTagResourceValidationMiddleware(stack *middleware.Stack) error {
474	return stack.Initialize.Add(&validateOpTagResource{}, middleware.After)
475}
476
477func addOpUntagResourceValidationMiddleware(stack *middleware.Stack) error {
478	return stack.Initialize.Add(&validateOpUntagResource{}, middleware.After)
479}
480
481func addOpUpdateJobTemplateValidationMiddleware(stack *middleware.Stack) error {
482	return stack.Initialize.Add(&validateOpUpdateJobTemplate{}, middleware.After)
483}
484
485func addOpUpdatePresetValidationMiddleware(stack *middleware.Stack) error {
486	return stack.Initialize.Add(&validateOpUpdatePreset{}, middleware.After)
487}
488
489func addOpUpdateQueueValidationMiddleware(stack *middleware.Stack) error {
490	return stack.Initialize.Add(&validateOpUpdateQueue{}, middleware.After)
491}
492
493func validateAccelerationSettings(v *types.AccelerationSettings) error {
494	if v == nil {
495		return nil
496	}
497	invalidParams := smithy.InvalidParamsError{Context: "AccelerationSettings"}
498	if len(v.Mode) == 0 {
499		invalidParams.Add(smithy.NewErrParamRequired("Mode"))
500	}
501	if invalidParams.Len() > 0 {
502		return invalidParams
503	} else {
504		return nil
505	}
506}
507
508func validateReservationPlanSettings(v *types.ReservationPlanSettings) error {
509	if v == nil {
510		return nil
511	}
512	invalidParams := smithy.InvalidParamsError{Context: "ReservationPlanSettings"}
513	if len(v.Commitment) == 0 {
514		invalidParams.Add(smithy.NewErrParamRequired("Commitment"))
515	}
516	if len(v.RenewalType) == 0 {
517		invalidParams.Add(smithy.NewErrParamRequired("RenewalType"))
518	}
519	if invalidParams.Len() > 0 {
520		return invalidParams
521	} else {
522		return nil
523	}
524}
525
526func validateOpAssociateCertificateInput(v *AssociateCertificateInput) error {
527	if v == nil {
528		return nil
529	}
530	invalidParams := smithy.InvalidParamsError{Context: "AssociateCertificateInput"}
531	if v.Arn == nil {
532		invalidParams.Add(smithy.NewErrParamRequired("Arn"))
533	}
534	if invalidParams.Len() > 0 {
535		return invalidParams
536	} else {
537		return nil
538	}
539}
540
541func validateOpCancelJobInput(v *CancelJobInput) error {
542	if v == nil {
543		return nil
544	}
545	invalidParams := smithy.InvalidParamsError{Context: "CancelJobInput"}
546	if v.Id == nil {
547		invalidParams.Add(smithy.NewErrParamRequired("Id"))
548	}
549	if invalidParams.Len() > 0 {
550		return invalidParams
551	} else {
552		return nil
553	}
554}
555
556func validateOpCreateJobInput(v *CreateJobInput) error {
557	if v == nil {
558		return nil
559	}
560	invalidParams := smithy.InvalidParamsError{Context: "CreateJobInput"}
561	if v.AccelerationSettings != nil {
562		if err := validateAccelerationSettings(v.AccelerationSettings); err != nil {
563			invalidParams.AddNested("AccelerationSettings", err.(smithy.InvalidParamsError))
564		}
565	}
566	if v.Role == nil {
567		invalidParams.Add(smithy.NewErrParamRequired("Role"))
568	}
569	if v.Settings == nil {
570		invalidParams.Add(smithy.NewErrParamRequired("Settings"))
571	}
572	if invalidParams.Len() > 0 {
573		return invalidParams
574	} else {
575		return nil
576	}
577}
578
579func validateOpCreateJobTemplateInput(v *CreateJobTemplateInput) error {
580	if v == nil {
581		return nil
582	}
583	invalidParams := smithy.InvalidParamsError{Context: "CreateJobTemplateInput"}
584	if v.AccelerationSettings != nil {
585		if err := validateAccelerationSettings(v.AccelerationSettings); err != nil {
586			invalidParams.AddNested("AccelerationSettings", err.(smithy.InvalidParamsError))
587		}
588	}
589	if v.Name == nil {
590		invalidParams.Add(smithy.NewErrParamRequired("Name"))
591	}
592	if v.Settings == nil {
593		invalidParams.Add(smithy.NewErrParamRequired("Settings"))
594	}
595	if invalidParams.Len() > 0 {
596		return invalidParams
597	} else {
598		return nil
599	}
600}
601
602func validateOpCreatePresetInput(v *CreatePresetInput) error {
603	if v == nil {
604		return nil
605	}
606	invalidParams := smithy.InvalidParamsError{Context: "CreatePresetInput"}
607	if v.Name == nil {
608		invalidParams.Add(smithy.NewErrParamRequired("Name"))
609	}
610	if v.Settings == nil {
611		invalidParams.Add(smithy.NewErrParamRequired("Settings"))
612	}
613	if invalidParams.Len() > 0 {
614		return invalidParams
615	} else {
616		return nil
617	}
618}
619
620func validateOpCreateQueueInput(v *CreateQueueInput) error {
621	if v == nil {
622		return nil
623	}
624	invalidParams := smithy.InvalidParamsError{Context: "CreateQueueInput"}
625	if v.Name == nil {
626		invalidParams.Add(smithy.NewErrParamRequired("Name"))
627	}
628	if v.ReservationPlanSettings != nil {
629		if err := validateReservationPlanSettings(v.ReservationPlanSettings); err != nil {
630			invalidParams.AddNested("ReservationPlanSettings", err.(smithy.InvalidParamsError))
631		}
632	}
633	if invalidParams.Len() > 0 {
634		return invalidParams
635	} else {
636		return nil
637	}
638}
639
640func validateOpDeleteJobTemplateInput(v *DeleteJobTemplateInput) error {
641	if v == nil {
642		return nil
643	}
644	invalidParams := smithy.InvalidParamsError{Context: "DeleteJobTemplateInput"}
645	if v.Name == nil {
646		invalidParams.Add(smithy.NewErrParamRequired("Name"))
647	}
648	if invalidParams.Len() > 0 {
649		return invalidParams
650	} else {
651		return nil
652	}
653}
654
655func validateOpDeletePresetInput(v *DeletePresetInput) error {
656	if v == nil {
657		return nil
658	}
659	invalidParams := smithy.InvalidParamsError{Context: "DeletePresetInput"}
660	if v.Name == nil {
661		invalidParams.Add(smithy.NewErrParamRequired("Name"))
662	}
663	if invalidParams.Len() > 0 {
664		return invalidParams
665	} else {
666		return nil
667	}
668}
669
670func validateOpDeleteQueueInput(v *DeleteQueueInput) error {
671	if v == nil {
672		return nil
673	}
674	invalidParams := smithy.InvalidParamsError{Context: "DeleteQueueInput"}
675	if v.Name == nil {
676		invalidParams.Add(smithy.NewErrParamRequired("Name"))
677	}
678	if invalidParams.Len() > 0 {
679		return invalidParams
680	} else {
681		return nil
682	}
683}
684
685func validateOpDisassociateCertificateInput(v *DisassociateCertificateInput) error {
686	if v == nil {
687		return nil
688	}
689	invalidParams := smithy.InvalidParamsError{Context: "DisassociateCertificateInput"}
690	if v.Arn == nil {
691		invalidParams.Add(smithy.NewErrParamRequired("Arn"))
692	}
693	if invalidParams.Len() > 0 {
694		return invalidParams
695	} else {
696		return nil
697	}
698}
699
700func validateOpGetJobInput(v *GetJobInput) error {
701	if v == nil {
702		return nil
703	}
704	invalidParams := smithy.InvalidParamsError{Context: "GetJobInput"}
705	if v.Id == nil {
706		invalidParams.Add(smithy.NewErrParamRequired("Id"))
707	}
708	if invalidParams.Len() > 0 {
709		return invalidParams
710	} else {
711		return nil
712	}
713}
714
715func validateOpGetJobTemplateInput(v *GetJobTemplateInput) error {
716	if v == nil {
717		return nil
718	}
719	invalidParams := smithy.InvalidParamsError{Context: "GetJobTemplateInput"}
720	if v.Name == nil {
721		invalidParams.Add(smithy.NewErrParamRequired("Name"))
722	}
723	if invalidParams.Len() > 0 {
724		return invalidParams
725	} else {
726		return nil
727	}
728}
729
730func validateOpGetPresetInput(v *GetPresetInput) error {
731	if v == nil {
732		return nil
733	}
734	invalidParams := smithy.InvalidParamsError{Context: "GetPresetInput"}
735	if v.Name == nil {
736		invalidParams.Add(smithy.NewErrParamRequired("Name"))
737	}
738	if invalidParams.Len() > 0 {
739		return invalidParams
740	} else {
741		return nil
742	}
743}
744
745func validateOpGetQueueInput(v *GetQueueInput) error {
746	if v == nil {
747		return nil
748	}
749	invalidParams := smithy.InvalidParamsError{Context: "GetQueueInput"}
750	if v.Name == nil {
751		invalidParams.Add(smithy.NewErrParamRequired("Name"))
752	}
753	if invalidParams.Len() > 0 {
754		return invalidParams
755	} else {
756		return nil
757	}
758}
759
760func validateOpListTagsForResourceInput(v *ListTagsForResourceInput) error {
761	if v == nil {
762		return nil
763	}
764	invalidParams := smithy.InvalidParamsError{Context: "ListTagsForResourceInput"}
765	if v.Arn == nil {
766		invalidParams.Add(smithy.NewErrParamRequired("Arn"))
767	}
768	if invalidParams.Len() > 0 {
769		return invalidParams
770	} else {
771		return nil
772	}
773}
774
775func validateOpTagResourceInput(v *TagResourceInput) error {
776	if v == nil {
777		return nil
778	}
779	invalidParams := smithy.InvalidParamsError{Context: "TagResourceInput"}
780	if v.Arn == nil {
781		invalidParams.Add(smithy.NewErrParamRequired("Arn"))
782	}
783	if v.Tags == nil {
784		invalidParams.Add(smithy.NewErrParamRequired("Tags"))
785	}
786	if invalidParams.Len() > 0 {
787		return invalidParams
788	} else {
789		return nil
790	}
791}
792
793func validateOpUntagResourceInput(v *UntagResourceInput) error {
794	if v == nil {
795		return nil
796	}
797	invalidParams := smithy.InvalidParamsError{Context: "UntagResourceInput"}
798	if v.Arn == nil {
799		invalidParams.Add(smithy.NewErrParamRequired("Arn"))
800	}
801	if invalidParams.Len() > 0 {
802		return invalidParams
803	} else {
804		return nil
805	}
806}
807
808func validateOpUpdateJobTemplateInput(v *UpdateJobTemplateInput) error {
809	if v == nil {
810		return nil
811	}
812	invalidParams := smithy.InvalidParamsError{Context: "UpdateJobTemplateInput"}
813	if v.AccelerationSettings != nil {
814		if err := validateAccelerationSettings(v.AccelerationSettings); err != nil {
815			invalidParams.AddNested("AccelerationSettings", err.(smithy.InvalidParamsError))
816		}
817	}
818	if v.Name == nil {
819		invalidParams.Add(smithy.NewErrParamRequired("Name"))
820	}
821	if invalidParams.Len() > 0 {
822		return invalidParams
823	} else {
824		return nil
825	}
826}
827
828func validateOpUpdatePresetInput(v *UpdatePresetInput) error {
829	if v == nil {
830		return nil
831	}
832	invalidParams := smithy.InvalidParamsError{Context: "UpdatePresetInput"}
833	if v.Name == nil {
834		invalidParams.Add(smithy.NewErrParamRequired("Name"))
835	}
836	if invalidParams.Len() > 0 {
837		return invalidParams
838	} else {
839		return nil
840	}
841}
842
843func validateOpUpdateQueueInput(v *UpdateQueueInput) error {
844	if v == nil {
845		return nil
846	}
847	invalidParams := smithy.InvalidParamsError{Context: "UpdateQueueInput"}
848	if v.Name == nil {
849		invalidParams.Add(smithy.NewErrParamRequired("Name"))
850	}
851	if v.ReservationPlanSettings != nil {
852		if err := validateReservationPlanSettings(v.ReservationPlanSettings); err != nil {
853			invalidParams.AddNested("ReservationPlanSettings", err.(smithy.InvalidParamsError))
854		}
855	}
856	if invalidParams.Len() > 0 {
857		return invalidParams
858	} else {
859		return nil
860	}
861}
862