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

Information about conflicts in a merge operation.

See Also:

* AWS * API Reference

*/ class Conflict { public: AWS_CODECOMMIT_API Conflict(); AWS_CODECOMMIT_API Conflict(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Conflict& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Metadata about a conflict in a merge operation.

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

Metadata about a conflict in a merge operation.

*/ inline bool ConflictMetadataHasBeenSet() const { return m_conflictMetadataHasBeenSet; } /** *

Metadata about a conflict in a merge operation.

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

Metadata about a conflict in a merge operation.

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

Metadata about a conflict in a merge operation.

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

Metadata about a conflict in a merge operation.

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

A list of hunks that contain the differences between files or lines causing * the conflict.

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

A list of hunks that contain the differences between files or lines causing * the conflict.

*/ inline bool MergeHunksHasBeenSet() const { return m_mergeHunksHasBeenSet; } /** *

A list of hunks that contain the differences between files or lines causing * the conflict.

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

A list of hunks that contain the differences between files or lines causing * the conflict.

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

A list of hunks that contain the differences between files or lines causing * the conflict.

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

A list of hunks that contain the differences between files or lines causing * the conflict.

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

A list of hunks that contain the differences between files or lines causing * the conflict.

*/ inline Conflict& AddMergeHunks(const MergeHunk& value) { m_mergeHunksHasBeenSet = true; m_mergeHunks.push_back(value); return *this; } /** *

A list of hunks that contain the differences between files or lines causing * the conflict.

*/ inline Conflict& AddMergeHunks(MergeHunk&& value) { m_mergeHunksHasBeenSet = true; m_mergeHunks.push_back(std::move(value)); return *this; } private: ConflictMetadata m_conflictMetadata; bool m_conflictMetadataHasBeenSet = false; Aws::Vector m_mergeHunks; bool m_mergeHunksHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws