aws_sdk_codecommit/client/
delete_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 [`DeleteBranch`](crate::operation::delete_branch::builders::DeleteBranchFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`repository_name(impl Into<String>)`](crate::operation::delete_branch::builders::DeleteBranchFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::delete_branch::builders::DeleteBranchFluentBuilder::set_repository_name):<br>required: **true**<br><p>The name of the repository that contains the branch to be deleted.</p><br>
7    ///   - [`branch_name(impl Into<String>)`](crate::operation::delete_branch::builders::DeleteBranchFluentBuilder::branch_name) / [`set_branch_name(Option<String>)`](crate::operation::delete_branch::builders::DeleteBranchFluentBuilder::set_branch_name):<br>required: **true**<br><p>The name of the branch to delete.</p><br>
8    /// - On success, responds with [`DeleteBranchOutput`](crate::operation::delete_branch::DeleteBranchOutput) with field(s):
9    ///   - [`deleted_branch(Option<BranchInfo>)`](crate::operation::delete_branch::DeleteBranchOutput::deleted_branch): <p>Information about the branch deleted by the operation, including the branch name and the commit ID that was the tip of the branch.</p>
10    /// - On failure, responds with [`SdkError<DeleteBranchError>`](crate::operation::delete_branch::DeleteBranchError)
11    pub fn delete_branch(&self) -> crate::operation::delete_branch::builders::DeleteBranchFluentBuilder {
12        crate::operation::delete_branch::builders::DeleteBranchFluentBuilder::new(self.handle.clone())
13    }
14}