#[non_exhaustive]pub struct SourceBuildInformationBuilder { /* private fields */ }
Expand description
A builder for SourceBuildInformation
.
Implementations§
source§impl SourceBuildInformationBuilder
impl SourceBuildInformationBuilder
sourcepub fn source_type(self, input: SourceType) -> Self
pub fn source_type(self, input: SourceType) -> Self
The type of repository.
-
Git
-
Zip
sourcepub fn set_source_type(self, input: Option<SourceType>) -> Self
pub fn set_source_type(self, input: Option<SourceType>) -> Self
The type of repository.
-
Git
-
Zip
sourcepub fn get_source_type(&self) -> &Option<SourceType>
pub fn get_source_type(&self) -> &Option<SourceType>
The type of repository.
-
Git
-
Zip
sourcepub fn source_repository(self, input: SourceRepository) -> Self
pub fn source_repository(self, input: SourceRepository) -> Self
Location where the repository is stored.
-
CodeCommit
-
S3
sourcepub fn set_source_repository(self, input: Option<SourceRepository>) -> Self
pub fn set_source_repository(self, input: Option<SourceRepository>) -> Self
Location where the repository is stored.
-
CodeCommit
-
S3
sourcepub fn get_source_repository(&self) -> &Option<SourceRepository>
pub fn get_source_repository(&self) -> &Option<SourceRepository>
Location where the repository is stored.
-
CodeCommit
-
S3
sourcepub fn source_location(self, input: impl Into<String>) -> Self
pub fn source_location(self, input: impl Into<String>) -> Self
The location of the source code, as a formatted string, depending on the value of SourceRepository
-
For
CodeCommit
, the format is the repository name and commit ID, separated by a forward slash. For example,my-git-repo/265cfa0cf6af46153527f55d6503ec030551f57a
. -
For
S3
, the format is the S3 bucket name and object key, separated by a forward slash. For example,my-s3-bucket/Folders/my-source-file
.
sourcepub fn set_source_location(self, input: Option<String>) -> Self
pub fn set_source_location(self, input: Option<String>) -> Self
The location of the source code, as a formatted string, depending on the value of SourceRepository
-
For
CodeCommit
, the format is the repository name and commit ID, separated by a forward slash. For example,my-git-repo/265cfa0cf6af46153527f55d6503ec030551f57a
. -
For
S3
, the format is the S3 bucket name and object key, separated by a forward slash. For example,my-s3-bucket/Folders/my-source-file
.
sourcepub fn get_source_location(&self) -> &Option<String>
pub fn get_source_location(&self) -> &Option<String>
The location of the source code, as a formatted string, depending on the value of SourceRepository
-
For
CodeCommit
, the format is the repository name and commit ID, separated by a forward slash. For example,my-git-repo/265cfa0cf6af46153527f55d6503ec030551f57a
. -
For
S3
, the format is the S3 bucket name and object key, separated by a forward slash. For example,my-s3-bucket/Folders/my-source-file
.
sourcepub fn build(self) -> Result<SourceBuildInformation, BuildError>
pub fn build(self) -> Result<SourceBuildInformation, BuildError>
Consumes the builder and constructs a SourceBuildInformation
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SourceBuildInformationBuilder
impl Clone for SourceBuildInformationBuilder
source§fn clone(&self) -> SourceBuildInformationBuilder
fn clone(&self) -> SourceBuildInformationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for SourceBuildInformationBuilder
impl Default for SourceBuildInformationBuilder
source§fn default() -> SourceBuildInformationBuilder
fn default() -> SourceBuildInformationBuilder
source§impl PartialEq for SourceBuildInformationBuilder
impl PartialEq for SourceBuildInformationBuilder
source§fn eq(&self, other: &SourceBuildInformationBuilder) -> bool
fn eq(&self, other: &SourceBuildInformationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SourceBuildInformationBuilder
Auto Trait Implementations§
impl Freeze for SourceBuildInformationBuilder
impl RefUnwindSafe for SourceBuildInformationBuilder
impl Send for SourceBuildInformationBuilder
impl Sync for SourceBuildInformationBuilder
impl Unpin for SourceBuildInformationBuilder
impl UnwindSafe for SourceBuildInformationBuilder
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> 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