/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

Represents the output of a get branch operation.

See Also:

* AWS * API Reference

*/ class AWS_CODECOMMIT_API GetBranchResult { public: GetBranchResult(); GetBranchResult(const Aws::AmazonWebServiceResult& result); GetBranchResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The name of the branch.

*/ inline const BranchInfo& GetBranch() const{ return m_branch; } /** *

The name of the branch.

*/ inline void SetBranch(const BranchInfo& value) { m_branch = value; } /** *

The name of the branch.

*/ inline void SetBranch(BranchInfo&& value) { m_branch = std::move(value); } /** *

The name of the branch.

*/ inline GetBranchResult& WithBranch(const BranchInfo& value) { SetBranch(value); return *this;} /** *

The name of the branch.

*/ inline GetBranchResult& WithBranch(BranchInfo&& value) { SetBranch(std::move(value)); return *this;} private: BranchInfo m_branch; }; } // namespace Model } // namespace CodeCommit } // namespace Aws