Struct aws_sdk_codecommit::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder
source · pub struct UpdateDefaultBranchFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to UpdateDefaultBranch
.
Sets or changes the default branch name for the specified repository.
If you use this operation to change the default branch name to the current default branch name, a success message is returned even though the default branch did not change.
Implementations§
source§impl UpdateDefaultBranchFluentBuilder
impl UpdateDefaultBranchFluentBuilder
sourcepub fn as_input(&self) -> &UpdateDefaultBranchInputBuilder
pub fn as_input(&self) -> &UpdateDefaultBranchInputBuilder
Access the UpdateDefaultBranch as a reference.
sourcepub async fn send(
self
) -> Result<UpdateDefaultBranchOutput, SdkError<UpdateDefaultBranchError, HttpResponse>>
pub async fn send( self ) -> Result<UpdateDefaultBranchOutput, SdkError<UpdateDefaultBranchError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<UpdateDefaultBranchOutput, UpdateDefaultBranchError, Self>
pub fn customize( self ) -> CustomizableOperation<UpdateDefaultBranchOutput, UpdateDefaultBranchError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
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 for which you want to set or change the default 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 for which you want to set or change the default branch.
sourcepub fn get_repository_name(&self) -> &Option<String>
pub fn get_repository_name(&self) -> &Option<String>
The name of the repository for which you want to set or change the default branch.
sourcepub fn default_branch_name(self, input: impl Into<String>) -> Self
pub fn default_branch_name(self, input: impl Into<String>) -> Self
The name of the branch to set as the default branch.
sourcepub fn set_default_branch_name(self, input: Option<String>) -> Self
pub fn set_default_branch_name(self, input: Option<String>) -> Self
The name of the branch to set as the default branch.
sourcepub fn get_default_branch_name(&self) -> &Option<String>
pub fn get_default_branch_name(&self) -> &Option<String>
The name of the branch to set as the default branch.
Trait Implementations§
source§impl Clone for UpdateDefaultBranchFluentBuilder
impl Clone for UpdateDefaultBranchFluentBuilder
source§fn clone(&self) -> UpdateDefaultBranchFluentBuilder
fn clone(&self) -> UpdateDefaultBranchFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more