aws_sdk_codebuild/operation/create_project/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_project::_create_project_output::CreateProjectOutputBuilder;
3
4pub use crate::operation::create_project::_create_project_input::CreateProjectInputBuilder;
5
6impl crate::operation::create_project::builders::CreateProjectInputBuilder {
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::create_project::CreateProjectOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_project::CreateProjectError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_project();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateProject`.
24///
25/// <p>Creates a build project.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreateProjectFluentBuilder {
28    handle: ::std::sync::Arc<crate::client::Handle>,
29    inner: crate::operation::create_project::builders::CreateProjectInputBuilder,
30    config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33    crate::client::customize::internal::CustomizableSend<
34        crate::operation::create_project::CreateProjectOutput,
35        crate::operation::create_project::CreateProjectError,
36    > for CreateProjectFluentBuilder
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::create_project::CreateProjectOutput,
44            crate::operation::create_project::CreateProjectError,
45        >,
46    > {
47        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48    }
49}
50impl CreateProjectFluentBuilder {
51    /// Creates a new `CreateProjectFluentBuilder`.
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 CreateProject as a reference.
60    pub fn as_input(&self) -> &crate::operation::create_project::builders::CreateProjectInputBuilder {
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::create_project::CreateProjectOutput,
75        ::aws_smithy_runtime_api::client::result::SdkError<
76            crate::operation::create_project::CreateProjectError,
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::create_project::CreateProject::operation_runtime_plugins(
85            self.handle.runtime_plugins.clone(),
86            &self.handle.conf,
87            self.config_override,
88        );
89        crate::operation::create_project::CreateProject::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::create_project::CreateProjectOutput,
97        crate::operation::create_project::CreateProjectError,
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 build project.</p>
112    pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113        self.inner = self.inner.name(input.into());
114        self
115    }
116    /// <p>The name of the build project.</p>
117    pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118        self.inner = self.inner.set_name(input);
119        self
120    }
121    /// <p>The name of the build project.</p>
122    pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
123        self.inner.get_name()
124    }
125    /// <p>A description that makes the build project easy to identify.</p>
126    pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
127        self.inner = self.inner.description(input.into());
128        self
129    }
130    /// <p>A description that makes the build project easy to identify.</p>
131    pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
132        self.inner = self.inner.set_description(input);
133        self
134    }
135    /// <p>A description that makes the build project easy to identify.</p>
136    pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
137        self.inner.get_description()
138    }
139    /// <p>Information about the build input source code for the build project.</p>
140    pub fn source(mut self, input: crate::types::ProjectSource) -> Self {
141        self.inner = self.inner.source(input);
142        self
143    }
144    /// <p>Information about the build input source code for the build project.</p>
145    pub fn set_source(mut self, input: ::std::option::Option<crate::types::ProjectSource>) -> Self {
146        self.inner = self.inner.set_source(input);
147        self
148    }
149    /// <p>Information about the build input source code for the build project.</p>
150    pub fn get_source(&self) -> &::std::option::Option<crate::types::ProjectSource> {
151        self.inner.get_source()
152    }
153    ///
154    /// Appends an item to `secondarySources`.
155    ///
156    /// To override the contents of this collection use [`set_secondary_sources`](Self::set_secondary_sources).
157    ///
158    /// <p>An array of <code>ProjectSource</code> objects.</p>
159    pub fn secondary_sources(mut self, input: crate::types::ProjectSource) -> Self {
160        self.inner = self.inner.secondary_sources(input);
161        self
162    }
163    /// <p>An array of <code>ProjectSource</code> objects.</p>
164    pub fn set_secondary_sources(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>>) -> Self {
165        self.inner = self.inner.set_secondary_sources(input);
166        self
167    }
168    /// <p>An array of <code>ProjectSource</code> objects.</p>
169    pub fn get_secondary_sources(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectSource>> {
170        self.inner.get_secondary_sources()
171    }
172    /// <p>A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:</p>
173    /// <ul>
174    /// <li>
175    /// <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p></li>
176    /// <li>
177    /// <p>For GitHub: 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></li>
178    /// <li>
179    /// <p>For GitLab: the commit ID, branch, or Git tag to use.</p></li>
180    /// <li>
181    /// <p>For Bitbucket: 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></li>
182    /// <li>
183    /// <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p></li>
184    /// </ul>
185    /// <p>If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level).</p>
186    /// <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>
187    pub fn source_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
188        self.inner = self.inner.source_version(input.into());
189        self
190    }
191    /// <p>A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:</p>
192    /// <ul>
193    /// <li>
194    /// <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p></li>
195    /// <li>
196    /// <p>For GitHub: 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></li>
197    /// <li>
198    /// <p>For GitLab: the commit ID, branch, or Git tag to use.</p></li>
199    /// <li>
200    /// <p>For Bitbucket: 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></li>
201    /// <li>
202    /// <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p></li>
203    /// </ul>
204    /// <p>If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level).</p>
205    /// <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>
206    pub fn set_source_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
207        self.inner = self.inner.set_source_version(input);
208        self
209    }
210    /// <p>A version of the build input to be built for this project. If not specified, the latest version is used. If specified, it must be one of:</p>
211    /// <ul>
212    /// <li>
213    /// <p>For CodeCommit: the commit ID, branch, or Git tag to use.</p></li>
214    /// <li>
215    /// <p>For GitHub: 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></li>
216    /// <li>
217    /// <p>For GitLab: the commit ID, branch, or Git tag to use.</p></li>
218    /// <li>
219    /// <p>For Bitbucket: 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></li>
220    /// <li>
221    /// <p>For Amazon S3: the version ID of the object that represents the build input ZIP file to use.</p></li>
222    /// </ul>
223    /// <p>If <code>sourceVersion</code> is specified at the build level, then that version takes precedence over this <code>sourceVersion</code> (at the project level).</p>
224    /// <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>
225    pub fn get_source_version(&self) -> &::std::option::Option<::std::string::String> {
226        self.inner.get_source_version()
227    }
228    ///
229    /// Appends an item to `secondarySourceVersions`.
230    ///
231    /// To override the contents of this collection use [`set_secondary_source_versions`](Self::set_secondary_source_versions).
232    ///
233    /// <p>An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take precedence over these <code>secondarySourceVersions</code> (at the project level).</p>
234    pub fn secondary_source_versions(mut self, input: crate::types::ProjectSourceVersion) -> Self {
235        self.inner = self.inner.secondary_source_versions(input);
236        self
237    }
238    /// <p>An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take precedence over these <code>secondarySourceVersions</code> (at the project level).</p>
239    pub fn set_secondary_source_versions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>>) -> Self {
240        self.inner = self.inner.set_secondary_source_versions(input);
241        self
242    }
243    /// <p>An array of <code>ProjectSourceVersion</code> objects. If <code>secondarySourceVersions</code> is specified at the build level, then they take precedence over these <code>secondarySourceVersions</code> (at the project level).</p>
244    pub fn get_secondary_source_versions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectSourceVersion>> {
245        self.inner.get_secondary_source_versions()
246    }
247    /// <p>Information about the build output artifacts for the build project.</p>
248    pub fn artifacts(mut self, input: crate::types::ProjectArtifacts) -> Self {
249        self.inner = self.inner.artifacts(input);
250        self
251    }
252    /// <p>Information about the build output artifacts for the build project.</p>
253    pub fn set_artifacts(mut self, input: ::std::option::Option<crate::types::ProjectArtifacts>) -> Self {
254        self.inner = self.inner.set_artifacts(input);
255        self
256    }
257    /// <p>Information about the build output artifacts for the build project.</p>
258    pub fn get_artifacts(&self) -> &::std::option::Option<crate::types::ProjectArtifacts> {
259        self.inner.get_artifacts()
260    }
261    ///
262    /// Appends an item to `secondaryArtifacts`.
263    ///
264    /// To override the contents of this collection use [`set_secondary_artifacts`](Self::set_secondary_artifacts).
265    ///
266    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
267    pub fn secondary_artifacts(mut self, input: crate::types::ProjectArtifacts) -> Self {
268        self.inner = self.inner.secondary_artifacts(input);
269        self
270    }
271    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
272    pub fn set_secondary_artifacts(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>>) -> Self {
273        self.inner = self.inner.set_secondary_artifacts(input);
274        self
275    }
276    /// <p>An array of <code>ProjectArtifacts</code> objects.</p>
277    pub fn get_secondary_artifacts(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectArtifacts>> {
278        self.inner.get_secondary_artifacts()
279    }
280    /// <p>Stores recently used information so that it can be quickly accessed at a later time.</p>
281    pub fn cache(mut self, input: crate::types::ProjectCache) -> Self {
282        self.inner = self.inner.cache(input);
283        self
284    }
285    /// <p>Stores recently used information so that it can be quickly accessed at a later time.</p>
286    pub fn set_cache(mut self, input: ::std::option::Option<crate::types::ProjectCache>) -> Self {
287        self.inner = self.inner.set_cache(input);
288        self
289    }
290    /// <p>Stores recently used information so that it can be quickly accessed at a later time.</p>
291    pub fn get_cache(&self) -> &::std::option::Option<crate::types::ProjectCache> {
292        self.inner.get_cache()
293    }
294    /// <p>Information about the build environment for the build project.</p>
295    pub fn environment(mut self, input: crate::types::ProjectEnvironment) -> Self {
296        self.inner = self.inner.environment(input);
297        self
298    }
299    /// <p>Information about the build environment for the build project.</p>
300    pub fn set_environment(mut self, input: ::std::option::Option<crate::types::ProjectEnvironment>) -> Self {
301        self.inner = self.inner.set_environment(input);
302        self
303    }
304    /// <p>Information about the build environment for the build project.</p>
305    pub fn get_environment(&self) -> &::std::option::Option<crate::types::ProjectEnvironment> {
306        self.inner.get_environment()
307    }
308    /// <p>The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.</p>
309    pub fn service_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
310        self.inner = self.inner.service_role(input.into());
311        self
312    }
313    /// <p>The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.</p>
314    pub fn set_service_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
315        self.inner = self.inner.set_service_role(input);
316        self
317    }
318    /// <p>The ARN of the IAM role that enables CodeBuild to interact with dependent Amazon Web Services services on behalf of the Amazon Web Services account.</p>
319    pub fn get_service_role(&self) -> &::std::option::Option<::std::string::String> {
320        self.inner.get_service_role()
321    }
322    /// <p>How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.</p>
323    pub fn timeout_in_minutes(mut self, input: i32) -> Self {
324        self.inner = self.inner.timeout_in_minutes(input);
325        self
326    }
327    /// <p>How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.</p>
328    pub fn set_timeout_in_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
329        self.inner = self.inner.set_timeout_in_minutes(input);
330        self
331    }
332    /// <p>How long, in minutes, from 5 to 2160 (36 hours), for CodeBuild to wait before it times out any build that has not been marked as completed. The default is 60 minutes.</p>
333    pub fn get_timeout_in_minutes(&self) -> &::std::option::Option<i32> {
334        self.inner.get_timeout_in_minutes()
335    }
336    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
337    pub fn queued_timeout_in_minutes(mut self, input: i32) -> Self {
338        self.inner = self.inner.queued_timeout_in_minutes(input);
339        self
340    }
341    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
342    pub fn set_queued_timeout_in_minutes(mut self, input: ::std::option::Option<i32>) -> Self {
343        self.inner = self.inner.set_queued_timeout_in_minutes(input);
344        self
345    }
346    /// <p>The number of minutes a build is allowed to be queued before it times out.</p>
347    pub fn get_queued_timeout_in_minutes(&self) -> &::std::option::Option<i32> {
348        self.inner.get_queued_timeout_in_minutes()
349    }
350    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p><note>
351    /// <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>
352    /// </note>
353    /// <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>
354    pub fn encryption_key(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
355        self.inner = self.inner.encryption_key(input.into());
356        self
357    }
358    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p><note>
359    /// <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>
360    /// </note>
361    /// <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>
362    pub fn set_encryption_key(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
363        self.inner = self.inner.set_encryption_key(input);
364        self
365    }
366    /// <p>The Key Management Service customer master key (CMK) to be used for encrypting the build output artifacts.</p><note>
367    /// <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>
368    /// </note>
369    /// <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>
370    pub fn get_encryption_key(&self) -> &::std::option::Option<::std::string::String> {
371        self.inner.get_encryption_key()
372    }
373    ///
374    /// Appends an item to `tags`.
375    ///
376    /// To override the contents of this collection use [`set_tags`](Self::set_tags).
377    ///
378    /// <p>A list of tag key and value pairs associated with this build project.</p>
379    /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
380    pub fn tags(mut self, input: crate::types::Tag) -> Self {
381        self.inner = self.inner.tags(input);
382        self
383    }
384    /// <p>A list of tag key and value pairs associated with this build project.</p>
385    /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
386    pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
387        self.inner = self.inner.set_tags(input);
388        self
389    }
390    /// <p>A list of tag key and value pairs associated with this build project.</p>
391    /// <p>These tags are available for use by Amazon Web Services services that support CodeBuild build project tags.</p>
392    pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
393        self.inner.get_tags()
394    }
395    /// <p>VpcConfig enables CodeBuild to access resources in an Amazon VPC.</p><note>
396    /// <p>If you're using compute fleets during project creation, do not provide vpcConfig.</p>
397    /// </note>
398    pub fn vpc_config(mut self, input: crate::types::VpcConfig) -> Self {
399        self.inner = self.inner.vpc_config(input);
400        self
401    }
402    /// <p>VpcConfig enables CodeBuild to access resources in an Amazon VPC.</p><note>
403    /// <p>If you're using compute fleets during project creation, do not provide vpcConfig.</p>
404    /// </note>
405    pub fn set_vpc_config(mut self, input: ::std::option::Option<crate::types::VpcConfig>) -> Self {
406        self.inner = self.inner.set_vpc_config(input);
407        self
408    }
409    /// <p>VpcConfig enables CodeBuild to access resources in an Amazon VPC.</p><note>
410    /// <p>If you're using compute fleets during project creation, do not provide vpcConfig.</p>
411    /// </note>
412    pub fn get_vpc_config(&self) -> &::std::option::Option<crate::types::VpcConfig> {
413        self.inner.get_vpc_config()
414    }
415    /// <p>Set this to true to generate a publicly accessible URL for your project's build badge.</p>
416    pub fn badge_enabled(mut self, input: bool) -> Self {
417        self.inner = self.inner.badge_enabled(input);
418        self
419    }
420    /// <p>Set this to true to generate a publicly accessible URL for your project's build badge.</p>
421    pub fn set_badge_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
422        self.inner = self.inner.set_badge_enabled(input);
423        self
424    }
425    /// <p>Set this to true to generate a publicly accessible URL for your project's build badge.</p>
426    pub fn get_badge_enabled(&self) -> &::std::option::Option<bool> {
427        self.inner.get_badge_enabled()
428    }
429    /// <p>Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.</p>
430    pub fn logs_config(mut self, input: crate::types::LogsConfig) -> Self {
431        self.inner = self.inner.logs_config(input);
432        self
433    }
434    /// <p>Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.</p>
435    pub fn set_logs_config(mut self, input: ::std::option::Option<crate::types::LogsConfig>) -> Self {
436        self.inner = self.inner.set_logs_config(input);
437        self
438    }
439    /// <p>Information about logs for the build project. These can be logs in CloudWatch Logs, logs uploaded to a specified S3 bucket, or both.</p>
440    pub fn get_logs_config(&self) -> &::std::option::Option<crate::types::LogsConfig> {
441        self.inner.get_logs_config()
442    }
443    ///
444    /// Appends an item to `fileSystemLocations`.
445    ///
446    /// To override the contents of this collection use [`set_file_system_locations`](Self::set_file_system_locations).
447    ///
448    /// <p>An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System.</p>
449    pub fn file_system_locations(mut self, input: crate::types::ProjectFileSystemLocation) -> Self {
450        self.inner = self.inner.file_system_locations(input);
451        self
452    }
453    /// <p>An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System.</p>
454    pub fn set_file_system_locations(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::ProjectFileSystemLocation>>) -> Self {
455        self.inner = self.inner.set_file_system_locations(input);
456        self
457    }
458    /// <p>An array of <code>ProjectFileSystemLocation</code> objects for a CodeBuild build project. A <code>ProjectFileSystemLocation</code> object specifies the <code>identifier</code>, <code>location</code>, <code>mountOptions</code>, <code>mountPoint</code>, and <code>type</code> of a file system created using Amazon Elastic File System.</p>
459    pub fn get_file_system_locations(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::ProjectFileSystemLocation>> {
460        self.inner.get_file_system_locations()
461    }
462    /// <p>A <code>ProjectBuildBatchConfig</code> object that defines the batch build options for the project.</p>
463    pub fn build_batch_config(mut self, input: crate::types::ProjectBuildBatchConfig) -> Self {
464        self.inner = self.inner.build_batch_config(input);
465        self
466    }
467    /// <p>A <code>ProjectBuildBatchConfig</code> object that defines the batch build options for the project.</p>
468    pub fn set_build_batch_config(mut self, input: ::std::option::Option<crate::types::ProjectBuildBatchConfig>) -> Self {
469        self.inner = self.inner.set_build_batch_config(input);
470        self
471    }
472    /// <p>A <code>ProjectBuildBatchConfig</code> object that defines the batch build options for the project.</p>
473    pub fn get_build_batch_config(&self) -> &::std::option::Option<crate::types::ProjectBuildBatchConfig> {
474        self.inner.get_build_batch_config()
475    }
476    /// <p>The maximum number of concurrent builds that are allowed for this project.</p>
477    /// <p>New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.</p>
478    pub fn concurrent_build_limit(mut self, input: i32) -> Self {
479        self.inner = self.inner.concurrent_build_limit(input);
480        self
481    }
482    /// <p>The maximum number of concurrent builds that are allowed for this project.</p>
483    /// <p>New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.</p>
484    pub fn set_concurrent_build_limit(mut self, input: ::std::option::Option<i32>) -> Self {
485        self.inner = self.inner.set_concurrent_build_limit(input);
486        self
487    }
488    /// <p>The maximum number of concurrent builds that are allowed for this project.</p>
489    /// <p>New builds are only started if the current number of builds is less than or equal to this limit. If the current build count meets this limit, new builds are throttled and are not run.</p>
490    pub fn get_concurrent_build_limit(&self) -> &::std::option::Option<i32> {
491        self.inner.get_concurrent_build_limit()
492    }
493    /// <p>The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the <code>RetryBuild</code> API to automatically retry your build for up to 2 additional times.</p>
494    pub fn auto_retry_limit(mut self, input: i32) -> Self {
495        self.inner = self.inner.auto_retry_limit(input);
496        self
497    }
498    /// <p>The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the <code>RetryBuild</code> API to automatically retry your build for up to 2 additional times.</p>
499    pub fn set_auto_retry_limit(mut self, input: ::std::option::Option<i32>) -> Self {
500        self.inner = self.inner.set_auto_retry_limit(input);
501        self
502    }
503    /// <p>The maximum number of additional automatic retries after a failed build. For example, if the auto-retry limit is set to 2, CodeBuild will call the <code>RetryBuild</code> API to automatically retry your build for up to 2 additional times.</p>
504    pub fn get_auto_retry_limit(&self) -> &::std::option::Option<i32> {
505        self.inner.get_auto_retry_limit()
506    }
507}