/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the input of a create branch operation.See Also:
* AWS
* API Reference
The name of the repository in which you want to create the new branch.
*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *The name of the repository in which you want to create the new branch.
*/ inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; } /** *The name of the repository in which you want to create the new branch.
*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; } /** *The name of the repository in which you want to create the new branch.
*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); } /** *The name of the repository in which you want to create the new branch.
*/ inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); } /** *The name of the repository in which you want to create the new branch.
*/ inline CreateBranchRequest& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *The name of the repository in which you want to create the new branch.
*/ inline CreateBranchRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *The name of the repository in which you want to create the new branch.
*/ inline CreateBranchRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *The name of the new branch to create.
*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *The name of the new branch to create.
*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *The name of the new branch to create.
*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *The name of the new branch to create.
*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *The name of the new branch to create.
*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *The name of the new branch to create.
*/ inline CreateBranchRequest& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *The name of the new branch to create.
*/ inline CreateBranchRequest& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *The name of the new branch to create.
*/ inline CreateBranchRequest& WithBranchName(const char* value) { SetBranchName(value); return *this;} /** *The ID of the commit to point the new branch to.
*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *The ID of the commit to point the new branch to.
*/ inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; } /** *The ID of the commit to point the new branch to.
*/ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; } /** *The ID of the commit to point the new branch to.
*/ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); } /** *The ID of the commit to point the new branch to.
*/ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); } /** *The ID of the commit to point the new branch to.
*/ inline CreateBranchRequest& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *The ID of the commit to point the new branch to.
*/ inline CreateBranchRequest& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *The ID of the commit to point the new branch to.
*/ inline CreateBranchRequest& WithCommitId(const char* value) { SetCommitId(value); return *this;} private: Aws::String m_repositoryName; bool m_repositoryNameHasBeenSet = false; Aws::String m_branchName; bool m_branchNameHasBeenSet = false; Aws::String m_commitId; bool m_commitIdHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws