#[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 ==
.impl StructuralPartialEq for SourceRevisionOverrideBuilder
Auto Trait Implementations§
impl Freeze for SourceRevisionOverrideBuilder
impl RefUnwindSafe for SourceRevisionOverrideBuilder
impl Send for SourceRevisionOverrideBuilder
impl Sync for SourceRevisionOverrideBuilder
impl Unpin for SourceRevisionOverrideBuilder
impl UnwindSafe for SourceRevisionOverrideBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more