1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct StartBuildInput {
    /// <p>The name of the CodeBuild build project to start running a build.</p>
    pub project_name: ::std::option::Option<::std::string::String>,
    /// <p>An array of <code>ProjectSource</code> objects.</p>
    pub secondary_sources_override: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>>,
    /// <p>An array of <code>ProjectSourceVersion</code> objects that specify one or more versions of the project's secondary sources to be used for this build only.</p>
    pub secondary_sources_version_override: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>>,
    /// <p>The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:</p>
    /// <dl>
    /// <dt>
    /// CodeCommit
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// GitHub
    /// </dt>
    /// <dd>
    /// <p>The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// GitLab
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// Bitbucket
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// Amazon S3
    /// </dt>
    /// <dd>
    /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
    /// </dd>
    /// </dl>
    /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>.</p>
    pub source_version: ::std::option::Option<::std::string::String>,
    /// <p>Build output artifact settings that override, for this build only, the latest ones already defined in the build project.</p>
    pub artifacts_override: ::std::option::Option<crate::types::ProjectArtifacts>,
    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
    pub secondary_artifacts_override: ::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>>,
    /// <p>A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.</p>
    pub environment_variables_override: ::std::option::Option<::std::vec::Vec<crate::types::EnvironmentVariable>>,
    /// <p>A source input type, for this build, that overrides the source input defined in the build project.</p>
    pub source_type_override: ::std::option::Option<crate::types::SourceType>,
    /// <p>A location that overrides, for this build, the source location for the one defined in the build project.</p>
    pub source_location_override: ::std::option::Option<::std::string::String>,
    /// <p>An authorization type for this build that overrides the one defined in the build project. This override applies only if the build project's source is BitBucket, GitHub, GitLab, or GitLab Self Managed.</p>
    pub source_auth_override: ::std::option::Option<crate::types::SourceAuth>,
    /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.</p>
    pub git_clone_depth_override: ::std::option::Option<i32>,
    /// <p>Information about the Git submodules configuration for this build of an CodeBuild build project.</p>
    pub git_submodules_config_override: ::std::option::Option<crate::types::GitSubmodulesConfig>,
    /// <p>A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed.</p>
    /// <p>If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>.</p><note>
    /// <p>Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket.</p>
    /// </note>
    pub buildspec_override: ::std::option::Option<::std::string::String>,
    /// <p>Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.</p>
    pub insecure_ssl_override: ::std::option::Option<bool>,
    /// <p>Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an <code>invalidInputException</code> is thrown.</p>
    /// <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p><note>
    /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
    /// </note>
    pub report_build_status_override: ::std::option::Option<bool>,
    /// <p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>
    pub build_status_config_override: ::std::option::Option<crate::types::BuildStatusConfig>,
    /// <p>A container type for this build that overrides the one specified in the build project.</p>
    pub environment_type_override: ::std::option::Option<crate::types::EnvironmentType>,
    /// <p>The name of an image for this build that overrides the one specified in the build project.</p>
    pub image_override: ::std::option::Option<::std::string::String>,
    /// <p>The name of a compute type for this build that overrides the one specified in the build project.</p>
    pub compute_type_override: ::std::option::Option<crate::types::ComputeType>,
    /// <p>The name of a certificate for this build that overrides the one specified in the build project.</p>
    pub certificate_override: ::std::option::Option<::std::string::String>,
    /// <p>A ProjectCache object specified for this build that overrides the one defined in the build project.</p>
    pub cache_override: ::std::option::Option<crate::types::ProjectCache>,
    /// <p>The name of a service role for this build that overrides the one specified in the build project.</p>
    pub service_role_override: ::std::option::Option<::std::string::String>,
    /// <p>Enable this flag to override privileged mode in the build project.</p>
    pub privileged_mode_override: ::std::option::Option<bool>,
    /// <p>The number of build timeout minutes, from 5 to 2160 (36 hours), that overrides, for this build only, the latest setting already defined in the build project.</p>
    pub timeout_in_minutes_override: ::std::option::Option<i32>,
    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
    pub queued_timeout_in_minutes_override: ::std::option::Option<i32>,
    /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.</p><note>
    /// <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.</p>
    /// </note>
    /// <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<alias-name></alias-name></code>).</p>
    pub encryption_key_override: ::std::option::Option<::std::string::String>,
    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
    pub idempotency_token: ::std::option::Option<::std::string::String>,
    /// <p>Log settings for this build that override the log settings defined in the build project.</p>
    pub logs_config_override: ::std::option::Option<crate::types::LogsConfig>,
    /// <p>The credentials for access to a private registry.</p>
    pub registry_credential_override: ::std::option::Option<crate::types::RegistryCredential>,
    /// <p>The type of credentials CodeBuild uses to pull images in your build. There are two valid values:</p>
    /// <dl>
    /// <dt>
    /// CODEBUILD
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
    /// </dd>
    /// <dt>
    /// SERVICE_ROLE
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses your build project's service role.</p>
    /// </dd>
    /// </dl>
    /// <p>When using a cross-account or private registry image, you must use <code>SERVICE_ROLE</code> credentials. When using an CodeBuild curated image, you must use <code>CODEBUILD</code> credentials.</p>
    pub image_pull_credentials_type_override: ::std::option::Option<crate::types::ImagePullCredentialsType>,
    /// <p>Specifies if session debugging is enabled for this build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>.</p>
    pub debug_session_enabled: ::std::option::Option<bool>,
    /// <p>A ProjectFleet object specified for this build that overrides the one defined in the build project.</p>
    pub fleet_override: ::std::option::Option<crate::types::ProjectFleet>,
}
impl StartBuildInput {
    /// <p>The name of the CodeBuild build project to start running a build.</p>
    pub fn project_name(&self) -> ::std::option::Option<&str> {
        self.project_name.as_deref()
    }
    /// <p>An array of <code>ProjectSource</code> objects.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.secondary_sources_override.is_none()`.
    pub fn secondary_sources_override(&self) -> &[crate::types::ProjectSource] {
        self.secondary_sources_override.as_deref().unwrap_or_default()
    }
    /// <p>An array of <code>ProjectSourceVersion</code> objects that specify one or more versions of the project's secondary sources to be used for this build only.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.secondary_sources_version_override.is_none()`.
    pub fn secondary_sources_version_override(&self) -> &[crate::types::ProjectSourceVersion] {
        self.secondary_sources_version_override.as_deref().unwrap_or_default()
    }
    /// <p>The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:</p>
    /// <dl>
    /// <dt>
    /// CodeCommit
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// GitHub
    /// </dt>
    /// <dd>
    /// <p>The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// GitLab
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// Bitbucket
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// Amazon S3
    /// </dt>
    /// <dd>
    /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
    /// </dd>
    /// </dl>
    /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>.</p>
    pub fn source_version(&self) -> ::std::option::Option<&str> {
        self.source_version.as_deref()
    }
    /// <p>Build output artifact settings that override, for this build only, the latest ones already defined in the build project.</p>
    pub fn artifacts_override(&self) -> ::std::option::Option<&crate::types::ProjectArtifacts> {
        self.artifacts_override.as_ref()
    }
    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.secondary_artifacts_override.is_none()`.
    pub fn secondary_artifacts_override(&self) -> &[crate::types::ProjectArtifacts] {
        self.secondary_artifacts_override.as_deref().unwrap_or_default()
    }
    /// <p>A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.</p>
    ///
    /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.environment_variables_override.is_none()`.
    pub fn environment_variables_override(&self) -> &[crate::types::EnvironmentVariable] {
        self.environment_variables_override.as_deref().unwrap_or_default()
    }
    /// <p>A source input type, for this build, that overrides the source input defined in the build project.</p>
    pub fn source_type_override(&self) -> ::std::option::Option<&crate::types::SourceType> {
        self.source_type_override.as_ref()
    }
    /// <p>A location that overrides, for this build, the source location for the one defined in the build project.</p>
    pub fn source_location_override(&self) -> ::std::option::Option<&str> {
        self.source_location_override.as_deref()
    }
    /// <p>An authorization type for this build that overrides the one defined in the build project. This override applies only if the build project's source is BitBucket, GitHub, GitLab, or GitLab Self Managed.</p>
    pub fn source_auth_override(&self) -> ::std::option::Option<&crate::types::SourceAuth> {
        self.source_auth_override.as_ref()
    }
    /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.</p>
    pub fn git_clone_depth_override(&self) -> ::std::option::Option<i32> {
        self.git_clone_depth_override
    }
    /// <p>Information about the Git submodules configuration for this build of an CodeBuild build project.</p>
    pub fn git_submodules_config_override(&self) -> ::std::option::Option<&crate::types::GitSubmodulesConfig> {
        self.git_submodules_config_override.as_ref()
    }
    /// <p>A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed.</p>
    /// <p>If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>.</p><note>
    /// <p>Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket.</p>
    /// </note>
    pub fn buildspec_override(&self) -> ::std::option::Option<&str> {
        self.buildspec_override.as_deref()
    }
    /// <p>Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.</p>
    pub fn insecure_ssl_override(&self) -> ::std::option::Option<bool> {
        self.insecure_ssl_override
    }
    /// <p>Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an <code>invalidInputException</code> is thrown.</p>
    /// <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p><note>
    /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
    /// </note>
    pub fn report_build_status_override(&self) -> ::std::option::Option<bool> {
        self.report_build_status_override
    }
    /// <p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>
    pub fn build_status_config_override(&self) -> ::std::option::Option<&crate::types::BuildStatusConfig> {
        self.build_status_config_override.as_ref()
    }
    /// <p>A container type for this build that overrides the one specified in the build project.</p>
    pub fn environment_type_override(&self) -> ::std::option::Option<&crate::types::EnvironmentType> {
        self.environment_type_override.as_ref()
    }
    /// <p>The name of an image for this build that overrides the one specified in the build project.</p>
    pub fn image_override(&self) -> ::std::option::Option<&str> {
        self.image_override.as_deref()
    }
    /// <p>The name of a compute type for this build that overrides the one specified in the build project.</p>
    pub fn compute_type_override(&self) -> ::std::option::Option<&crate::types::ComputeType> {
        self.compute_type_override.as_ref()
    }
    /// <p>The name of a certificate for this build that overrides the one specified in the build project.</p>
    pub fn certificate_override(&self) -> ::std::option::Option<&str> {
        self.certificate_override.as_deref()
    }
    /// <p>A ProjectCache object specified for this build that overrides the one defined in the build project.</p>
    pub fn cache_override(&self) -> ::std::option::Option<&crate::types::ProjectCache> {
        self.cache_override.as_ref()
    }
    /// <p>The name of a service role for this build that overrides the one specified in the build project.</p>
    pub fn service_role_override(&self) -> ::std::option::Option<&str> {
        self.service_role_override.as_deref()
    }
    /// <p>Enable this flag to override privileged mode in the build project.</p>
    pub fn privileged_mode_override(&self) -> ::std::option::Option<bool> {
        self.privileged_mode_override
    }
    /// <p>The number of build timeout minutes, from 5 to 2160 (36 hours), that overrides, for this build only, the latest setting already defined in the build project.</p>
    pub fn timeout_in_minutes_override(&self) -> ::std::option::Option<i32> {
        self.timeout_in_minutes_override
    }
    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
    pub fn queued_timeout_in_minutes_override(&self) -> ::std::option::Option<i32> {
        self.queued_timeout_in_minutes_override
    }
    /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.</p><note>
    /// <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.</p>
    /// </note>
    /// <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<alias-name></alias-name></code>).</p>
    pub fn encryption_key_override(&self) -> ::std::option::Option<&str> {
        self.encryption_key_override.as_deref()
    }
    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
    pub fn idempotency_token(&self) -> ::std::option::Option<&str> {
        self.idempotency_token.as_deref()
    }
    /// <p>Log settings for this build that override the log settings defined in the build project.</p>
    pub fn logs_config_override(&self) -> ::std::option::Option<&crate::types::LogsConfig> {
        self.logs_config_override.as_ref()
    }
    /// <p>The credentials for access to a private registry.</p>
    pub fn registry_credential_override(&self) -> ::std::option::Option<&crate::types::RegistryCredential> {
        self.registry_credential_override.as_ref()
    }
    /// <p>The type of credentials CodeBuild uses to pull images in your build. There are two valid values:</p>
    /// <dl>
    /// <dt>
    /// CODEBUILD
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
    /// </dd>
    /// <dt>
    /// SERVICE_ROLE
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses your build project's service role.</p>
    /// </dd>
    /// </dl>
    /// <p>When using a cross-account or private registry image, you must use <code>SERVICE_ROLE</code> credentials. When using an CodeBuild curated image, you must use <code>CODEBUILD</code> credentials.</p>
    pub fn image_pull_credentials_type_override(&self) -> ::std::option::Option<&crate::types::ImagePullCredentialsType> {
        self.image_pull_credentials_type_override.as_ref()
    }
    /// <p>Specifies if session debugging is enabled for this build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>.</p>
    pub fn debug_session_enabled(&self) -> ::std::option::Option<bool> {
        self.debug_session_enabled
    }
    /// <p>A ProjectFleet object specified for this build that overrides the one defined in the build project.</p>
    pub fn fleet_override(&self) -> ::std::option::Option<&crate::types::ProjectFleet> {
        self.fleet_override.as_ref()
    }
}
impl StartBuildInput {
    /// Creates a new builder-style object to manufacture [`StartBuildInput`](crate::operation::start_build::StartBuildInput).
    pub fn builder() -> crate::operation::start_build::builders::StartBuildInputBuilder {
        crate::operation::start_build::builders::StartBuildInputBuilder::default()
    }
}

