#[non_exhaustive]pub struct PipelineExecutionBuilder { /* private fields */ }
Expand description
A builder for PipelineExecution
.
Implementations§
source§impl PipelineExecutionBuilder
impl PipelineExecutionBuilder
sourcepub fn pipeline_name(self, input: impl Into<String>) -> Self
pub fn pipeline_name(self, input: impl Into<String>) -> Self
The name of the pipeline with the specified pipeline execution.
sourcepub fn set_pipeline_name(self, input: Option<String>) -> Self
pub fn set_pipeline_name(self, input: Option<String>) -> Self
The name of the pipeline with the specified pipeline execution.
sourcepub fn get_pipeline_name(&self) -> &Option<String>
pub fn get_pipeline_name(&self) -> &Option<String>
The name of the pipeline with the specified pipeline execution.
sourcepub fn pipeline_version(self, input: i32) -> Self
pub fn pipeline_version(self, input: i32) -> Self
The version number of the pipeline with the specified pipeline execution.
sourcepub fn set_pipeline_version(self, input: Option<i32>) -> Self
pub fn set_pipeline_version(self, input: Option<i32>) -> Self
The version number of the pipeline with the specified pipeline execution.
sourcepub fn get_pipeline_version(&self) -> &Option<i32>
pub fn get_pipeline_version(&self) -> &Option<i32>
The version number of the pipeline with the specified pipeline execution.
sourcepub fn pipeline_execution_id(self, input: impl Into<String>) -> Self
pub fn pipeline_execution_id(self, input: impl Into<String>) -> Self
The ID of the pipeline execution.
sourcepub fn set_pipeline_execution_id(self, input: Option<String>) -> Self
pub fn set_pipeline_execution_id(self, input: Option<String>) -> Self
The ID of the pipeline execution.
sourcepub fn get_pipeline_execution_id(&self) -> &Option<String>
pub fn get_pipeline_execution_id(&self) -> &Option<String>
The ID of the pipeline execution.
sourcepub fn status(self, input: PipelineExecutionStatus) -> Self
pub fn status(self, input: PipelineExecutionStatus) -> Self
The status of the pipeline execution.
-
Cancelled: The pipeline’s definition was updated before the pipeline execution could be completed.
-
InProgress: The pipeline execution is currently running.
-
Stopped: The pipeline execution was manually stopped. For more information, see Stopped Executions.
-
Stopping: The pipeline execution received a request to be manually stopped. Depending on the selected stop mode, the execution is either completing or abandoning in-progress actions. For more information, see Stopped Executions.
-
Succeeded: The pipeline execution was completed successfully.
-
Superseded: While this pipeline execution was waiting for the next stage to be completed, a newer pipeline execution advanced and continued through the pipeline instead. For more information, see Superseded Executions.
-
Failed: The pipeline execution was not completed successfully.
sourcepub fn set_status(self, input: Option<PipelineExecutionStatus>) -> Self
pub fn set_status(self, input: Option<PipelineExecutionStatus>) -> Self
The status of the pipeline execution.
-
Cancelled: The pipeline’s definition was updated before the pipeline execution could be completed.
-
InProgress: The pipeline execution is currently running.
-
Stopped: The pipeline execution was manually stopped. For more information, see Stopped Executions.
-
Stopping: The pipeline execution received a request to be manually stopped. Depending on the selected stop mode, the execution is either completing or abandoning in-progress actions. For more information, see Stopped Executions.
-
Succeeded: The pipeline execution was completed successfully.
-
Superseded: While this pipeline execution was waiting for the next stage to be completed, a newer pipeline execution advanced and continued through the pipeline instead. For more information, see Superseded Executions.
-
Failed: The pipeline execution was not completed successfully.
sourcepub fn get_status(&self) -> &Option<PipelineExecutionStatus>
pub fn get_status(&self) -> &Option<PipelineExecutionStatus>
The status of the pipeline execution.
-
Cancelled: The pipeline’s definition was updated before the pipeline execution could be completed.
-
InProgress: The pipeline execution is currently running.
-
Stopped: The pipeline execution was manually stopped. For more information, see Stopped Executions.
-
Stopping: The pipeline execution received a request to be manually stopped. Depending on the selected stop mode, the execution is either completing or abandoning in-progress actions. For more information, see Stopped Executions.
-
Succeeded: The pipeline execution was completed successfully.
-
Superseded: While this pipeline execution was waiting for the next stage to be completed, a newer pipeline execution advanced and continued through the pipeline instead. For more information, see Superseded Executions.
-
Failed: The pipeline execution was not completed successfully.
sourcepub fn status_summary(self, input: impl Into<String>) -> Self
pub fn status_summary(self, input: impl Into<String>) -> Self
A summary that contains a description of the pipeline execution status.
sourcepub fn set_status_summary(self, input: Option<String>) -> Self
pub fn set_status_summary(self, input: Option<String>) -> Self
A summary that contains a description of the pipeline execution status.
sourcepub fn get_status_summary(&self) -> &Option<String>
pub fn get_status_summary(&self) -> &Option<String>
A summary that contains a description of the pipeline execution status.
sourcepub fn artifact_revisions(self, input: ArtifactRevision) -> Self
pub fn artifact_revisions(self, input: ArtifactRevision) -> Self
Appends an item to artifact_revisions
.
To override the contents of this collection use set_artifact_revisions
.
A list of ArtifactRevision
objects included in a pipeline execution.
sourcepub fn set_artifact_revisions(
self,
input: Option<Vec<ArtifactRevision>>
) -> Self
pub fn set_artifact_revisions( self, input: Option<Vec<ArtifactRevision>> ) -> Self
A list of ArtifactRevision
objects included in a pipeline execution.
sourcepub fn get_artifact_revisions(&self) -> &Option<Vec<ArtifactRevision>>
pub fn get_artifact_revisions(&self) -> &Option<Vec<ArtifactRevision>>
A list of ArtifactRevision
objects included in a pipeline execution.
sourcepub fn variables(self, input: ResolvedPipelineVariable) -> Self
pub fn variables(self, input: ResolvedPipelineVariable) -> Self
Appends an item to variables
.
To override the contents of this collection use set_variables
.
A list of pipeline variables used for the pipeline execution.
sourcepub fn set_variables(self, input: Option<Vec<ResolvedPipelineVariable>>) -> Self
pub fn set_variables(self, input: Option<Vec<ResolvedPipelineVariable>>) -> Self
A list of pipeline variables used for the pipeline execution.
sourcepub fn get_variables(&self) -> &Option<Vec<ResolvedPipelineVariable>>
pub fn get_variables(&self) -> &Option<Vec<ResolvedPipelineVariable>>
A list of pipeline variables used for the pipeline execution.
sourcepub fn trigger(self, input: ExecutionTrigger) -> Self
pub fn trigger(self, input: ExecutionTrigger) -> Self
The interaction or event that started a pipeline execution.
sourcepub fn set_trigger(self, input: Option<ExecutionTrigger>) -> Self
pub fn set_trigger(self, input: Option<ExecutionTrigger>) -> Self
The interaction or event that started a pipeline execution.
sourcepub fn get_trigger(&self) -> &Option<ExecutionTrigger>
pub fn get_trigger(&self) -> &Option<ExecutionTrigger>
The interaction or event that started a pipeline execution.
sourcepub fn execution_mode(self, input: ExecutionMode) -> Self
pub fn execution_mode(self, input: ExecutionMode) -> Self
The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
sourcepub fn set_execution_mode(self, input: Option<ExecutionMode>) -> Self
pub fn set_execution_mode(self, input: Option<ExecutionMode>) -> Self
The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
sourcepub fn get_execution_mode(&self) -> &Option<ExecutionMode>
pub fn get_execution_mode(&self) -> &Option<ExecutionMode>
The method that the pipeline will use to handle multiple executions. The default mode is SUPERSEDED.
sourcepub fn build(self) -> PipelineExecution
pub fn build(self) -> PipelineExecution
Consumes the builder and constructs a PipelineExecution
.
Trait Implementations§
source§impl Clone for PipelineExecutionBuilder
impl Clone for PipelineExecutionBuilder
source§fn clone(&self) -> PipelineExecutionBuilder
fn clone(&self) -> PipelineExecutionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for PipelineExecutionBuilder
impl Debug for PipelineExecutionBuilder
source§impl Default for PipelineExecutionBuilder
impl Default for PipelineExecutionBuilder
source§fn default() -> PipelineExecutionBuilder
fn default() -> PipelineExecutionBuilder
source§impl PartialEq for PipelineExecutionBuilder
impl PartialEq for PipelineExecutionBuilder
source§fn eq(&self, other: &PipelineExecutionBuilder) -> bool
fn eq(&self, other: &PipelineExecutionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.