#[non_exhaustive]pub struct CreateBranchInputBuilder { /* private fields */ }Expand description
A builder for CreateBranchInput.
Implementations§
source§impl CreateBranchInputBuilder
 
impl CreateBranchInputBuilder
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
 
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository in which you want to create the new branch.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
 
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository in which you want to create the new branch.
sourcepub fn get_repository_name(&self) -> &Option<String>
 
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository in which you want to create the new branch.
sourcepub fn branch_name(self, input: impl Into<String>) -> Self
 
pub fn branch_name(self, input: impl Into<String>) -> Self
The name of the new branch to create.
sourcepub fn set_branch_name(self, input: Option<String>) -> Self
 
pub fn set_branch_name(self, input: Option<String>) -> Self
The name of the new branch to create.
sourcepub fn get_branch_name(&self) -> &Option<String>
 
pub fn get_branch_name(&self) -> &Option<String>
The name of the new branch to create.
sourcepub fn commit_id(self, input: impl Into<String>) -> Self
 
pub fn commit_id(self, input: impl Into<String>) -> Self
The ID of the commit to point the new branch to.
sourcepub fn set_commit_id(self, input: Option<String>) -> Self
 
pub fn set_commit_id(self, input: Option<String>) -> Self
The ID of the commit to point the new branch to.
sourcepub fn get_commit_id(&self) -> &Option<String>
 
pub fn get_commit_id(&self) -> &Option<String>
The ID of the commit to point the new branch to.
sourcepub fn build(self) -> Result<CreateBranchInput, BuildError>
 
pub fn build(self) -> Result<CreateBranchInput, BuildError>
Consumes the builder and constructs a CreateBranchInput.
source§impl CreateBranchInputBuilder
 
impl CreateBranchInputBuilder
sourcepub async fn send_with(
    self,
    client: &Client
) -> Result<CreateBranchOutput, SdkError<CreateBranchError, HttpResponse>>
 
pub async fn send_with( self, client: &Client ) -> Result<CreateBranchOutput, SdkError<CreateBranchError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateBranchInputBuilder
 
impl Clone for CreateBranchInputBuilder
source§fn clone(&self) -> CreateBranchInputBuilder
 
fn clone(&self) -> CreateBranchInputBuilder
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from 
source. Read moresource§impl Debug for CreateBranchInputBuilder
 
impl Debug for CreateBranchInputBuilder
source§impl Default for CreateBranchInputBuilder
 
impl Default for CreateBranchInputBuilder
source§fn default() -> CreateBranchInputBuilder
 
fn default() -> CreateBranchInputBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CreateBranchInputBuilder> for CreateBranchInputBuilder
 
impl PartialEq<CreateBranchInputBuilder> for CreateBranchInputBuilder
source§fn eq(&self, other: &CreateBranchInputBuilder) -> bool
 
fn eq(&self, other: &CreateBranchInputBuilder) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CreateBranchInputBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CreateBranchInputBuilder
impl Send for CreateBranchInputBuilder
impl Sync for CreateBranchInputBuilder
impl Unpin for CreateBranchInputBuilder
impl UnwindSafe for CreateBranchInputBuilder
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
Mutably borrows from an owned value. Read more