// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
/// Constructs a fluent builder for the [`ListGitBranches`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder) operation.
/// This operation supports pagination; See [`into_paginator()`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::into_paginator).
///
/// - The fluent builder is configurable:
/// - [`provider(GitProvider)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::provider) / [`set_provider(Option<GitProvider>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::set_provider):<br>required: **true**<br><p>The Git provider.</p><br>
/// - [`owner(impl Into<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::owner) / [`set_owner(Option<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::set_owner):<br>required: **true**<br><p>The account that the Git connection is for. The value depends on the provider:</p> <ul> <li> <p>For GitHub, specify the user or organization name.</p></li> <li> <p>For GitLab, specify the user name.</p></li> </ul> <p>To get this value, call ListGitConnections.</p><br>
/// - [`repository_name(impl Into<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::repository_name) / [`set_repository_name(Option<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::set_repository_name):<br>required: **false**<br><p>The name of the repository, which is the last segment of RepositoryPath.</p><br>
/// - [`repository_path(impl Into<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::repository_path) / [`set_repository_path(Option<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::set_repository_path):<br>required: **true**<br><p>The full path of the repository in the Git provider, for example my-org/my-app. GitLab paths can include subgroups, for example my-group/subgroup/my-app. To get this value, call ListRepositories.</p><br>
/// - [`max_results(i32)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of results to return in a single response.</p><br>
/// - [`next_token(impl Into<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::set_next_token):<br>required: **false**<br><p>The pagination token returned in a previous response, used to retrieve the next page of results.</p><br>
/// - On success, responds with [`ListGitBranchesOutput`](crate::operation::list_git_branches::ListGitBranchesOutput) with field(s):
/// - [`branches(Vec::<GitBranchSummary>)`](crate::operation::list_git_branches::ListGitBranchesOutput::branches): <p>The branches of the repository.</p>
/// - [`next_token(Option<String>)`](crate::operation::list_git_branches::ListGitBranchesOutput::next_token): <p>The token to use in the next request to get the next page of results. This value is absent when there are no more results.</p>
/// - On failure, responds with [`SdkError<ListGitBranchesError>`](crate::operation::list_git_branches::ListGitBranchesError)
pub fn list_git_branches(&self) -> crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder {
crate::operation::list_git_branches::builders::ListGitBranchesFluentBuilder::new(self.handle.clone())
}
}