1
2
3
4
5
6
7
8
9
10
11
12
13
14
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateBranch`](crate::operation::create_branch::builders::CreateBranchFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`repository_name(impl Into<String>)`](crate::operation::create_branch::builders::CreateBranchFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::create_branch::builders::CreateBranchFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository in which you want to create the new branch.</p><br>
    ///   - [`branch_name(impl Into<String>)`](crate::operation::create_branch::builders::CreateBranchFluentBuilder::branch_name) / [`set_branch_name(Option<String>)`](crate::operation::create_branch::builders::CreateBranchFluentBuilder::set_branch_name):<br>required: **true**<br><p>The name of the new branch to create.</p><br>
    ///   - [`commit_id(impl Into<String>)`](crate::operation::create_branch::builders::CreateBranchFluentBuilder::commit_id) / [`set_commit_id(Option<String>)`](crate::operation::create_branch::builders::CreateBranchFluentBuilder::set_commit_id):<br>required: **true**<br><p>The ID of the commit to point the new branch to.</p><br>
    /// - On success, responds with [`CreateBranchOutput`](crate::operation::create_branch::CreateBranchOutput)
    /// - On failure, responds with [`SdkError<CreateBranchError>`](crate::operation::create_branch::CreateBranchError)
    pub fn create_branch(&self) -> crate::operation::create_branch::builders::CreateBranchFluentBuilder {
        crate::operation::create_branch::builders::CreateBranchFluentBuilder::new(self.handle.clone())
    }
}