#[non_exhaustive]pub struct CodeStarParametersBuilder { /* private fields */ }
Expand description
A builder for CodeStarParameters
.
Implementations§
source§impl CodeStarParametersBuilder
impl CodeStarParametersBuilder
sourcepub fn connection_arn(self, input: impl Into<String>) -> Self
pub fn connection_arn(self, input: impl Into<String>) -> Self
The CodeStar ARN, which is the connection between Service Catalog and the external repository.
This field is required.sourcepub fn set_connection_arn(self, input: Option<String>) -> Self
pub fn set_connection_arn(self, input: Option<String>) -> Self
The CodeStar ARN, which is the connection between Service Catalog and the external repository.
sourcepub fn get_connection_arn(&self) -> &Option<String>
pub fn get_connection_arn(&self) -> &Option<String>
The CodeStar ARN, which is the connection between Service Catalog and the external repository.
sourcepub fn repository(self, input: impl Into<String>) -> Self
pub fn repository(self, input: impl Into<String>) -> Self
The specific repository where the product’s artifact-to-be-synced resides, formatted as "Account/Repo."
This field is required.sourcepub fn set_repository(self, input: Option<String>) -> Self
pub fn set_repository(self, input: Option<String>) -> Self
The specific repository where the product’s artifact-to-be-synced resides, formatted as "Account/Repo."
sourcepub fn get_repository(&self) -> &Option<String>
pub fn get_repository(&self) -> &Option<String>
The specific repository where the product’s artifact-to-be-synced resides, formatted as "Account/Repo."
sourcepub fn branch(self, input: impl Into<String>) -> Self
pub fn branch(self, input: impl Into<String>) -> Self
The specific branch where the artifact resides.
This field is required.sourcepub fn set_branch(self, input: Option<String>) -> Self
pub fn set_branch(self, input: Option<String>) -> Self
The specific branch where the artifact resides.
sourcepub fn get_branch(&self) -> &Option<String>
pub fn get_branch(&self) -> &Option<String>
The specific branch where the artifact resides.
sourcepub fn artifact_path(self, input: impl Into<String>) -> Self
pub fn artifact_path(self, input: impl Into<String>) -> Self
The absolute path wehre the artifact resides within the repo and branch, formatted as "folder/file.json."
This field is required.sourcepub fn set_artifact_path(self, input: Option<String>) -> Self
pub fn set_artifact_path(self, input: Option<String>) -> Self
The absolute path wehre the artifact resides within the repo and branch, formatted as "folder/file.json."
sourcepub fn get_artifact_path(&self) -> &Option<String>
pub fn get_artifact_path(&self) -> &Option<String>
The absolute path wehre the artifact resides within the repo and branch, formatted as "folder/file.json."
sourcepub fn build(self) -> Result<CodeStarParameters, BuildError>
pub fn build(self) -> Result<CodeStarParameters, BuildError>
Consumes the builder and constructs a CodeStarParameters
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for CodeStarParametersBuilder
impl Clone for CodeStarParametersBuilder
source§fn clone(&self) -> CodeStarParametersBuilder
fn clone(&self) -> CodeStarParametersBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for CodeStarParametersBuilder
impl Debug for CodeStarParametersBuilder
source§impl Default for CodeStarParametersBuilder
impl Default for CodeStarParametersBuilder
source§fn default() -> CodeStarParametersBuilder
fn default() -> CodeStarParametersBuilder
source§impl PartialEq for CodeStarParametersBuilder
impl PartialEq for CodeStarParametersBuilder
source§fn eq(&self, other: &CodeStarParametersBuilder) -> bool
fn eq(&self, other: &CodeStarParametersBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CodeStarParametersBuilder
Auto Trait Implementations§
impl Freeze for CodeStarParametersBuilder
impl RefUnwindSafe for CodeStarParametersBuilder
impl Send for CodeStarParametersBuilder
impl Sync for CodeStarParametersBuilder
impl Unpin for CodeStarParametersBuilder
impl UnwindSafe for CodeStarParametersBuilder
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