Struct aws_sdk_codecatalyst::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchInputBuilder
source · #[non_exhaustive]pub struct CreateSourceRepositoryBranchInputBuilder { /* private fields */ }
Expand description
A builder for CreateSourceRepositoryBranchInput
.
Implementations§
source§impl CreateSourceRepositoryBranchInputBuilder
impl CreateSourceRepositoryBranchInputBuilder
sourcepub fn space_name(self, input: impl Into<String>) -> Self
pub fn space_name(self, input: impl Into<String>) -> Self
The name of the space.
This field is required.sourcepub fn set_space_name(self, input: Option<String>) -> Self
pub fn set_space_name(self, input: Option<String>) -> Self
The name of the space.
sourcepub fn get_space_name(&self) -> &Option<String>
pub fn get_space_name(&self) -> &Option<String>
The name of the space.
sourcepub fn project_name(self, input: impl Into<String>) -> Self
pub fn project_name(self, input: impl Into<String>) -> Self
The name of the project in the space.
This field is required.sourcepub fn set_project_name(self, input: Option<String>) -> Self
pub fn set_project_name(self, input: Option<String>) -> Self
The name of the project in the space.
sourcepub fn get_project_name(&self) -> &Option<String>
pub fn get_project_name(&self) -> &Option<String>
The name of the project in the space.
sourcepub fn source_repository_name(self, input: impl Into<String>) -> Self
pub fn source_repository_name(self, input: impl Into<String>) -> Self
The name of the repository where you want to create a branch.
This field is required.sourcepub fn set_source_repository_name(self, input: Option<String>) -> Self
pub fn set_source_repository_name(self, input: Option<String>) -> Self
The name of the repository where you want to create a branch.
sourcepub fn get_source_repository_name(&self) -> &Option<String>
pub fn get_source_repository_name(&self) -> &Option<String>
The name of the repository where you want to create a branch.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name for the branch you're creating.
This field is required.sourcepub fn head_commit_id(self, input: impl Into<String>) -> Self
pub fn head_commit_id(self, input: impl Into<String>) -> Self
The commit ID in an existing branch from which you want to create the new branch.
sourcepub fn set_head_commit_id(self, input: Option<String>) -> Self
pub fn set_head_commit_id(self, input: Option<String>) -> Self
The commit ID in an existing branch from which you want to create the new branch.
sourcepub fn get_head_commit_id(&self) -> &Option<String>
pub fn get_head_commit_id(&self) -> &Option<String>
The commit ID in an existing branch from which you want to create the new branch.
sourcepub fn build(self) -> Result<CreateSourceRepositoryBranchInput, BuildError>
pub fn build(self) -> Result<CreateSourceRepositoryBranchInput, BuildError>
Consumes the builder and constructs a CreateSourceRepositoryBranchInput
.
source§impl CreateSourceRepositoryBranchInputBuilder
impl CreateSourceRepositoryBranchInputBuilder
sourcepub async fn send_with(
self,
client: &Client
) -> Result<CreateSourceRepositoryBranchOutput, SdkError<CreateSourceRepositoryBranchError, HttpResponse>>
pub async fn send_with( self, client: &Client ) -> Result<CreateSourceRepositoryBranchOutput, SdkError<CreateSourceRepositoryBranchError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateSourceRepositoryBranchInputBuilder
impl Clone for CreateSourceRepositoryBranchInputBuilder
source§fn clone(&self) -> CreateSourceRepositoryBranchInputBuilder
fn clone(&self) -> CreateSourceRepositoryBranchInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateSourceRepositoryBranchInputBuilder
impl Default for CreateSourceRepositoryBranchInputBuilder
source§fn default() -> CreateSourceRepositoryBranchInputBuilder
fn default() -> CreateSourceRepositoryBranchInputBuilder
source§impl PartialEq for CreateSourceRepositoryBranchInputBuilder
impl PartialEq for CreateSourceRepositoryBranchInputBuilder
source§fn eq(&self, other: &CreateSourceRepositoryBranchInputBuilder) -> bool
fn eq(&self, other: &CreateSourceRepositoryBranchInputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateSourceRepositoryBranchInputBuilder
Auto Trait Implementations§
impl Freeze for CreateSourceRepositoryBranchInputBuilder
impl RefUnwindSafe for CreateSourceRepositoryBranchInputBuilder
impl Send for CreateSourceRepositoryBranchInputBuilder
impl Sync for CreateSourceRepositoryBranchInputBuilder
impl Unpin for CreateSourceRepositoryBranchInputBuilder
impl UnwindSafe for CreateSourceRepositoryBranchInputBuilder
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