Struct aws_sdk_apprunner::types::builders::SourceCodeVersionBuilder
source · #[non_exhaustive]pub struct SourceCodeVersionBuilder { /* private fields */ }
Expand description
A builder for SourceCodeVersion
.
Implementations§
source§impl SourceCodeVersionBuilder
impl SourceCodeVersionBuilder
sourcepub fn type(self, input: SourceCodeVersionType) -> Self
pub fn type(self, input: SourceCodeVersionType) -> Self
The type of version identifier.
For a git-based repository, branches represent versions.
This field is required.sourcepub fn set_type(self, input: Option<SourceCodeVersionType>) -> Self
pub fn set_type(self, input: Option<SourceCodeVersionType>) -> Self
The type of version identifier.
For a git-based repository, branches represent versions.
sourcepub fn get_type(&self) -> &Option<SourceCodeVersionType>
pub fn get_type(&self) -> &Option<SourceCodeVersionType>
The type of version identifier.
For a git-based repository, branches represent versions.
sourcepub fn value(self, input: impl Into<String>) -> Self
pub fn value(self, input: impl Into<String>) -> Self
A source code version.
For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
This field is required.sourcepub fn set_value(self, input: Option<String>) -> Self
pub fn set_value(self, input: Option<String>) -> Self
A source code version.
For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
sourcepub fn get_value(&self) -> &Option<String>
pub fn get_value(&self) -> &Option<String>
A source code version.
For a git-based repository, a branch name maps to a specific version. App Runner uses the most recent commit to the branch.
sourcepub fn build(self) -> Result<SourceCodeVersion, BuildError>
pub fn build(self) -> Result<SourceCodeVersion, BuildError>
Consumes the builder and constructs a SourceCodeVersion
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SourceCodeVersionBuilder
impl Clone for SourceCodeVersionBuilder
source§fn clone(&self) -> SourceCodeVersionBuilder
fn clone(&self) -> SourceCodeVersionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SourceCodeVersionBuilder
impl Debug for SourceCodeVersionBuilder
source§impl Default for SourceCodeVersionBuilder
impl Default for SourceCodeVersionBuilder
source§fn default() -> SourceCodeVersionBuilder
fn default() -> SourceCodeVersionBuilder
source§impl PartialEq for SourceCodeVersionBuilder
impl PartialEq for SourceCodeVersionBuilder
impl StructuralPartialEq for SourceCodeVersionBuilder
Auto Trait Implementations§
impl Freeze for SourceCodeVersionBuilder
impl RefUnwindSafe for SourceCodeVersionBuilder
impl Send for SourceCodeVersionBuilder
impl Sync for SourceCodeVersionBuilder
impl Unpin for SourceCodeVersionBuilder
impl UnwindSafe for SourceCodeVersionBuilder
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