aws_sdk_codecommit/client/
update_default_branch.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateDefaultBranch`](crate::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`repository_name(impl Into<String>)`](crate::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository for which you want to set or change the default branch.</p><br>
7    ///   - [`default_branch_name(impl Into<String>)`](crate::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder::default_branch_name) / [`set_default_branch_name(Option<String>)`](crate::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder::set_default_branch_name):<br>required: **true**<br><p>The name of the branch to set as the default branch.</p><br>
8    /// - On success, responds with [`UpdateDefaultBranchOutput`](crate::operation::update_default_branch::UpdateDefaultBranchOutput)
9    /// - On failure, responds with [`SdkError<UpdateDefaultBranchError>`](crate::operation::update_default_branch::UpdateDefaultBranchError)
10    pub fn update_default_branch(&self) -> crate::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder {
11        crate::operation::update_default_branch::builders::UpdateDefaultBranchFluentBuilder::new(self.handle.clone())
12    }
13}