1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`CreateSourceRepositoryBranch`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`space_name(impl Into<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::space_name) / [`set_space_name(Option<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::set_space_name): <p>The name of the space.</p>
    ///   - [`project_name(impl Into<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::project_name) / [`set_project_name(Option<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::set_project_name): <p>The name of the project in the space.</p>
    ///   - [`source_repository_name(impl Into<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::source_repository_name) / [`set_source_repository_name(Option<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::set_source_repository_name): <p>The name of the repository where you want to create a branch.</p>
    ///   - [`name(impl Into<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::set_name): <p>The name for the branch you're creating.</p>
    ///   - [`head_commit_id(impl Into<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::head_commit_id) / [`set_head_commit_id(Option<String>)`](crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::set_head_commit_id): <p>The commit ID in an existing branch from which you want to create the new branch.</p>
    /// - On success, responds with [`CreateSourceRepositoryBranchOutput`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchOutput) with field(s):
    ///   - [`r#ref(Option<String>)`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchOutput::ref): <p>The Git reference name of the branch.</p>
    ///   - [`name(Option<String>)`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchOutput::name): <p>The name of the newly created branch.</p>
    ///   - [`last_updated_time(Option<DateTime>)`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchOutput::last_updated_time): <p>The time the branch was last updated, in coordinated universal time (UTC) timestamp format as specified in <a href="https://www.rfc-editor.org/rfc/rfc3339#section-5.6">RFC 3339</a>.</p>
    ///   - [`head_commit_id(Option<String>)`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchOutput::head_commit_id): <p>The commit ID of the tip of the newly created branch.</p>
    /// - On failure, responds with [`SdkError<CreateSourceRepositoryBranchError>`](crate::operation::create_source_repository_branch::CreateSourceRepositoryBranchError)
    pub fn create_source_repository_branch(&self) -> crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder{
        crate::operation::create_source_repository_branch::builders::CreateSourceRepositoryBranchFluentBuilder::new(self.handle.clone())
    }
}