/// A builder for [`StartBuildInput`](crate::operation::start_build::StartBuildInput).
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct StartBuildInputBuilder {
    pub(crate) project_name: ::std::option::Option<::std::string::String>,
    pub(crate) secondary_sources_override: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>>,
    pub(crate) secondary_sources_version_override: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>>,
    pub(crate) source_version: ::std::option::Option<::std::string::String>,
    pub(crate) artifacts_override: ::std::option::Option<crate::types::ProjectArtifacts>,
    pub(crate) secondary_artifacts_override: ::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>>,
    pub(crate) environment_variables_override: ::std::option::Option<::std::vec::Vec<crate::types::EnvironmentVariable>>,
    pub(crate) source_type_override: ::std::option::Option<crate::types::SourceType>,
    pub(crate) source_location_override: ::std::option::Option<::std::string::String>,
    pub(crate) source_auth_override: ::std::option::Option<crate::types::SourceAuth>,
    pub(crate) git_clone_depth_override: ::std::option::Option<i32>,
    pub(crate) git_submodules_config_override: ::std::option::Option<crate::types::GitSubmodulesConfig>,
    pub(crate) buildspec_override: ::std::option::Option<::std::string::String>,
    pub(crate) insecure_ssl_override: ::std::option::Option<bool>,
    pub(crate) report_build_status_override: ::std::option::Option<bool>,
    pub(crate) build_status_config_override: ::std::option::Option<crate::types::BuildStatusConfig>,
    pub(crate) environment_type_override: ::std::option::Option<crate::types::EnvironmentType>,
    pub(crate) image_override: ::std::option::Option<::std::string::String>,
    pub(crate) compute_type_override: ::std::option::Option<crate::types::ComputeType>,
    pub(crate) certificate_override: ::std::option::Option<::std::string::String>,
    pub(crate) cache_override: ::std::option::Option<crate::types::ProjectCache>,
    pub(crate) service_role_override: ::std::option::Option<::std::string::String>,
    pub(crate) privileged_mode_override: ::std::option::Option<bool>,
    pub(crate) timeout_in_minutes_override: ::std::option::Option<i32>,
    pub(crate) queued_timeout_in_minutes_override: ::std::option::Option<i32>,
    pub(crate) encryption_key_override: ::std::option::Option<::std::string::String>,
    pub(crate) idempotency_token: ::std::option::Option<::std::string::String>,
    pub(crate) logs_config_override: ::std::option::Option<crate::types::LogsConfig>,
    pub(crate) registry_credential_override: ::std::option::Option<crate::types::RegistryCredential>,
    pub(crate) image_pull_credentials_type_override: ::std::option::Option<crate::types::ImagePullCredentialsType>,
    pub(crate) debug_session_enabled: ::std::option::Option<bool>,
    pub(crate) fleet_override: ::std::option::Option<crate::types::ProjectFleet>,
}
impl StartBuildInputBuilder {
    /// <p>The name of the CodeBuild build project to start running a build.</p>
    /// This field is required.
    pub fn project_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.project_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of the CodeBuild build project to start running a build.</p>
    pub fn set_project_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.project_name = input;
        self
    }
    /// <p>The name of the CodeBuild build project to start running a build.</p>
    pub fn get_project_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.project_name
    }
    /// Appends an item to `secondary_sources_override`.
    ///
    /// To override the contents of this collection use [`set_secondary_sources_override`](Self::set_secondary_sources_override).
    ///
    /// <p>An array of <code>ProjectSource</code> objects.</p>
    pub fn secondary_sources_override(mut self, input: crate::types::ProjectSource) -> Self {
        let mut v = self.secondary_sources_override.unwrap_or_default();
        v.push(input);
        self.secondary_sources_override = ::std::option::Option::Some(v);
        self
    }
    /// <p>An array of <code>ProjectSource</code> objects.</p>
    pub fn set_secondary_sources_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>>) -> Self {
        self.secondary_sources_override = input;
        self
    }
    /// <p>An array of <code>ProjectSource</code> objects.</p>
    pub fn get_secondary_sources_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>> {
        &self.secondary_sources_override
    }
    /// Appends an item to `secondary_sources_version_override`.
    ///
    /// To override the contents of this collection use [`set_secondary_sources_version_override`](Self::set_secondary_sources_version_override).
    ///
    /// <p>An array of <code>ProjectSourceVersion</code> objects that specify one or more versions of the project's secondary sources to be used for this build only.</p>
    pub fn secondary_sources_version_override(mut self, input: crate::types::ProjectSourceVersion) -> Self {
        let mut v = self.secondary_sources_version_override.unwrap_or_default();
        v.push(input);
        self.secondary_sources_version_override = ::std::option::Option::Some(v);
        self
    }
    /// <p>An array of <code>ProjectSourceVersion</code> objects that specify one or more versions of the project's secondary sources to be used for this build only.</p>
    pub fn set_secondary_sources_version_override(
        mut self,
        input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>>,
    ) -> Self {
        self.secondary_sources_version_override = input;
        self
    }
    /// <p>An array of <code>ProjectSourceVersion</code> objects that specify one or more versions of the project's secondary sources to be used for this build only.</p>
    pub fn get_secondary_sources_version_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>> {
        &self.secondary_sources_version_override
    }
    /// <p>The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:</p>
    /// <dl>
    /// <dt>
    /// CodeCommit
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// GitHub
    /// </dt>
    /// <dd>
    /// <p>The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// GitLab
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// Bitbucket
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// Amazon S3
    /// </dt>
    /// <dd>
    /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
    /// </dd>
    /// </dl>
    /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>.</p>
    pub fn source_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_version = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:</p>
    /// <dl>
    /// <dt>
    /// CodeCommit
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// GitHub
    /// </dt>
    /// <dd>
    /// <p>The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// GitLab
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// Bitbucket
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// Amazon S3
    /// </dt>
    /// <dd>
    /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
    /// </dd>
    /// </dl>
    /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>.</p>
    pub fn set_source_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_version = input;
        self
    }
    /// <p>The version of the build input to be built, for this build only. If not specified, the latest version is used. If specified, the contents depends on the source provider:</p>
    /// <dl>
    /// <dt>
    /// CodeCommit
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// GitHub
    /// </dt>
    /// <dd>
    /// <p>The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a pull request ID is specified, it must use the format <code>pr/pull-request-ID</code> (for example <code>pr/25</code>). If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// GitLab
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch, or Git tag to use.</p>
    /// </dd>
    /// <dt>
    /// Bitbucket
    /// </dt>
    /// <dd>
    /// <p>The commit ID, branch name, or tag name that corresponds to the version of the source code you want to build. If a branch name is specified, the branch's HEAD commit ID is used. If not specified, the default branch's HEAD commit ID is used.</p>
    /// </dd>
    /// <dt>
    /// Amazon S3
    /// </dt>
    /// <dd>
    /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
    /// </dd>
    /// </dl>
    /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
    /// <p>For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/sample-source-version.html">Source Version Sample with CodeBuild</a> in the <i>CodeBuild User Guide</i>.</p>
    pub fn get_source_version(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_version
    }
    /// <p>Build output artifact settings that override, for this build only, the latest ones already defined in the build project.</p>
    pub fn artifacts_override(mut self, input: crate::types::ProjectArtifacts) -> Self {
        self.artifacts_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>Build output artifact settings that override, for this build only, the latest ones already defined in the build project.</p>
    pub fn set_artifacts_override(mut self, input: ::std::option::Option<crate::types::ProjectArtifacts>) -> Self {
        self.artifacts_override = input;
        self
    }
    /// <p>Build output artifact settings that override, for this build only, the latest ones already defined in the build project.</p>
    pub fn get_artifacts_override(&self) -> &::std::option::Option<crate::types::ProjectArtifacts> {
        &self.artifacts_override
    }
    /// Appends an item to `secondary_artifacts_override`.
    ///
    /// To override the contents of this collection use [`set_secondary_artifacts_override`](Self::set_secondary_artifacts_override).
    ///
    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
    pub fn secondary_artifacts_override(mut self, input: crate::types::ProjectArtifacts) -> Self {
        let mut v = self.secondary_artifacts_override.unwrap_or_default();
        v.push(input);
        self.secondary_artifacts_override = ::std::option::Option::Some(v);
        self
    }
    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
    pub fn set_secondary_artifacts_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>>) -> Self {
        self.secondary_artifacts_override = input;
        self
    }
    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
    pub fn get_secondary_artifacts_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>> {
        &self.secondary_artifacts_override
    }
    /// Appends an item to `environment_variables_override`.
    ///
    /// To override the contents of this collection use [`set_environment_variables_override`](Self::set_environment_variables_override).
    ///
    /// <p>A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.</p>
    pub fn environment_variables_override(mut self, input: crate::types::EnvironmentVariable) -> Self {
        let mut v = self.environment_variables_override.unwrap_or_default();
        v.push(input);
        self.environment_variables_override = ::std::option::Option::Some(v);
        self
    }
    /// <p>A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.</p>
    pub fn set_environment_variables_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::EnvironmentVariable>>) -> Self {
        self.environment_variables_override = input;
        self
    }
    /// <p>A set of environment variables that overrides, for this build only, the latest ones already defined in the build project.</p>
    pub fn get_environment_variables_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::EnvironmentVariable>> {
        &self.environment_variables_override
    }
    /// <p>A source input type, for this build, that overrides the source input defined in the build project.</p>
    pub fn source_type_override(mut self, input: crate::types::SourceType) -> Self {
        self.source_type_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>A source input type, for this build, that overrides the source input defined in the build project.</p>
    pub fn set_source_type_override(mut self, input: ::std::option::Option<crate::types::SourceType>) -> Self {
        self.source_type_override = input;
        self
    }
    /// <p>A source input type, for this build, that overrides the source input defined in the build project.</p>
    pub fn get_source_type_override(&self) -> &::std::option::Option<crate::types::SourceType> {
        &self.source_type_override
    }
    /// <p>A location that overrides, for this build, the source location for the one defined in the build project.</p>
    pub fn source_location_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.source_location_override = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A location that overrides, for this build, the source location for the one defined in the build project.</p>
    pub fn set_source_location_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.source_location_override = input;
        self
    }
    /// <p>A location that overrides, for this build, the source location for the one defined in the build project.</p>
    pub fn get_source_location_override(&self) -> &::std::option::Option<::std::string::String> {
        &self.source_location_override
    }
    /// <p>An authorization type for this build that overrides the one defined in the build project. This override applies only if the build project's source is BitBucket, GitHub, GitLab, or GitLab Self Managed.</p>
    pub fn source_auth_override(mut self, input: crate::types::SourceAuth) -> Self {
        self.source_auth_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>An authorization type for this build that overrides the one defined in the build project. This override applies only if the build project's source is BitBucket, GitHub, GitLab, or GitLab Self Managed.</p>
    pub fn set_source_auth_override(mut self, input: ::std::option::Option<crate::types::SourceAuth>) -> Self {
        self.source_auth_override = input;
        self
    }
    /// <p>An authorization type for this build that overrides the one defined in the build project. This override applies only if the build project's source is BitBucket, GitHub, GitLab, or GitLab Self Managed.</p>
    pub fn get_source_auth_override(&self) -> &::std::option::Option<crate::types::SourceAuth> {
        &self.source_auth_override
    }
    /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.</p>
    pub fn git_clone_depth_override(mut self, input: i32) -> Self {
        self.git_clone_depth_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.</p>
    pub fn set_git_clone_depth_override(mut self, input: ::std::option::Option<i32>) -> Self {
        self.git_clone_depth_override = input;
        self
    }
    /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this build only, any previous depth of history defined in the build project.</p>
    pub fn get_git_clone_depth_override(&self) -> &::std::option::Option<i32> {
        &self.git_clone_depth_override
    }
    /// <p>Information about the Git submodules configuration for this build of an CodeBuild build project.</p>
    pub fn git_submodules_config_override(mut self, input: crate::types::GitSubmodulesConfig) -> Self {
        self.git_submodules_config_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>Information about the Git submodules configuration for this build of an CodeBuild build project.</p>
    pub fn set_git_submodules_config_override(mut self, input: ::std::option::Option<crate::types::GitSubmodulesConfig>) -> Self {
        self.git_submodules_config_override = input;
        self
    }
    /// <p>Information about the Git submodules configuration for this build of an CodeBuild build project.</p>
    pub fn get_git_submodules_config_override(&self) -> &::std::option::Option<crate::types::GitSubmodulesConfig> {
        &self.git_submodules_config_override
    }
    /// <p>A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed.</p>
    /// <p>If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>.</p><note>
    /// <p>Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket.</p>
    /// </note>
    pub fn buildspec_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.buildspec_override = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed.</p>
    /// <p>If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>.</p><note>
    /// <p>Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket.</p>
    /// </note>
    pub fn set_buildspec_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.buildspec_override = input;
        self
    }
    /// <p>A buildspec file declaration that overrides the latest one defined in the build project, for this build only. The buildspec defined on the project is not changed.</p>
    /// <p>If this value is set, it can be either an inline buildspec definition, the path to an alternate buildspec file relative to the value of the built-in <code>CODEBUILD_SRC_DIR</code> environment variable, or the path to an S3 bucket. The bucket must be in the same Amazon Web Services Region as the build project. Specify the buildspec file using its ARN (for example, <code>arn:aws:s3:::my-codebuild-sample2/buildspec.yml</code>). If this value is not provided or is set to an empty string, the source code must contain a buildspec file in its root directory. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/build-spec-ref.html#build-spec-ref-name-storage">Buildspec File Name and Storage Location</a>.</p><note>
    /// <p>Since this property allows you to change the build commands that will run in the container, you should note that an IAM principal with the ability to call this API and set this parameter can override the default settings. Moreover, we encourage that you use a trustworthy buildspec location like a file in your source repository or a Amazon S3 bucket.</p>
    /// </note>
    pub fn get_buildspec_override(&self) -> &::std::option::Option<::std::string::String> {
        &self.buildspec_override
    }
    /// <p>Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.</p>
    pub fn insecure_ssl_override(mut self, input: bool) -> Self {
        self.insecure_ssl_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.</p>
    pub fn set_insecure_ssl_override(mut self, input: ::std::option::Option<bool>) -> Self {
        self.insecure_ssl_override = input;
        self
    }
    /// <p>Enable this flag to override the insecure SSL setting that is specified in the build project. The insecure SSL setting determines whether to ignore SSL warnings while connecting to the project source code. This override applies only if the build's source is GitHub Enterprise.</p>
    pub fn get_insecure_ssl_override(&self) -> &::std::option::Option<bool> {
        &self.insecure_ssl_override
    }
    /// <p>Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an <code>invalidInputException</code> is thrown.</p>
    /// <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p><note>
    /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
    /// </note>
    pub fn report_build_status_override(mut self, input: bool) -> Self {
        self.report_build_status_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an <code>invalidInputException</code> is thrown.</p>
    /// <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p><note>
    /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
    /// </note>
    pub fn set_report_build_status_override(mut self, input: ::std::option::Option<bool>) -> Self {
        self.report_build_status_override = input;
        self
    }
    /// <p>Set to true to report to your source provider the status of a build's start and completion. If you use this option with a source provider other than GitHub, GitHub Enterprise, or Bitbucket, an <code>invalidInputException</code> is thrown.</p>
    /// <p>To be able to report the build status to the source provider, the user associated with the source provider must have write access to the repo. If the user does not have write access, the build status cannot be updated. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/access-tokens.html">Source provider access</a> in the <i>CodeBuild User Guide</i>.</p><note>
    /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
    /// </note>
    pub fn get_report_build_status_override(&self) -> &::std::option::Option<bool> {
        &self.report_build_status_override
    }
    /// <p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>
    pub fn build_status_config_override(mut self, input: crate::types::BuildStatusConfig) -> Self {
        self.build_status_config_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>
    pub fn set_build_status_config_override(mut self, input: ::std::option::Option<crate::types::BuildStatusConfig>) -> Self {
        self.build_status_config_override = input;
        self
    }
    /// <p>Contains information that defines how the build project reports the build status to the source provider. This option is only used when the source provider is <code>GITHUB</code>, <code>GITHUB_ENTERPRISE</code>, or <code>BITBUCKET</code>.</p>
    pub fn get_build_status_config_override(&self) -> &::std::option::Option<crate::types::BuildStatusConfig> {
        &self.build_status_config_override
    }
    /// <p>A container type for this build that overrides the one specified in the build project.</p>
    pub fn environment_type_override(mut self, input: crate::types::EnvironmentType) -> Self {
        self.environment_type_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>A container type for this build that overrides the one specified in the build project.</p>
    pub fn set_environment_type_override(mut self, input: ::std::option::Option<crate::types::EnvironmentType>) -> Self {
        self.environment_type_override = input;
        self
    }
    /// <p>A container type for this build that overrides the one specified in the build project.</p>
    pub fn get_environment_type_override(&self) -> &::std::option::Option<crate::types::EnvironmentType> {
        &self.environment_type_override
    }
    /// <p>The name of an image for this build that overrides the one specified in the build project.</p>
    pub fn image_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.image_override = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of an image for this build that overrides the one specified in the build project.</p>
    pub fn set_image_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.image_override = input;
        self
    }
    /// <p>The name of an image for this build that overrides the one specified in the build project.</p>
    pub fn get_image_override(&self) -> &::std::option::Option<::std::string::String> {
        &self.image_override
    }
    /// <p>The name of a compute type for this build that overrides the one specified in the build project.</p>
    pub fn compute_type_override(mut self, input: crate::types::ComputeType) -> Self {
        self.compute_type_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>The name of a compute type for this build that overrides the one specified in the build project.</p>
    pub fn set_compute_type_override(mut self, input: ::std::option::Option<crate::types::ComputeType>) -> Self {
        self.compute_type_override = input;
        self
    }
    /// <p>The name of a compute type for this build that overrides the one specified in the build project.</p>
    pub fn get_compute_type_override(&self) -> &::std::option::Option<crate::types::ComputeType> {
        &self.compute_type_override
    }
    /// <p>The name of a certificate for this build that overrides the one specified in the build project.</p>
    pub fn certificate_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.certificate_override = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of a certificate for this build that overrides the one specified in the build project.</p>
    pub fn set_certificate_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.certificate_override = input;
        self
    }
    /// <p>The name of a certificate for this build that overrides the one specified in the build project.</p>
    pub fn get_certificate_override(&self) -> &::std::option::Option<::std::string::String> {
        &self.certificate_override
    }
    /// <p>A ProjectCache object specified for this build that overrides the one defined in the build project.</p>
    pub fn cache_override(mut self, input: crate::types::ProjectCache) -> Self {
        self.cache_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>A ProjectCache object specified for this build that overrides the one defined in the build project.</p>
    pub fn set_cache_override(mut self, input: ::std::option::Option<crate::types::ProjectCache>) -> Self {
        self.cache_override = input;
        self
    }
    /// <p>A ProjectCache object specified for this build that overrides the one defined in the build project.</p>
    pub fn get_cache_override(&self) -> &::std::option::Option<crate::types::ProjectCache> {
        &self.cache_override
    }
    /// <p>The name of a service role for this build that overrides the one specified in the build project.</p>
    pub fn service_role_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.service_role_override = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The name of a service role for this build that overrides the one specified in the build project.</p>
    pub fn set_service_role_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.service_role_override = input;
        self
    }
    /// <p>The name of a service role for this build that overrides the one specified in the build project.</p>
    pub fn get_service_role_override(&self) -> &::std::option::Option<::std::string::String> {
        &self.service_role_override
    }
    /// <p>Enable this flag to override privileged mode in the build project.</p>
    pub fn privileged_mode_override(mut self, input: bool) -> Self {
        self.privileged_mode_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>Enable this flag to override privileged mode in the build project.</p>
    pub fn set_privileged_mode_override(mut self, input: ::std::option::Option<bool>) -> Self {
        self.privileged_mode_override = input;
        self
    }
    /// <p>Enable this flag to override privileged mode in the build project.</p>
    pub fn get_privileged_mode_override(&self) -> &::std::option::Option<bool> {
        &self.privileged_mode_override
    }
    /// <p>The number of build timeout minutes, from 5 to 2160 (36 hours), that overrides, for this build only, the latest setting already defined in the build project.</p>
    pub fn timeout_in_minutes_override(mut self, input: i32) -> Self {
        self.timeout_in_minutes_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of build timeout minutes, from 5 to 2160 (36 hours), that overrides, for this build only, the latest setting already defined in the build project.</p>
    pub fn set_timeout_in_minutes_override(mut self, input: ::std::option::Option<i32>) -> Self {
        self.timeout_in_minutes_override = input;
        self
    }
    /// <p>The number of build timeout minutes, from 5 to 2160 (36 hours), that overrides, for this build only, the latest setting already defined in the build project.</p>
    pub fn get_timeout_in_minutes_override(&self) -> &::std::option::Option<i32> {
        &self.timeout_in_minutes_override
    }
    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
    pub fn queued_timeout_in_minutes_override(mut self, input: i32) -> Self {
        self.queued_timeout_in_minutes_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
    pub fn set_queued_timeout_in_minutes_override(mut self, input: ::std::option::Option<i32>) -> Self {
        self.queued_timeout_in_minutes_override = input;
        self
    }
    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
    pub fn get_queued_timeout_in_minutes_override(&self) -> &::std::option::Option<i32> {
        &self.queued_timeout_in_minutes_override
    }
    /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.</p><note>
    /// <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.</p>
    /// </note>
    /// <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<alias-name></alias-name></code>).</p>
    pub fn encryption_key_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.encryption_key_override = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.</p><note>
    /// <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.</p>
    /// </note>
    /// <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<alias-name></alias-name></code>).</p>
    pub fn set_encryption_key_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.encryption_key_override = input;
        self
    }
    /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the build project. The CMK key encrypts the build output artifacts.</p><note>
    /// <p>You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.</p>
    /// </note>
    /// <p>You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format <code>alias/<alias-name></alias-name></code>).</p>
    pub fn get_encryption_key_override(&self) -> &::std::option::Option<::std::string::String> {
        &self.encryption_key_override
    }
    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
    pub fn idempotency_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.idempotency_token = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
    pub fn set_idempotency_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.idempotency_token = input;
        self
    }
    /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the StartBuild request. The token is included in the StartBuild request and is valid for 5 minutes. If you repeat the StartBuild request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
    pub fn get_idempotency_token(&self) -> &::std::option::Option<::std::string::String> {
        &self.idempotency_token
    }
    /// <p>Log settings for this build that override the log settings defined in the build project.</p>
    pub fn logs_config_override(mut self, input: crate::types::LogsConfig) -> Self {
        self.logs_config_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>Log settings for this build that override the log settings defined in the build project.</p>
    pub fn set_logs_config_override(mut self, input: ::std::option::Option<crate::types::LogsConfig>) -> Self {
        self.logs_config_override = input;
        self
    }
    /// <p>Log settings for this build that override the log settings defined in the build project.</p>
    pub fn get_logs_config_override(&self) -> &::std::option::Option<crate::types::LogsConfig> {
        &self.logs_config_override
    }
    /// <p>The credentials for access to a private registry.</p>
    pub fn registry_credential_override(mut self, input: crate::types::RegistryCredential) -> Self {
        self.registry_credential_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>The credentials for access to a private registry.</p>
    pub fn set_registry_credential_override(mut self, input: ::std::option::Option<crate::types::RegistryCredential>) -> Self {
        self.registry_credential_override = input;
        self
    }
    /// <p>The credentials for access to a private registry.</p>
    pub fn get_registry_credential_override(&self) -> &::std::option::Option<crate::types::RegistryCredential> {
        &self.registry_credential_override
    }
    /// <p>The type of credentials CodeBuild uses to pull images in your build. There are two valid values:</p>
    /// <dl>
    /// <dt>
    /// CODEBUILD
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
    /// </dd>
    /// <dt>
    /// SERVICE_ROLE
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses your build project's service role.</p>
    /// </dd>
    /// </dl>
    /// <p>When using a cross-account or private registry image, you must use <code>SERVICE_ROLE</code> credentials. When using an CodeBuild curated image, you must use <code>CODEBUILD</code> credentials.</p>
    pub fn image_pull_credentials_type_override(mut self, input: crate::types::ImagePullCredentialsType) -> Self {
        self.image_pull_credentials_type_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of credentials CodeBuild uses to pull images in your build. There are two valid values:</p>
    /// <dl>
    /// <dt>
    /// CODEBUILD
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
    /// </dd>
    /// <dt>
    /// SERVICE_ROLE
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses your build project's service role.</p>
    /// </dd>
    /// </dl>
    /// <p>When using a cross-account or private registry image, you must use <code>SERVICE_ROLE</code> credentials. When using an CodeBuild curated image, you must use <code>CODEBUILD</code> credentials.</p>
    pub fn set_image_pull_credentials_type_override(mut self, input: ::std::option::Option<crate::types::ImagePullCredentialsType>) -> Self {
        self.image_pull_credentials_type_override = input;
        self
    }
    /// <p>The type of credentials CodeBuild uses to pull images in your build. There are two valid values:</p>
    /// <dl>
    /// <dt>
    /// CODEBUILD
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
    /// </dd>
    /// <dt>
    /// SERVICE_ROLE
    /// </dt>
    /// <dd>
    /// <p>Specifies that CodeBuild uses your build project's service role.</p>
    /// </dd>
    /// </dl>
    /// <p>When using a cross-account or private registry image, you must use <code>SERVICE_ROLE</code> credentials. When using an CodeBuild curated image, you must use <code>CODEBUILD</code> credentials.</p>
    pub fn get_image_pull_credentials_type_override(&self) -> &::std::option::Option<crate::types::ImagePullCredentialsType> {
        &self.image_pull_credentials_type_override
    }
    /// <p>Specifies if session debugging is enabled for this build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>.</p>
    pub fn debug_session_enabled(mut self, input: bool) -> Self {
        self.debug_session_enabled = ::std::option::Option::Some(input);
        self
    }
    /// <p>Specifies if session debugging is enabled for this build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>.</p>
    pub fn set_debug_session_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
        self.debug_session_enabled = input;
        self
    }
    /// <p>Specifies if session debugging is enabled for this build. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/session-manager.html">Viewing a running build in Session Manager</a>.</p>
    pub fn get_debug_session_enabled(&self) -> &::std::option::Option<bool> {
        &self.debug_session_enabled
    }
    /// <p>A ProjectFleet object specified for this build that overrides the one defined in the build project.</p>
    pub fn fleet_override(mut self, input: crate::types::ProjectFleet) -> Self {
        self.fleet_override = ::std::option::Option::Some(input);
        self
    }
    /// <p>A ProjectFleet object specified for this build that overrides the one defined in the build project.</p>
    pub fn set_fleet_override(mut self, input: ::std::option::Option<crate::types::ProjectFleet>) -> Self {
        self.fleet_override = input;
        self
    }
    /// <p>A ProjectFleet object specified for this build that overrides the one defined in the build project.</p>
    pub fn get_fleet_override(&self) -> &::std::option::Option<crate::types::ProjectFleet> {
        &self.fleet_override
    }
    /// Consumes the builder and constructs a [`StartBuildInput`](crate::operation::start_build::StartBuildInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::start_build::StartBuildInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::start_build::StartBuildInput {
            project_name: self.project_name,
            secondary_sources_override: self.secondary_sources_override,
            secondary_sources_version_override: self.secondary_sources_version_override,
            source_version: self.source_version,
            artifacts_override: self.artifacts_override,
            secondary_artifacts_override: self.secondary_artifacts_override,
            environment_variables_override: self.environment_variables_override,
            source_type_override: self.source_type_override,
            source_location_override: self.source_location_override,
            source_auth_override: self.source_auth_override,
            git_clone_depth_override: self.git_clone_depth_override,
            git_submodules_config_override: self.git_submodules_config_override,
            buildspec_override: self.buildspec_override,
            insecure_ssl_override: self.insecure_ssl_override,
            report_build_status_override: self.report_build_status_override,
            build_status_config_override: self.build_status_config_override,
            environment_type_override: self.environment_type_override,
            image_override: self.image_override,
            compute_type_override: self.compute_type_override,
            certificate_override: self.certificate_override,
            cache_override: self.cache_override,
            service_role_override: self.service_role_override,
            privileged_mode_override: self.privileged_mode_override,
            timeout_in_minutes_override: self.timeout_in_minutes_override,
            queued_timeout_in_minutes_override: self.queued_timeout_in_minutes_override,
            encryption_key_override: self.encryption_key_override,
            idempotency_token: self.idempotency_token,
            logs_config_override: self.logs_config_override,
            registry_credential_override: self.registry_credential_override,
            image_pull_credentials_type_override: self.image_pull_credentials_type_override,
            debug_session_enabled: self.debug_session_enabled,
            fleet_override: self.fleet_override,
        })
    }
}