#[non_exhaustive]pub struct SourceRevisionOverrideBuilder { /* private fields */ }
Expand description
A builder for SourceRevisionOverride
.
Implementations§
source§impl SourceRevisionOverrideBuilder
impl SourceRevisionOverrideBuilder
sourcepub fn action_name(self, input: impl Into<String>) -> Self
pub fn action_name(self, input: impl Into<String>) -> Self
The name of the action where the override will be applied.
This field is required.sourcepub fn set_action_name(self, input: Option<String>) -> Self
pub fn set_action_name(self, input: Option<String>) -> Self
The name of the action where the override will be applied.
sourcepub fn get_action_name(&self) -> &Option<String>
pub fn get_action_name(&self) -> &Option<String>
The name of the action where the override will be applied.
sourcepub fn revision_type(self, input: SourceRevisionType) -> Self
pub fn revision_type(self, input: SourceRevisionType) -> Self
The type of source revision, based on the source provider. For example, the revision type for the CodeCommit action provider is the commit ID.
This field is required.sourcepub fn set_revision_type(self, input: Option<SourceRevisionType>) -> Self
pub fn set_revision_type(self, input: Option<SourceRevisionType>) -> Self
The type of source revision, based on the source provider. For example, the revision type for the CodeCommit action provider is the commit ID.
sourcepub fn get_revision_type(&self) -> &Option<SourceRevisionType>
pub fn get_revision_type(&self) -> &Option<SourceRevisionType>
The type of source revision, based on the source provider. For example, the revision type for the CodeCommit action provider is the commit ID.
sourcepub fn revision_value(self, input: impl Into<String>) -> Self
pub fn revision_value(self, input: impl Into<String>) -> Self
The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.
This field is required.sourcepub fn set_revision_value(self, input: Option<String>) -> Self
pub fn set_revision_value(self, input: Option<String>) -> Self
The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.
sourcepub fn get_revision_value(&self) -> &Option<String>
pub fn get_revision_value(&self) -> &Option<String>
The source revision, or version of your source artifact, with the changes that you want to run in the pipeline execution.
sourcepub fn build(self) -> Result<SourceRevisionOverride, BuildError>
pub fn build(self) -> Result<SourceRevisionOverride, BuildError>
Consumes the builder and constructs a SourceRevisionOverride
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SourceRevisionOverrideBuilder
impl Clone for SourceRevisionOverrideBuilder
source§fn clone(&self) -> SourceRevisionOverrideBuilder
fn clone(&self) -> SourceRevisionOverrideBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SourceRevisionOverrideBuilder
impl Default for SourceRevisionOverrideBuilder
source§fn default() -> SourceRevisionOverrideBuilder
fn default() -> SourceRevisionOverrideBuilder
source§impl PartialEq for SourceRevisionOverrideBuilder
impl PartialEq for SourceRevisionOverrideBuilder
source§fn eq(&self, other: &SourceRevisionOverrideBuilder) -> bool
fn eq(&self, other: &SourceRevisionOverrideBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.