aws_sdk_codecommit/client/get_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 [`GetBranch`](crate::operation::get_branch::builders::GetBranchFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`repository_name(impl Into<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::set_repository_name):<br>required: **false**<br><p>The name of the repository that contains the branch for which you want to retrieve information.</p><br>
7 /// - [`branch_name(impl Into<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::branch_name) / [`set_branch_name(Option<String>)`](crate::operation::get_branch::builders::GetBranchFluentBuilder::set_branch_name):<br>required: **false**<br><p>The name of the branch for which you want to retrieve information.</p><br>
8 /// - On success, responds with [`GetBranchOutput`](crate::operation::get_branch::GetBranchOutput) with field(s):
9 /// - [`branch(Option<BranchInfo>)`](crate::operation::get_branch::GetBranchOutput::branch): <p>The name of the branch.</p>
10 /// - On failure, responds with [`SdkError<GetBranchError>`](crate::operation::get_branch::GetBranchError)
11 pub fn get_branch(&self) -> crate::operation::get_branch::builders::GetBranchFluentBuilder {
12 crate::operation::get_branch::builders::GetBranchFluentBuilder::new(self.handle.clone())
13 }
14}