/** * 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 { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CodeCommit { namespace Model { /** *

If AUTOMERGE is the conflict resolution strategy, a list of inputs to use * when resolving conflicts during a merge.

See Also:

AWS * API Reference

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

Files to have content replaced as part of the merge conflict resolution.

*/ inline const Aws::Vector& GetReplaceContents() const{ return m_replaceContents; } /** *

Files to have content replaced as part of the merge conflict resolution.

*/ inline bool ReplaceContentsHasBeenSet() const { return m_replaceContentsHasBeenSet; } /** *

Files to have content replaced as part of the merge conflict resolution.

*/ inline void SetReplaceContents(const Aws::Vector& value) { m_replaceContentsHasBeenSet = true; m_replaceContents = value; } /** *

Files to have content replaced as part of the merge conflict resolution.

*/ inline void SetReplaceContents(Aws::Vector&& value) { m_replaceContentsHasBeenSet = true; m_replaceContents = std::move(value); } /** *

Files to have content replaced as part of the merge conflict resolution.

*/ inline ConflictResolution& WithReplaceContents(const Aws::Vector& value) { SetReplaceContents(value); return *this;} /** *

Files to have content replaced as part of the merge conflict resolution.

*/ inline ConflictResolution& WithReplaceContents(Aws::Vector&& value) { SetReplaceContents(std::move(value)); return *this;} /** *

Files to have content replaced as part of the merge conflict resolution.

*/ inline ConflictResolution& AddReplaceContents(const ReplaceContentEntry& value) { m_replaceContentsHasBeenSet = true; m_replaceContents.push_back(value); return *this; } /** *

Files to have content replaced as part of the merge conflict resolution.

*/ inline ConflictResolution& AddReplaceContents(ReplaceContentEntry&& value) { m_replaceContentsHasBeenSet = true; m_replaceContents.push_back(std::move(value)); return *this; } /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline const Aws::Vector& GetDeleteFiles() const{ return m_deleteFiles; } /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline bool DeleteFilesHasBeenSet() const { return m_deleteFilesHasBeenSet; } /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline void SetDeleteFiles(const Aws::Vector& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = value; } /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline void SetDeleteFiles(Aws::Vector&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles = std::move(value); } /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline ConflictResolution& WithDeleteFiles(const Aws::Vector& value) { SetDeleteFiles(value); return *this;} /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline ConflictResolution& WithDeleteFiles(Aws::Vector&& value) { SetDeleteFiles(std::move(value)); return *this;} /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline ConflictResolution& AddDeleteFiles(const DeleteFileEntry& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(value); return *this; } /** *

Files to be deleted as part of the merge conflict resolution.

*/ inline ConflictResolution& AddDeleteFiles(DeleteFileEntry&& value) { m_deleteFilesHasBeenSet = true; m_deleteFiles.push_back(std::move(value)); return *this; } /** *

File modes that are set as part of the merge conflict resolution.

*/ inline const Aws::Vector& GetSetFileModes() const{ return m_setFileModes; } /** *

File modes that are set as part of the merge conflict resolution.

*/ inline bool SetFileModesHasBeenSet() const { return m_setFileModesHasBeenSet; } /** *

File modes that are set as part of the merge conflict resolution.

*/ inline void SetSetFileModes(const Aws::Vector& value) { m_setFileModesHasBeenSet = true; m_setFileModes = value; } /** *

File modes that are set as part of the merge conflict resolution.

*/ inline void SetSetFileModes(Aws::Vector&& value) { m_setFileModesHasBeenSet = true; m_setFileModes = std::move(value); } /** *

File modes that are set as part of the merge conflict resolution.

*/ inline ConflictResolution& WithSetFileModes(const Aws::Vector& value) { SetSetFileModes(value); return *this;} /** *

File modes that are set as part of the merge conflict resolution.

*/ inline ConflictResolution& WithSetFileModes(Aws::Vector&& value) { SetSetFileModes(std::move(value)); return *this;} /** *

File modes that are set as part of the merge conflict resolution.

*/ inline ConflictResolution& AddSetFileModes(const SetFileModeEntry& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(value); return *this; } /** *

File modes that are set as part of the merge conflict resolution.

*/ inline ConflictResolution& AddSetFileModes(SetFileModeEntry&& value) { m_setFileModesHasBeenSet = true; m_setFileModes.push_back(std::move(value)); return *this; } private: Aws::Vector m_replaceContents; bool m_replaceContentsHasBeenSet = false; Aws::Vector m_deleteFiles; bool m_deleteFilesHasBeenSet = false; Aws::Vector m_setFileModes; bool m_setFileModesHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws