Struct aws_sdk_codebuild::types::builders::BuildBatchBuilder
source · #[non_exhaustive]pub struct BuildBatchBuilder { /* private fields */ }
Expand description
A builder for BuildBatch
.
Implementations§
source§impl BuildBatchBuilder
impl BuildBatchBuilder
sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
The date and time that the batch build started.
sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
The date and time that the batch build started.
sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
The date and time that the batch build started.
sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
The date and time that the batch build ended.
sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
The date and time that the batch build ended.
sourcepub fn current_phase(self, input: impl Into<String>) -> Self
pub fn current_phase(self, input: impl Into<String>) -> Self
The current phase of the batch build.
sourcepub fn set_current_phase(self, input: Option<String>) -> Self
pub fn set_current_phase(self, input: Option<String>) -> Self
The current phase of the batch build.
sourcepub fn get_current_phase(&self) -> &Option<String>
pub fn get_current_phase(&self) -> &Option<String>
The current phase of the batch build.
sourcepub fn build_batch_status(self, input: StatusType) -> Self
pub fn build_batch_status(self, input: StatusType) -> Self
The status of the batch build.
sourcepub fn set_build_batch_status(self, input: Option<StatusType>) -> Self
pub fn set_build_batch_status(self, input: Option<StatusType>) -> Self
The status of the batch build.
sourcepub fn get_build_batch_status(&self) -> &Option<StatusType>
pub fn get_build_batch_status(&self) -> &Option<StatusType>
The status of the batch build.
sourcepub fn source_version(self, input: impl Into<String>) -> Self
pub fn source_version(self, input: impl Into<String>) -> Self
The identifier of the version of the source code to be built.
sourcepub fn set_source_version(self, input: Option<String>) -> Self
pub fn set_source_version(self, input: Option<String>) -> Self
The identifier of the version of the source code to be built.
sourcepub fn get_source_version(&self) -> &Option<String>
pub fn get_source_version(&self) -> &Option<String>
The identifier of the version of the source code to be built.
sourcepub fn resolved_source_version(self, input: impl Into<String>) -> Self
pub fn resolved_source_version(self, input: impl Into<String>) -> Self
The identifier of the resolved version of this batch build's source code.
-
For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
-
For CodePipeline, the source revision provided by CodePipeline.
-
For Amazon S3, this does not apply.
sourcepub fn set_resolved_source_version(self, input: Option<String>) -> Self
pub fn set_resolved_source_version(self, input: Option<String>) -> Self
The identifier of the resolved version of this batch build's source code.
-
For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
-
For CodePipeline, the source revision provided by CodePipeline.
-
For Amazon S3, this does not apply.
sourcepub fn get_resolved_source_version(&self) -> &Option<String>
pub fn get_resolved_source_version(&self) -> &Option<String>
The identifier of the resolved version of this batch build's source code.
-
For CodeCommit, GitHub, GitHub Enterprise, and BitBucket, the commit ID.
-
For CodePipeline, the source revision provided by CodePipeline.
-
For Amazon S3, this does not apply.
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the batch build project.
sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the batch build project.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the batch build project.
sourcepub fn phases(self, input: BuildBatchPhase) -> Self
pub fn phases(self, input: BuildBatchPhase) -> Self
Appends an item to phases
.
To override the contents of this collection use set_phases
.
An array of BuildBatchPhase
objects the specify the phases of the batch build.
sourcepub fn set_phases(self, input: Option<Vec<BuildBatchPhase>>) -> Self
pub fn set_phases(self, input: Option<Vec<BuildBatchPhase>>) -> Self
An array of BuildBatchPhase
objects the specify the phases of the batch build.
sourcepub fn get_phases(&self) -> &Option<Vec<BuildBatchPhase>>
pub fn get_phases(&self) -> &Option<Vec<BuildBatchPhase>>
An array of BuildBatchPhase
objects the specify the phases of the batch build.
sourcepub fn source(self, input: ProjectSource) -> Self
pub fn source(self, input: ProjectSource) -> Self
Information about the build input source code for the build project.
sourcepub fn set_source(self, input: Option<ProjectSource>) -> Self
pub fn set_source(self, input: Option<ProjectSource>) -> Self
Information about the build input source code for the build project.
sourcepub fn get_source(&self) -> &Option<ProjectSource>
pub fn get_source(&self) -> &Option<ProjectSource>
Information about the build input source code for the build project.
sourcepub fn secondary_sources(self, input: ProjectSource) -> Self
pub fn secondary_sources(self, input: ProjectSource) -> Self
Appends an item to secondary_sources
.
To override the contents of this collection use set_secondary_sources
.
An array of ProjectSource
objects that define the sources for the batch build.
sourcepub fn set_secondary_sources(self, input: Option<Vec<ProjectSource>>) -> Self
pub fn set_secondary_sources(self, input: Option<Vec<ProjectSource>>) -> Self
An array of ProjectSource
objects that define the sources for the batch build.
sourcepub fn get_secondary_sources(&self) -> &Option<Vec<ProjectSource>>
pub fn get_secondary_sources(&self) -> &Option<Vec<ProjectSource>>
An array of ProjectSource
objects that define the sources for the batch build.
sourcepub fn secondary_source_versions(self, input: ProjectSourceVersion) -> Self
pub fn secondary_source_versions(self, input: ProjectSourceVersion) -> Self
Appends an item to secondary_source_versions
.
To override the contents of this collection use set_secondary_source_versions
.
An array of ProjectSourceVersion
objects. Each ProjectSourceVersion
must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
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
pr/pull-request-ID
(for example,pr/25
). 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. -
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.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
sourcepub fn set_secondary_source_versions(
self,
input: Option<Vec<ProjectSourceVersion>>
) -> Self
pub fn set_secondary_source_versions( self, input: Option<Vec<ProjectSourceVersion>> ) -> Self
An array of ProjectSourceVersion
objects. Each ProjectSourceVersion
must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
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
pr/pull-request-ID
(for example,pr/25
). 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. -
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.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
sourcepub fn get_secondary_source_versions(
&self
) -> &Option<Vec<ProjectSourceVersion>>
pub fn get_secondary_source_versions( &self ) -> &Option<Vec<ProjectSourceVersion>>
An array of ProjectSourceVersion
objects. Each ProjectSourceVersion
must be one of:
-
For CodeCommit: the commit ID, branch, or Git tag to use.
-
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
pr/pull-request-ID
(for example,pr/25
). 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. -
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.
-
For Amazon S3: the version ID of the object that represents the build input ZIP file to use.
sourcepub fn artifacts(self, input: BuildArtifacts) -> Self
pub fn artifacts(self, input: BuildArtifacts) -> Self
A BuildArtifacts
object the defines the build artifacts for this batch build.
sourcepub fn set_artifacts(self, input: Option<BuildArtifacts>) -> Self
pub fn set_artifacts(self, input: Option<BuildArtifacts>) -> Self
A BuildArtifacts
object the defines the build artifacts for this batch build.
sourcepub fn get_artifacts(&self) -> &Option<BuildArtifacts>
pub fn get_artifacts(&self) -> &Option<BuildArtifacts>
A BuildArtifacts
object the defines the build artifacts for this batch build.
sourcepub fn secondary_artifacts(self, input: BuildArtifacts) -> Self
pub fn secondary_artifacts(self, input: BuildArtifacts) -> Self
Appends an item to secondary_artifacts
.
To override the contents of this collection use set_secondary_artifacts
.
An array of BuildArtifacts
objects the define the build artifacts for this batch build.
sourcepub fn set_secondary_artifacts(self, input: Option<Vec<BuildArtifacts>>) -> Self
pub fn set_secondary_artifacts(self, input: Option<Vec<BuildArtifacts>>) -> Self
An array of BuildArtifacts
objects the define the build artifacts for this batch build.
sourcepub fn get_secondary_artifacts(&self) -> &Option<Vec<BuildArtifacts>>
pub fn get_secondary_artifacts(&self) -> &Option<Vec<BuildArtifacts>>
An array of BuildArtifacts
objects the define the build artifacts for this batch build.
sourcepub fn cache(self, input: ProjectCache) -> Self
pub fn cache(self, input: ProjectCache) -> Self
Information about the cache for the build project.
sourcepub fn set_cache(self, input: Option<ProjectCache>) -> Self
pub fn set_cache(self, input: Option<ProjectCache>) -> Self
Information about the cache for the build project.
sourcepub fn get_cache(&self) -> &Option<ProjectCache>
pub fn get_cache(&self) -> &Option<ProjectCache>
Information about the cache for the build project.
sourcepub fn environment(self, input: ProjectEnvironment) -> Self
pub fn environment(self, input: ProjectEnvironment) -> Self
Information about the build environment of the build project.
sourcepub fn set_environment(self, input: Option<ProjectEnvironment>) -> Self
pub fn set_environment(self, input: Option<ProjectEnvironment>) -> Self
Information about the build environment of the build project.
sourcepub fn get_environment(&self) -> &Option<ProjectEnvironment>
pub fn get_environment(&self) -> &Option<ProjectEnvironment>
Information about the build environment of the build project.
sourcepub fn service_role(self, input: impl Into<String>) -> Self
pub fn service_role(self, input: impl Into<String>) -> Self
The name of a service role used for builds in the batch.
sourcepub fn set_service_role(self, input: Option<String>) -> Self
pub fn set_service_role(self, input: Option<String>) -> Self
The name of a service role used for builds in the batch.
sourcepub fn get_service_role(&self) -> &Option<String>
pub fn get_service_role(&self) -> &Option<String>
The name of a service role used for builds in the batch.
sourcepub fn log_config(self, input: LogsConfig) -> Self
pub fn log_config(self, input: LogsConfig) -> Self
Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both.
sourcepub fn set_log_config(self, input: Option<LogsConfig>) -> Self
pub fn set_log_config(self, input: Option<LogsConfig>) -> Self
Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both.
sourcepub fn get_log_config(&self) -> &Option<LogsConfig>
pub fn get_log_config(&self) -> &Option<LogsConfig>
Information about logs for a build project. These can be logs in CloudWatch Logs, built in a specified S3 bucket, or both.
sourcepub fn build_timeout_in_minutes(self, input: i32) -> Self
pub fn build_timeout_in_minutes(self, input: i32) -> Self
Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.
sourcepub fn set_build_timeout_in_minutes(self, input: Option<i32>) -> Self
pub fn set_build_timeout_in_minutes(self, input: Option<i32>) -> Self
Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.
sourcepub fn get_build_timeout_in_minutes(&self) -> &Option<i32>
pub fn get_build_timeout_in_minutes(&self) -> &Option<i32>
Specifies the maximum amount of time, in minutes, that the build in a batch must be completed in.
sourcepub fn queued_timeout_in_minutes(self, input: i32) -> Self
pub fn queued_timeout_in_minutes(self, input: i32) -> Self
Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.
sourcepub fn set_queued_timeout_in_minutes(self, input: Option<i32>) -> Self
pub fn set_queued_timeout_in_minutes(self, input: Option<i32>) -> Self
Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.
sourcepub fn get_queued_timeout_in_minutes(&self) -> &Option<i32>
pub fn get_queued_timeout_in_minutes(&self) -> &Option<i32>
Specifies the amount of time, in minutes, that the batch build is allowed to be queued before it times out.
sourcepub fn set_complete(self, input: Option<bool>) -> Self
pub fn set_complete(self, input: Option<bool>) -> Self
Indicates if the batch build is complete.
sourcepub fn get_complete(&self) -> &Option<bool>
pub fn get_complete(&self) -> &Option<bool>
Indicates if the batch build is complete.
sourcepub fn initiator(self, input: impl Into<String>) -> Self
pub fn initiator(self, input: impl Into<String>) -> Self
The entity that started the batch build. Valid values include:
-
If CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline
). -
If a user started the build, the user's name.
-
If the Jenkins plugin for CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin
.
sourcepub fn set_initiator(self, input: Option<String>) -> Self
pub fn set_initiator(self, input: Option<String>) -> Self
The entity that started the batch build. Valid values include:
-
If CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline
). -
If a user started the build, the user's name.
-
If the Jenkins plugin for CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin
.
sourcepub fn get_initiator(&self) -> &Option<String>
pub fn get_initiator(&self) -> &Option<String>
The entity that started the batch build. Valid values include:
-
If CodePipeline started the build, the pipeline's name (for example,
codepipeline/my-demo-pipeline
). -
If a user started the build, the user's name.
-
If the Jenkins plugin for CodeBuild started the build, the string
CodeBuild-Jenkins-Plugin
.
sourcepub fn vpc_config(self, input: VpcConfig) -> Self
pub fn vpc_config(self, input: VpcConfig) -> Self
Information about the VPC configuration that CodeBuild accesses.
sourcepub fn set_vpc_config(self, input: Option<VpcConfig>) -> Self
pub fn set_vpc_config(self, input: Option<VpcConfig>) -> Self
Information about the VPC configuration that CodeBuild accesses.
sourcepub fn get_vpc_config(&self) -> &Option<VpcConfig>
pub fn get_vpc_config(&self) -> &Option<VpcConfig>
Information about the VPC configuration that CodeBuild accesses.
sourcepub fn encryption_key(self, input: impl Into<String>) -> Self
pub fn encryption_key(self, input: impl Into<String>) -> Self
The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/
).
sourcepub fn set_encryption_key(self, input: Option<String>) -> Self
pub fn set_encryption_key(self, input: Option<String>) -> Self
The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/
).
sourcepub fn get_encryption_key(&self) -> &Option<String>
pub fn get_encryption_key(&self) -> &Option<String>
The Key Management Service customer master key (CMK) to be used for encrypting the batch build output artifacts.
You can use a cross-account KMS key to encrypt the build output artifacts if your service role has permission to that key.
You can specify either the Amazon Resource Name (ARN) of the CMK or, if available, the CMK's alias (using the format alias/
).
sourcepub fn build_batch_number(self, input: i64) -> Self
pub fn build_batch_number(self, input: i64) -> Self
The number of the batch build. For each project, the buildBatchNumber
of its first batch build is 1
. The buildBatchNumber
of each subsequent batch build is incremented by 1
. If a batch build is deleted, the buildBatchNumber
of other batch builds does not change.
sourcepub fn set_build_batch_number(self, input: Option<i64>) -> Self
pub fn set_build_batch_number(self, input: Option<i64>) -> Self
The number of the batch build. For each project, the buildBatchNumber
of its first batch build is 1
. The buildBatchNumber
of each subsequent batch build is incremented by 1
. If a batch build is deleted, the buildBatchNumber
of other batch builds does not change.
sourcepub fn get_build_batch_number(&self) -> &Option<i64>
pub fn get_build_batch_number(&self) -> &Option<i64>
The number of the batch build. For each project, the buildBatchNumber
of its first batch build is 1
. The buildBatchNumber
of each subsequent batch build is incremented by 1
. If a batch build is deleted, the buildBatchNumber
of other batch builds does not change.
sourcepub fn file_system_locations(self, input: ProjectFileSystemLocation) -> Self
pub fn file_system_locations(self, input: ProjectFileSystemLocation) -> Self
Appends an item to file_system_locations
.
To override the contents of this collection use set_file_system_locations
.
An array of ProjectFileSystemLocation
objects for the batch build project. A ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using Amazon Elastic File System.
sourcepub fn set_file_system_locations(
self,
input: Option<Vec<ProjectFileSystemLocation>>
) -> Self
pub fn set_file_system_locations( self, input: Option<Vec<ProjectFileSystemLocation>> ) -> Self
An array of ProjectFileSystemLocation
objects for the batch build project. A ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using Amazon Elastic File System.
sourcepub fn get_file_system_locations(
&self
) -> &Option<Vec<ProjectFileSystemLocation>>
pub fn get_file_system_locations( &self ) -> &Option<Vec<ProjectFileSystemLocation>>
An array of ProjectFileSystemLocation
objects for the batch build project. A ProjectFileSystemLocation
object specifies the identifier
, location
, mountOptions
, mountPoint
, and type
of a file system created using Amazon Elastic File System.
sourcepub fn build_batch_config(self, input: ProjectBuildBatchConfig) -> Self
pub fn build_batch_config(self, input: ProjectBuildBatchConfig) -> Self
Contains configuration information about a batch build project.
sourcepub fn set_build_batch_config(
self,
input: Option<ProjectBuildBatchConfig>
) -> Self
pub fn set_build_batch_config( self, input: Option<ProjectBuildBatchConfig> ) -> Self
Contains configuration information about a batch build project.
sourcepub fn get_build_batch_config(&self) -> &Option<ProjectBuildBatchConfig>
pub fn get_build_batch_config(&self) -> &Option<ProjectBuildBatchConfig>
Contains configuration information about a batch build project.
sourcepub fn build_groups(self, input: BuildGroup) -> Self
pub fn build_groups(self, input: BuildGroup) -> Self
Appends an item to build_groups
.
To override the contents of this collection use set_build_groups
.
An array of BuildGroup
objects that define the build groups for the batch build.
sourcepub fn set_build_groups(self, input: Option<Vec<BuildGroup>>) -> Self
pub fn set_build_groups(self, input: Option<Vec<BuildGroup>>) -> Self
An array of BuildGroup
objects that define the build groups for the batch build.
sourcepub fn get_build_groups(&self) -> &Option<Vec<BuildGroup>>
pub fn get_build_groups(&self) -> &Option<Vec<BuildGroup>>
An array of BuildGroup
objects that define the build groups for the batch build.
sourcepub fn debug_session_enabled(self, input: bool) -> Self
pub fn debug_session_enabled(self, input: bool) -> Self
Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.
sourcepub fn set_debug_session_enabled(self, input: Option<bool>) -> Self
pub fn set_debug_session_enabled(self, input: Option<bool>) -> Self
Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.
sourcepub fn get_debug_session_enabled(&self) -> &Option<bool>
pub fn get_debug_session_enabled(&self) -> &Option<bool>
Specifies if session debugging is enabled for this batch build. For more information, see Viewing a running build in Session Manager. Batch session debugging is not supported for matrix batch builds.
sourcepub fn build(self) -> BuildBatch
pub fn build(self) -> BuildBatch
Consumes the builder and constructs a BuildBatch
.
Trait Implementations§
source§impl Clone for BuildBatchBuilder
impl Clone for BuildBatchBuilder
source§fn clone(&self) -> BuildBatchBuilder
fn clone(&self) -> BuildBatchBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for BuildBatchBuilder
impl Debug for BuildBatchBuilder
source§impl Default for BuildBatchBuilder
impl Default for BuildBatchBuilder
source§fn default() -> BuildBatchBuilder
fn default() -> BuildBatchBuilder
source§impl PartialEq for BuildBatchBuilder
impl PartialEq for BuildBatchBuilder
source§fn eq(&self, other: &BuildBatchBuilder) -> bool
fn eq(&self, other: &BuildBatchBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.