/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { class DescribeMergeConflictsResult { public: AWS_CODECOMMIT_API DescribeMergeConflictsResult(); AWS_CODECOMMIT_API DescribeMergeConflictsResult(const Aws::AmazonWebServiceResult& result); AWS_CODECOMMIT_API DescribeMergeConflictsResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

Contains metadata about the conflicts found in the merge.

*/ inline const ConflictMetadata& GetConflictMetadata() const{ return m_conflictMetadata; } /** *

Contains metadata about the conflicts found in the merge.

*/ inline void SetConflictMetadata(const ConflictMetadata& value) { m_conflictMetadata = value; } /** *

Contains metadata about the conflicts found in the merge.

*/ inline void SetConflictMetadata(ConflictMetadata&& value) { m_conflictMetadata = std::move(value); } /** *

Contains metadata about the conflicts found in the merge.

*/ inline DescribeMergeConflictsResult& WithConflictMetadata(const ConflictMetadata& value) { SetConflictMetadata(value); return *this;} /** *

Contains metadata about the conflicts found in the merge.

*/ inline DescribeMergeConflictsResult& WithConflictMetadata(ConflictMetadata&& value) { SetConflictMetadata(std::move(value)); return *this;} /** *

A list of merge hunks of the differences between the files or lines.

*/ inline const Aws::Vector& GetMergeHunks() const{ return m_mergeHunks; } /** *

A list of merge hunks of the differences between the files or lines.

*/ inline void SetMergeHunks(const Aws::Vector& value) { m_mergeHunks = value; } /** *

A list of merge hunks of the differences between the files or lines.

*/ inline void SetMergeHunks(Aws::Vector&& value) { m_mergeHunks = std::move(value); } /** *

A list of merge hunks of the differences between the files or lines.

*/ inline DescribeMergeConflictsResult& WithMergeHunks(const Aws::Vector& value) { SetMergeHunks(value); return *this;} /** *

A list of merge hunks of the differences between the files or lines.

*/ inline DescribeMergeConflictsResult& WithMergeHunks(Aws::Vector&& value) { SetMergeHunks(std::move(value)); return *this;} /** *

A list of merge hunks of the differences between the files or lines.

*/ inline DescribeMergeConflictsResult& AddMergeHunks(const MergeHunk& value) { m_mergeHunks.push_back(value); return *this; } /** *

A list of merge hunks of the differences between the files or lines.

*/ inline DescribeMergeConflictsResult& AddMergeHunks(MergeHunk&& value) { m_mergeHunks.push_back(std::move(value)); return *this; } /** *

An enumeration token that can be used in a request to return the next batch * of the results.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

An enumeration token that can be used in a request to return the next batch * of the results.

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

An enumeration token that can be used in a request to return the next batch * of the results.

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

An enumeration token that can be used in a request to return the next batch * of the results.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

An enumeration token that can be used in a request to return the next batch * of the results.

*/ inline DescribeMergeConflictsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

An enumeration token that can be used in a request to return the next batch * of the results.

*/ inline DescribeMergeConflictsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

An enumeration token that can be used in a request to return the next batch * of the results.

*/ inline DescribeMergeConflictsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The commit ID of the destination commit specifier that was used in the merge * evaluation.

*/ inline const Aws::String& GetDestinationCommitId() const{ return m_destinationCommitId; } /** *

The commit ID of the destination commit specifier that was used in the merge * evaluation.

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

The commit ID of the destination commit specifier that was used in the merge * evaluation.

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

The commit ID of the destination commit specifier that was used in the merge * evaluation.

*/ inline void SetDestinationCommitId(const char* value) { m_destinationCommitId.assign(value); } /** *

The commit ID of the destination commit specifier that was used in the merge * evaluation.

*/ inline DescribeMergeConflictsResult& WithDestinationCommitId(const Aws::String& value) { SetDestinationCommitId(value); return *this;} /** *

The commit ID of the destination commit specifier that was used in the merge * evaluation.

*/ inline DescribeMergeConflictsResult& WithDestinationCommitId(Aws::String&& value) { SetDestinationCommitId(std::move(value)); return *this;} /** *

The commit ID of the destination commit specifier that was used in the merge * evaluation.

*/ inline DescribeMergeConflictsResult& WithDestinationCommitId(const char* value) { SetDestinationCommitId(value); return *this;} /** *

The commit ID of the source commit specifier that was used in the merge * evaluation.

*/ inline const Aws::String& GetSourceCommitId() const{ return m_sourceCommitId; } /** *

The commit ID of the source commit specifier that was used in the merge * evaluation.

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

The commit ID of the source commit specifier that was used in the merge * evaluation.

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

The commit ID of the source commit specifier that was used in the merge * evaluation.

*/ inline void SetSourceCommitId(const char* value) { m_sourceCommitId.assign(value); } /** *

The commit ID of the source commit specifier that was used in the merge * evaluation.

*/ inline DescribeMergeConflictsResult& WithSourceCommitId(const Aws::String& value) { SetSourceCommitId(value); return *this;} /** *

The commit ID of the source commit specifier that was used in the merge * evaluation.

*/ inline DescribeMergeConflictsResult& WithSourceCommitId(Aws::String&& value) { SetSourceCommitId(std::move(value)); return *this;} /** *

The commit ID of the source commit specifier that was used in the merge * evaluation.

*/ inline DescribeMergeConflictsResult& WithSourceCommitId(const char* value) { SetSourceCommitId(value); return *this;} /** *

The commit ID of the merge base.

*/ inline const Aws::String& GetBaseCommitId() const{ return m_baseCommitId; } /** *

The commit ID of the merge base.

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

The commit ID of the merge base.

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

The commit ID of the merge base.

*/ inline void SetBaseCommitId(const char* value) { m_baseCommitId.assign(value); } /** *

The commit ID of the merge base.

*/ inline DescribeMergeConflictsResult& WithBaseCommitId(const Aws::String& value) { SetBaseCommitId(value); return *this;} /** *

The commit ID of the merge base.

*/ inline DescribeMergeConflictsResult& WithBaseCommitId(Aws::String&& value) { SetBaseCommitId(std::move(value)); return *this;} /** *

The commit ID of the merge base.

*/ inline DescribeMergeConflictsResult& WithBaseCommitId(const char* value) { SetBaseCommitId(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 DescribeMergeConflictsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline DescribeMergeConflictsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline DescribeMergeConflictsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: ConflictMetadata m_conflictMetadata; Aws::Vector m_mergeHunks; Aws::String m_nextToken; Aws::String m_destinationCommitId; Aws::String m_sourceCommitId; Aws::String m_baseCommitId; Aws::String m_requestId; }; } // namespace Model } // namespace CodeCommit } // namespace Aws