/** * 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 commit operation.

See Also:

* AWS * API Reference

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

A commit data type object that contains information about the specified * commit.

*/ inline const Commit& GetCommit() const{ return m_commit; } /** *

A commit data type object that contains information about the specified * commit.

*/ inline void SetCommit(const Commit& value) { m_commit = value; } /** *

A commit data type object that contains information about the specified * commit.

*/ inline void SetCommit(Commit&& value) { m_commit = std::move(value); } /** *

A commit data type object that contains information about the specified * commit.

*/ inline GetCommitResult& WithCommit(const Commit& value) { SetCommit(value); return *this;} /** *

A commit data type object that contains information about the specified * commit.

*/ inline GetCommitResult& WithCommit(Commit&& value) { SetCommit(std::move(value)); return *this;} private: Commit m_commit; }; } // namespace Model } // namespace CodeCommit } // namespace Aws