aws_sdk_codecommit/client/create_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 [`CreateBranch`](crate::operation::create_branch::builders::CreateBranchFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`CreateBranchOutput`](crate::operation::create_branch::CreateBranchOutput)
10 /// - On failure, responds with [`SdkError<CreateBranchError>`](crate::operation::create_branch::CreateBranchError)
11 pub fn create_branch(&self) -> crate::operation::create_branch::builders::CreateBranchFluentBuilder {
12 crate::operation::create_branch::builders::CreateBranchFluentBuilder::new(self.handle.clone())
13 }
14}