aws_sdk_codebuild/operation/start_build_batch/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::start_build_batch::_start_build_batch_output::StartBuildBatchOutputBuilder;
3
4pub use crate::operation::start_build_batch::_start_build_batch_input::StartBuildBatchInputBuilder;
5
6impl crate::operation::start_build_batch::builders::StartBuildBatchInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::start_build_batch::StartBuildBatchOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::start_build_batch::StartBuildBatchError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.start_build_batch();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `StartBuildBatch`.
24///
25/// <p>Starts a batch build for a project.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct StartBuildBatchFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::start_build_batch::builders::StartBuildBatchInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::start_build_batch::StartBuildBatchOutput,
35 crate::operation::start_build_batch::StartBuildBatchError,
36 > for StartBuildBatchFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::start_build_batch::StartBuildBatchOutput,
44 crate::operation::start_build_batch::StartBuildBatchError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl StartBuildBatchFluentBuilder {
51 /// Creates a new `StartBuildBatchFluentBuilder`.
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 /// Access the StartBuildBatch as a reference.
60 pub fn as_input(&self) -> &crate::operation::start_build_batch::builders::StartBuildBatchInputBuilder {
61 &self.inner
62 }
63 /// Sends the request and returns the response.
64 ///
65 /// If an error occurs, an `SdkError` will be returned with additional details that
66 /// can be matched against.
67 ///
68 /// By default, any retryable failures will be retried twice. Retry behavior
69 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70 /// set when configuring the client.
71 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::start_build_batch::StartBuildBatchOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::start_build_batch::StartBuildBatchError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::start_build_batch::StartBuildBatch::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::start_build_batch::StartBuildBatch::orchestrate(&runtime_plugins, input).await
90 }
91
92 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::start_build_batch::StartBuildBatchOutput,
97 crate::operation::start_build_batch::StartBuildBatchError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 /// <p>The name of the project.</p>
112 pub fn project_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.inner = self.inner.project_name(input.into());
114 self
115 }
116 /// <p>The name of the project.</p>
117 pub fn set_project_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.inner = self.inner.set_project_name(input);
119 self
120 }
121 /// <p>The name of the project.</p>
122 pub fn get_project_name(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_project_name()
124 }
125 ///
126 /// Appends an item to `secondarySourcesOverride`.
127 ///
128 /// To override the contents of this collection use [`set_secondary_sources_override`](Self::set_secondary_sources_override).
129 ///
130 /// <p>An array of <code>ProjectSource</code> objects that override the secondary sources defined in the batch build project.</p>
131 pub fn secondary_sources_override(mut self, input: crate::types::ProjectSource) -> Self {
132 self.inner = self.inner.secondary_sources_override(input);
133 self
134 }
135 /// <p>An array of <code>ProjectSource</code> objects that override the secondary sources defined in the batch build project.</p>
136 pub fn set_secondary_sources_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>>) -> Self {
137 self.inner = self.inner.set_secondary_sources_override(input);
138 self
139 }
140 /// <p>An array of <code>ProjectSource</code> objects that override the secondary sources defined in the batch build project.</p>
141 pub fn get_secondary_sources_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>> {
142 self.inner.get_secondary_sources_override()
143 }
144 ///
145 /// Appends an item to `secondarySourcesVersionOverride`.
146 ///
147 /// To override the contents of this collection use [`set_secondary_sources_version_override`](Self::set_secondary_sources_version_override).
148 ///
149 /// <p>An array of <code>ProjectSourceVersion</code> objects that override the secondary source versions in the batch build project.</p>
150 pub fn secondary_sources_version_override(mut self, input: crate::types::ProjectSourceVersion) -> Self {
151 self.inner = self.inner.secondary_sources_version_override(input);
152 self
153 }
154 /// <p>An array of <code>ProjectSourceVersion</code> objects that override the secondary source versions in the batch build project.</p>
155 pub fn set_secondary_sources_version_override(
156 mut self,
157 input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>>,
158 ) -> Self {
159 self.inner = self.inner.set_secondary_sources_version_override(input);
160 self
161 }
162 /// <p>An array of <code>ProjectSourceVersion</code> objects that override the secondary source versions in the batch build project.</p>
163 pub fn get_secondary_sources_version_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>> {
164 self.inner.get_secondary_sources_version_override()
165 }
166 /// <p>The version of the batch 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>
167 /// <dl>
168 /// <dt>
169 /// CodeCommit
170 /// </dt>
171 /// <dd>
172 /// <p>The commit ID, branch, or Git tag to use.</p>
173 /// </dd>
174 /// <dt>
175 /// GitHub
176 /// </dt>
177 /// <dd>
178 /// <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>
179 /// </dd>
180 /// <dt>
181 /// Bitbucket
182 /// </dt>
183 /// <dd>
184 /// <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>
185 /// </dd>
186 /// <dt>
187 /// Amazon S3
188 /// </dt>
189 /// <dd>
190 /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
191 /// </dd>
192 /// </dl>
193 /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
194 /// <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>
195 pub fn source_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
196 self.inner = self.inner.source_version(input.into());
197 self
198 }
199 /// <p>The version of the batch 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>
200 /// <dl>
201 /// <dt>
202 /// CodeCommit
203 /// </dt>
204 /// <dd>
205 /// <p>The commit ID, branch, or Git tag to use.</p>
206 /// </dd>
207 /// <dt>
208 /// GitHub
209 /// </dt>
210 /// <dd>
211 /// <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>
212 /// </dd>
213 /// <dt>
214 /// Bitbucket
215 /// </dt>
216 /// <dd>
217 /// <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>
218 /// </dd>
219 /// <dt>
220 /// Amazon S3
221 /// </dt>
222 /// <dd>
223 /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
224 /// </dd>
225 /// </dl>
226 /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
227 /// <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>
228 pub fn set_source_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
229 self.inner = self.inner.set_source_version(input);
230 self
231 }
232 /// <p>The version of the batch 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>
233 /// <dl>
234 /// <dt>
235 /// CodeCommit
236 /// </dt>
237 /// <dd>
238 /// <p>The commit ID, branch, or Git tag to use.</p>
239 /// </dd>
240 /// <dt>
241 /// GitHub
242 /// </dt>
243 /// <dd>
244 /// <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>
245 /// </dd>
246 /// <dt>
247 /// Bitbucket
248 /// </dt>
249 /// <dd>
250 /// <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>
251 /// </dd>
252 /// <dt>
253 /// Amazon S3
254 /// </dt>
255 /// <dd>
256 /// <p>The version ID of the object that represents the build input ZIP file to use.</p>
257 /// </dd>
258 /// </dl>
259 /// <p>If <code>sourceVersion</code> is specified at the project level, then this <code>sourceVersion</code> (at the build level) takes precedence.</p>
260 /// <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>
261 pub fn get_source_version(&self) -> &::std::option::Option<::std::string::String> {
262 self.inner.get_source_version()
263 }
264 /// <p>An array of <code>ProjectArtifacts</code> objects that contains information about the build output artifact overrides for the build project.</p>
265 pub fn artifacts_override(mut self, input: crate::types::ProjectArtifacts) -> Self {
266 self.inner = self.inner.artifacts_override(input);
267 self
268 }
269 /// <p>An array of <code>ProjectArtifacts</code> objects that contains information about the build output artifact overrides for the build project.</p>
270 pub fn set_artifacts_override(mut self, input: ::std::option::Option<crate::types::ProjectArtifacts>) -> Self {
271 self.inner = self.inner.set_artifacts_override(input);
272 self
273 }
274 /// <p>An array of <code>ProjectArtifacts</code> objects that contains information about the build output artifact overrides for the build project.</p>
275 pub fn get_artifacts_override(&self) -> &::std::option::Option<crate::types::ProjectArtifacts> {
276 self.inner.get_artifacts_override()
277 }
278 ///
279 /// Appends an item to `secondaryArtifactsOverride`.
280 ///
281 /// To override the contents of this collection use [`set_secondary_artifacts_override`](Self::set_secondary_artifacts_override).
282 ///
283 /// <p>An array of <code>ProjectArtifacts</code> objects that override the secondary artifacts defined in the batch build project.</p>
284 pub fn secondary_artifacts_override(mut self, input: crate::types::ProjectArtifacts) -> Self {
285 self.inner = self.inner.secondary_artifacts_override(input);
286 self
287 }
288 /// <p>An array of <code>ProjectArtifacts</code> objects that override the secondary artifacts defined in the batch build project.</p>
289 pub fn set_secondary_artifacts_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>>) -> Self {
290 self.inner = self.inner.set_secondary_artifacts_override(input);
291 self
292 }
293 /// <p>An array of <code>ProjectArtifacts</code> objects that override the secondary artifacts defined in the batch build project.</p>
294 pub fn get_secondary_artifacts_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>> {
295 self.inner.get_secondary_artifacts_override()
296 }
297 ///
298 /// Appends an item to `environmentVariablesOverride`.
299 ///
300 /// To override the contents of this collection use [`set_environment_variables_override`](Self::set_environment_variables_override).
301 ///
302 /// <p>An array of <code>EnvironmentVariable</code> objects that override, or add to, the environment variables defined in the batch build project.</p>
303 pub fn environment_variables_override(mut self, input: crate::types::EnvironmentVariable) -> Self {
304 self.inner = self.inner.environment_variables_override(input);
305 self
306 }
307 /// <p>An array of <code>EnvironmentVariable</code> objects that override, or add to, the environment variables defined in the batch build project.</p>
308 pub fn set_environment_variables_override(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::EnvironmentVariable>>) -> Self {
309 self.inner = self.inner.set_environment_variables_override(input);
310 self
311 }
312 /// <p>An array of <code>EnvironmentVariable</code> objects that override, or add to, the environment variables defined in the batch build project.</p>
313 pub fn get_environment_variables_override(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::EnvironmentVariable>> {
314 self.inner.get_environment_variables_override()
315 }
316 /// <p>The source input type that overrides the source input defined in the batch build project.</p>
317 pub fn source_type_override(mut self, input: crate::types::SourceType) -> Self {
318 self.inner = self.inner.source_type_override(input);
319 self
320 }
321 /// <p>The source input type that overrides the source input defined in the batch build project.</p>
322 pub fn set_source_type_override(mut self, input: ::std::option::Option<crate::types::SourceType>) -> Self {
323 self.inner = self.inner.set_source_type_override(input);
324 self
325 }
326 /// <p>The source input type that overrides the source input defined in the batch build project.</p>
327 pub fn get_source_type_override(&self) -> &::std::option::Option<crate::types::SourceType> {
328 self.inner.get_source_type_override()
329 }
330 /// <p>A location that overrides, for this batch build, the source location defined in the batch build project.</p>
331 pub fn source_location_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
332 self.inner = self.inner.source_location_override(input.into());
333 self
334 }
335 /// <p>A location that overrides, for this batch build, the source location defined in the batch build project.</p>
336 pub fn set_source_location_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
337 self.inner = self.inner.set_source_location_override(input);
338 self
339 }
340 /// <p>A location that overrides, for this batch build, the source location defined in the batch build project.</p>
341 pub fn get_source_location_override(&self) -> &::std::option::Option<::std::string::String> {
342 self.inner.get_source_location_override()
343 }
344 /// <p>A <code>SourceAuth</code> object that overrides the one defined in the batch build project. This override applies only if the build project's source is BitBucket or GitHub.</p>
345 pub fn source_auth_override(mut self, input: crate::types::SourceAuth) -> Self {
346 self.inner = self.inner.source_auth_override(input);
347 self
348 }
349 /// <p>A <code>SourceAuth</code> object that overrides the one defined in the batch build project. This override applies only if the build project's source is BitBucket or GitHub.</p>
350 pub fn set_source_auth_override(mut self, input: ::std::option::Option<crate::types::SourceAuth>) -> Self {
351 self.inner = self.inner.set_source_auth_override(input);
352 self
353 }
354 /// <p>A <code>SourceAuth</code> object that overrides the one defined in the batch build project. This override applies only if the build project's source is BitBucket or GitHub.</p>
355 pub fn get_source_auth_override(&self) -> &::std::option::Option<crate::types::SourceAuth> {
356 self.inner.get_source_auth_override()
357 }
358 /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this batch build only, any previous depth of history defined in the batch build project.</p>
359 pub fn git_clone_depth_override(mut self, input: i32) -> Self {
360 self.inner = self.inner.git_clone_depth_override(input);
361 self
362 }
363 /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this batch build only, any previous depth of history defined in the batch build project.</p>
364 pub fn set_git_clone_depth_override(mut self, input: ::std::option::Option<i32>) -> Self {
365 self.inner = self.inner.set_git_clone_depth_override(input);
366 self
367 }
368 /// <p>The user-defined depth of history, with a minimum value of 0, that overrides, for this batch build only, any previous depth of history defined in the batch build project.</p>
369 pub fn get_git_clone_depth_override(&self) -> &::std::option::Option<i32> {
370 self.inner.get_git_clone_depth_override()
371 }
372 /// <p>A <code>GitSubmodulesConfig</code> object that overrides the Git submodules configuration for this batch build.</p>
373 pub fn git_submodules_config_override(mut self, input: crate::types::GitSubmodulesConfig) -> Self {
374 self.inner = self.inner.git_submodules_config_override(input);
375 self
376 }
377 /// <p>A <code>GitSubmodulesConfig</code> object that overrides the Git submodules configuration for this batch build.</p>
378 pub fn set_git_submodules_config_override(mut self, input: ::std::option::Option<crate::types::GitSubmodulesConfig>) -> Self {
379 self.inner = self.inner.set_git_submodules_config_override(input);
380 self
381 }
382 /// <p>A <code>GitSubmodulesConfig</code> object that overrides the Git submodules configuration for this batch build.</p>
383 pub fn get_git_submodules_config_override(&self) -> &::std::option::Option<crate::types::GitSubmodulesConfig> {
384 self.inner.get_git_submodules_config_override()
385 }
386 /// <p>A buildspec file declaration that overrides, for this build only, the latest one already defined in the build project.</p>
387 /// <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>
388 pub fn buildspec_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
389 self.inner = self.inner.buildspec_override(input.into());
390 self
391 }
392 /// <p>A buildspec file declaration that overrides, for this build only, the latest one already defined in the build project.</p>
393 /// <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>
394 pub fn set_buildspec_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
395 self.inner = self.inner.set_buildspec_override(input);
396 self
397 }
398 /// <p>A buildspec file declaration that overrides, for this build only, the latest one already defined in the build project.</p>
399 /// <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>
400 pub fn get_buildspec_override(&self) -> &::std::option::Option<::std::string::String> {
401 self.inner.get_buildspec_override()
402 }
403 /// <p>Enable this flag to override the insecure SSL setting that is specified in the batch 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>
404 pub fn insecure_ssl_override(mut self, input: bool) -> Self {
405 self.inner = self.inner.insecure_ssl_override(input);
406 self
407 }
408 /// <p>Enable this flag to override the insecure SSL setting that is specified in the batch 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>
409 pub fn set_insecure_ssl_override(mut self, input: ::std::option::Option<bool>) -> Self {
410 self.inner = self.inner.set_insecure_ssl_override(input);
411 self
412 }
413 /// <p>Enable this flag to override the insecure SSL setting that is specified in the batch 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>
414 pub fn get_insecure_ssl_override(&self) -> &::std::option::Option<bool> {
415 self.inner.get_insecure_ssl_override()
416 }
417 /// <p>Set to <code>true</code> to report to your source provider the status of a batch 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><note>
418 /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
419 /// </note>
420 pub fn report_build_batch_status_override(mut self, input: bool) -> Self {
421 self.inner = self.inner.report_build_batch_status_override(input);
422 self
423 }
424 /// <p>Set to <code>true</code> to report to your source provider the status of a batch 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><note>
425 /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
426 /// </note>
427 pub fn set_report_build_batch_status_override(mut self, input: ::std::option::Option<bool>) -> Self {
428 self.inner = self.inner.set_report_build_batch_status_override(input);
429 self
430 }
431 /// <p>Set to <code>true</code> to report to your source provider the status of a batch 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><note>
432 /// <p>The status of a build triggered by a webhook is always reported to your source provider.</p>
433 /// </note>
434 pub fn get_report_build_batch_status_override(&self) -> &::std::option::Option<bool> {
435 self.inner.get_report_build_batch_status_override()
436 }
437 /// <p>A container type for this batch build that overrides the one specified in the batch build project.</p>
438 pub fn environment_type_override(mut self, input: crate::types::EnvironmentType) -> Self {
439 self.inner = self.inner.environment_type_override(input);
440 self
441 }
442 /// <p>A container type for this batch build that overrides the one specified in the batch build project.</p>
443 pub fn set_environment_type_override(mut self, input: ::std::option::Option<crate::types::EnvironmentType>) -> Self {
444 self.inner = self.inner.set_environment_type_override(input);
445 self
446 }
447 /// <p>A container type for this batch build that overrides the one specified in the batch build project.</p>
448 pub fn get_environment_type_override(&self) -> &::std::option::Option<crate::types::EnvironmentType> {
449 self.inner.get_environment_type_override()
450 }
451 /// <p>The name of an image for this batch build that overrides the one specified in the batch build project.</p>
452 pub fn image_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
453 self.inner = self.inner.image_override(input.into());
454 self
455 }
456 /// <p>The name of an image for this batch build that overrides the one specified in the batch build project.</p>
457 pub fn set_image_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
458 self.inner = self.inner.set_image_override(input);
459 self
460 }
461 /// <p>The name of an image for this batch build that overrides the one specified in the batch build project.</p>
462 pub fn get_image_override(&self) -> &::std::option::Option<::std::string::String> {
463 self.inner.get_image_override()
464 }
465 /// <p>The name of a compute type for this batch build that overrides the one specified in the batch build project.</p>
466 pub fn compute_type_override(mut self, input: crate::types::ComputeType) -> Self {
467 self.inner = self.inner.compute_type_override(input);
468 self
469 }
470 /// <p>The name of a compute type for this batch build that overrides the one specified in the batch build project.</p>
471 pub fn set_compute_type_override(mut self, input: ::std::option::Option<crate::types::ComputeType>) -> Self {
472 self.inner = self.inner.set_compute_type_override(input);
473 self
474 }
475 /// <p>The name of a compute type for this batch build that overrides the one specified in the batch build project.</p>
476 pub fn get_compute_type_override(&self) -> &::std::option::Option<crate::types::ComputeType> {
477 self.inner.get_compute_type_override()
478 }
479 /// <p>The name of a certificate for this batch build that overrides the one specified in the batch build project.</p>
480 pub fn certificate_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
481 self.inner = self.inner.certificate_override(input.into());
482 self
483 }
484 /// <p>The name of a certificate for this batch build that overrides the one specified in the batch build project.</p>
485 pub fn set_certificate_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
486 self.inner = self.inner.set_certificate_override(input);
487 self
488 }
489 /// <p>The name of a certificate for this batch build that overrides the one specified in the batch build project.</p>
490 pub fn get_certificate_override(&self) -> &::std::option::Option<::std::string::String> {
491 self.inner.get_certificate_override()
492 }
493 /// <p>A <code>ProjectCache</code> object that specifies cache overrides.</p>
494 pub fn cache_override(mut self, input: crate::types::ProjectCache) -> Self {
495 self.inner = self.inner.cache_override(input);
496 self
497 }
498 /// <p>A <code>ProjectCache</code> object that specifies cache overrides.</p>
499 pub fn set_cache_override(mut self, input: ::std::option::Option<crate::types::ProjectCache>) -> Self {
500 self.inner = self.inner.set_cache_override(input);
501 self
502 }
503 /// <p>A <code>ProjectCache</code> object that specifies cache overrides.</p>
504 pub fn get_cache_override(&self) -> &::std::option::Option<crate::types::ProjectCache> {
505 self.inner.get_cache_override()
506 }
507 /// <p>The name of a service role for this batch build that overrides the one specified in the batch build project.</p>
508 pub fn service_role_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
509 self.inner = self.inner.service_role_override(input.into());
510 self
511 }
512 /// <p>The name of a service role for this batch build that overrides the one specified in the batch build project.</p>
513 pub fn set_service_role_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
514 self.inner = self.inner.set_service_role_override(input);
515 self
516 }
517 /// <p>The name of a service role for this batch build that overrides the one specified in the batch build project.</p>
518 pub fn get_service_role_override(&self) -> &::std::option::Option<::std::string::String> {
519 self.inner.get_service_role_override()
520 }
521 /// <p>Enable this flag to override privileged mode in the batch build project.</p>
522 pub fn privileged_mode_override(mut self, input: bool) -> Self {
523 self.inner = self.inner.privileged_mode_override(input);
524 self
525 }
526 /// <p>Enable this flag to override privileged mode in the batch build project.</p>
527 pub fn set_privileged_mode_override(mut self, input: ::std::option::Option<bool>) -> Self {
528 self.inner = self.inner.set_privileged_mode_override(input);
529 self
530 }
531 /// <p>Enable this flag to override privileged mode in the batch build project.</p>
532 pub fn get_privileged_mode_override(&self) -> &::std::option::Option<bool> {
533 self.inner.get_privileged_mode_override()
534 }
535 /// <p>Overrides the build timeout specified in the batch build project.</p>
536 pub fn build_timeout_in_minutes_override(mut self, input: i32) -> Self {
537 self.inner = self.inner.build_timeout_in_minutes_override(input);
538 self
539 }
540 /// <p>Overrides the build timeout specified in the batch build project.</p>
541 pub fn set_build_timeout_in_minutes_override(mut self, input: ::std::option::Option<i32>) -> Self {
542 self.inner = self.inner.set_build_timeout_in_minutes_override(input);
543 self
544 }
545 /// <p>Overrides the build timeout specified in the batch build project.</p>
546 pub fn get_build_timeout_in_minutes_override(&self) -> &::std::option::Option<i32> {
547 self.inner.get_build_timeout_in_minutes_override()
548 }
549 /// <p>The number of minutes a batch build is allowed to be queued before it times out.</p>
550 pub fn queued_timeout_in_minutes_override(mut self, input: i32) -> Self {
551 self.inner = self.inner.queued_timeout_in_minutes_override(input);
552 self
553 }
554 /// <p>The number of minutes a batch build is allowed to be queued before it times out.</p>
555 pub fn set_queued_timeout_in_minutes_override(mut self, input: ::std::option::Option<i32>) -> Self {
556 self.inner = self.inner.set_queued_timeout_in_minutes_override(input);
557 self
558 }
559 /// <p>The number of minutes a batch build is allowed to be queued before it times out.</p>
560 pub fn get_queued_timeout_in_minutes_override(&self) -> &::std::option::Option<i32> {
561 self.inner.get_queued_timeout_in_minutes_override()
562 }
563 /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the batch build project. The CMK key encrypts the build output artifacts.</p><note>
564 /// <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>
565 /// </note>
566 /// <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>
567 pub fn encryption_key_override(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
568 self.inner = self.inner.encryption_key_override(input.into());
569 self
570 }
571 /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the batch build project. The CMK key encrypts the build output artifacts.</p><note>
572 /// <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>
573 /// </note>
574 /// <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>
575 pub fn set_encryption_key_override(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
576 self.inner = self.inner.set_encryption_key_override(input);
577 self
578 }
579 /// <p>The Key Management Service customer master key (CMK) that overrides the one specified in the batch build project. The CMK key encrypts the build output artifacts.</p><note>
580 /// <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>
581 /// </note>
582 /// <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>
583 pub fn get_encryption_key_override(&self) -> &::std::option::Option<::std::string::String> {
584 self.inner.get_encryption_key_override()
585 }
586 /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the <code>StartBuildBatch</code> request. The token is included in the <code>StartBuildBatch</code> request and is valid for five minutes. If you repeat the <code>StartBuildBatch</code> request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
587 pub fn idempotency_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
588 self.inner = self.inner.idempotency_token(input.into());
589 self
590 }
591 /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the <code>StartBuildBatch</code> request. The token is included in the <code>StartBuildBatch</code> request and is valid for five minutes. If you repeat the <code>StartBuildBatch</code> request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
592 pub fn set_idempotency_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
593 self.inner = self.inner.set_idempotency_token(input);
594 self
595 }
596 /// <p>A unique, case sensitive identifier you provide to ensure the idempotency of the <code>StartBuildBatch</code> request. The token is included in the <code>StartBuildBatch</code> request and is valid for five minutes. If you repeat the <code>StartBuildBatch</code> request with the same token, but change a parameter, CodeBuild returns a parameter mismatch error.</p>
597 pub fn get_idempotency_token(&self) -> &::std::option::Option<::std::string::String> {
598 self.inner.get_idempotency_token()
599 }
600 /// <p>A <code>LogsConfig</code> object that override the log settings defined in the batch build project.</p>
601 pub fn logs_config_override(mut self, input: crate::types::LogsConfig) -> Self {
602 self.inner = self.inner.logs_config_override(input);
603 self
604 }
605 /// <p>A <code>LogsConfig</code> object that override the log settings defined in the batch build project.</p>
606 pub fn set_logs_config_override(mut self, input: ::std::option::Option<crate::types::LogsConfig>) -> Self {
607 self.inner = self.inner.set_logs_config_override(input);
608 self
609 }
610 /// <p>A <code>LogsConfig</code> object that override the log settings defined in the batch build project.</p>
611 pub fn get_logs_config_override(&self) -> &::std::option::Option<crate::types::LogsConfig> {
612 self.inner.get_logs_config_override()
613 }
614 /// <p>A <code>RegistryCredential</code> object that overrides credentials for access to a private registry.</p>
615 pub fn registry_credential_override(mut self, input: crate::types::RegistryCredential) -> Self {
616 self.inner = self.inner.registry_credential_override(input);
617 self
618 }
619 /// <p>A <code>RegistryCredential</code> object that overrides credentials for access to a private registry.</p>
620 pub fn set_registry_credential_override(mut self, input: ::std::option::Option<crate::types::RegistryCredential>) -> Self {
621 self.inner = self.inner.set_registry_credential_override(input);
622 self
623 }
624 /// <p>A <code>RegistryCredential</code> object that overrides credentials for access to a private registry.</p>
625 pub fn get_registry_credential_override(&self) -> &::std::option::Option<crate::types::RegistryCredential> {
626 self.inner.get_registry_credential_override()
627 }
628 /// <p>The type of credentials CodeBuild uses to pull images in your batch build. There are two valid values:</p>
629 /// <dl>
630 /// <dt>
631 /// CODEBUILD
632 /// </dt>
633 /// <dd>
634 /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
635 /// </dd>
636 /// <dt>
637 /// SERVICE_ROLE
638 /// </dt>
639 /// <dd>
640 /// <p>Specifies that CodeBuild uses your build project's service role.</p>
641 /// </dd>
642 /// </dl>
643 /// <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>
644 pub fn image_pull_credentials_type_override(mut self, input: crate::types::ImagePullCredentialsType) -> Self {
645 self.inner = self.inner.image_pull_credentials_type_override(input);
646 self
647 }
648 /// <p>The type of credentials CodeBuild uses to pull images in your batch build. There are two valid values:</p>
649 /// <dl>
650 /// <dt>
651 /// CODEBUILD
652 /// </dt>
653 /// <dd>
654 /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
655 /// </dd>
656 /// <dt>
657 /// SERVICE_ROLE
658 /// </dt>
659 /// <dd>
660 /// <p>Specifies that CodeBuild uses your build project's service role.</p>
661 /// </dd>
662 /// </dl>
663 /// <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>
664 pub fn set_image_pull_credentials_type_override(mut self, input: ::std::option::Option<crate::types::ImagePullCredentialsType>) -> Self {
665 self.inner = self.inner.set_image_pull_credentials_type_override(input);
666 self
667 }
668 /// <p>The type of credentials CodeBuild uses to pull images in your batch build. There are two valid values:</p>
669 /// <dl>
670 /// <dt>
671 /// CODEBUILD
672 /// </dt>
673 /// <dd>
674 /// <p>Specifies that CodeBuild uses its own credentials. This requires that you modify your ECR repository policy to trust CodeBuild's service principal.</p>
675 /// </dd>
676 /// <dt>
677 /// SERVICE_ROLE
678 /// </dt>
679 /// <dd>
680 /// <p>Specifies that CodeBuild uses your build project's service role.</p>
681 /// </dd>
682 /// </dl>
683 /// <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>
684 pub fn get_image_pull_credentials_type_override(&self) -> &::std::option::Option<crate::types::ImagePullCredentialsType> {
685 self.inner.get_image_pull_credentials_type_override()
686 }
687 /// <p>A <code>BuildBatchConfigOverride</code> object that contains batch build configuration overrides.</p>
688 pub fn build_batch_config_override(mut self, input: crate::types::ProjectBuildBatchConfig) -> Self {
689 self.inner = self.inner.build_batch_config_override(input);
690 self
691 }
692 /// <p>A <code>BuildBatchConfigOverride</code> object that contains batch build configuration overrides.</p>
693 pub fn set_build_batch_config_override(mut self, input: ::std::option::Option<crate::types::ProjectBuildBatchConfig>) -> Self {
694 self.inner = self.inner.set_build_batch_config_override(input);
695 self
696 }
697 /// <p>A <code>BuildBatchConfigOverride</code> object that contains batch build configuration overrides.</p>
698 pub fn get_build_batch_config_override(&self) -> &::std::option::Option<crate::types::ProjectBuildBatchConfig> {
699 self.inner.get_build_batch_config_override()
700 }
701 /// <p>Specifies if session debugging is enabled for this batch 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>. Batch session debugging is not supported for matrix batch builds.</p>
702 pub fn debug_session_enabled(mut self, input: bool) -> Self {
703 self.inner = self.inner.debug_session_enabled(input);
704 self
705 }
706 /// <p>Specifies if session debugging is enabled for this batch 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>. Batch session debugging is not supported for matrix batch builds.</p>
707 pub fn set_debug_session_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
708 self.inner = self.inner.set_debug_session_enabled(input);
709 self
710 }
711 /// <p>Specifies if session debugging is enabled for this batch 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>. Batch session debugging is not supported for matrix batch builds.</p>
712 pub fn get_debug_session_enabled(&self) -> &::std::option::Option<bool> {
713 self.inner.get_debug_session_enabled()
714 }
715}