/** * 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 { class MergeBranchesByFastForwardResult { public: AWS_CODECOMMIT_API MergeBranchesByFastForwardResult(); AWS_CODECOMMIT_API MergeBranchesByFastForwardResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API MergeBranchesByFastForwardResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The commit ID of the merge in the destination or target branch.

*/ inline const Aws::String& GetCommitId() const{ return m_commitId; } /** *

The commit ID of the merge in the destination or target branch.

*/ inline void SetCommitId(const Aws::String& value) { m_commitId = value; } /** *

The commit ID of the merge in the destination or target branch.

*/ inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); } /** *

The commit ID of the merge in the destination or target branch.

*/ inline void SetCommitId(const char* value) { m_commitId.assign(value); } /** *

The commit ID of the merge in the destination or target branch.

*/ inline MergeBranchesByFastForwardResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;} /** *

The commit ID of the merge in the destination or target branch.

*/ inline MergeBranchesByFastForwardResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;} /** *

The commit ID of the merge in the destination or target branch.

*/ inline MergeBranchesByFastForwardResult& WithCommitId(const char* value) { SetCommitId(value); return *this;} /** *

The tree ID of the merge in the destination or target branch.

*/ inline const Aws::String& GetTreeId() const{ return m_treeId; } /** *

The tree ID of the merge in the destination or target branch.

*/ inline void SetTreeId(const Aws::String& value) { m_treeId = value; } /** *

The tree ID of the merge in the destination or target branch.

*/ inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); } /** *

The tree ID of the merge in the destination or target branch.

*/ inline void SetTreeId(const char* value) { m_treeId.assign(value); } /** *

The tree ID of the merge in the destination or target branch.

*/ inline MergeBranchesByFastForwardResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;} /** *

The tree ID of the merge in the destination or target branch.

*/ inline MergeBranchesByFastForwardResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;} /** *

The tree ID of the merge in the destination or target branch.

*/ inline MergeBranchesByFastForwardResult& WithTreeId(const char* value) { SetTreeId(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline MergeBranchesByFastForwardResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline MergeBranchesByFastForwardResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline MergeBranchesByFastForwardResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_commitId; Aws::String m_treeId; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws