/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Returns information about a branch.See Also:
AWS
* API Reference
The name of the branch.
*/ inline const Aws::String& GetBranchName() const{ return m_branchName; } /** *The name of the branch.
*/ inline bool BranchNameHasBeenSet() const { return m_branchNameHasBeenSet; } /** *The name of the branch.
*/ inline void SetBranchName(const Aws::String& value) { m_branchNameHasBeenSet = true; m_branchName = value; } /** *The name of the branch.
*/ inline void SetBranchName(Aws::String&& value) { m_branchNameHasBeenSet = true; m_branchName = std::move(value); } /** *The name of the branch.
*/ inline void SetBranchName(const char* value) { m_branchNameHasBeenSet = true; m_branchName.assign(value); } /** *The name of the branch.
*/ inline BranchInfo& WithBranchName(const Aws::String& value) { SetBranchName(value); return *this;} /** *The name of the branch.
*/ inline BranchInfo& WithBranchName(Aws::String&& value) { SetBranchName(std::move(value)); return *this;} /** *The name of the branch.
*/ inline BranchInfo& WithBranchName(const char* value) { SetBranchName(value); return *this;} /** *The ID of the last commit made to the branch.
*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *The ID of the last commit made to the branch.
*/ inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; } /** *The ID of the last commit made to the branch.
*/ inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; } /** *The ID of the last commit made to the branch.
*/ inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); } /** *The ID of the last commit made to the branch.
*/ inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); } /** *The ID of the last commit made to the branch.
*/ inline BranchInfo& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *The ID of the last commit made to the branch.
*/ inline BranchInfo& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *The ID of the last commit made to the branch.
*/ inline BranchInfo& WithCommitId(const char* value) { SetCommitId(value); return *this;} private: Aws::String m_branchName; bool m_branchNameHasBeenSet = false; Aws::String m_commitId; bool m_commitIdHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws