/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about the metadata for a conflict in a merge
* operation.See Also:
AWS
* API Reference
The path of the file that contains conflicts.
*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *The path of the file that contains conflicts.
*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *The path of the file that contains conflicts.
*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *The path of the file that contains conflicts.
*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *The path of the file that contains conflicts.
*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *The path of the file that contains conflicts.
*/ inline ConflictMetadata& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *The path of the file that contains conflicts.
*/ inline ConflictMetadata& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *The path of the file that contains conflicts.
*/ inline ConflictMetadata& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *The file sizes of the file in the source, destination, and base of the * merge.
*/ inline const FileSizes& GetFileSizes() const{ return m_fileSizes; } /** *The file sizes of the file in the source, destination, and base of the * merge.
*/ inline bool FileSizesHasBeenSet() const { return m_fileSizesHasBeenSet; } /** *The file sizes of the file in the source, destination, and base of the * merge.
*/ inline void SetFileSizes(const FileSizes& value) { m_fileSizesHasBeenSet = true; m_fileSizes = value; } /** *The file sizes of the file in the source, destination, and base of the * merge.
*/ inline void SetFileSizes(FileSizes&& value) { m_fileSizesHasBeenSet = true; m_fileSizes = std::move(value); } /** *The file sizes of the file in the source, destination, and base of the * merge.
*/ inline ConflictMetadata& WithFileSizes(const FileSizes& value) { SetFileSizes(value); return *this;} /** *The file sizes of the file in the source, destination, and base of the * merge.
*/ inline ConflictMetadata& WithFileSizes(FileSizes&& value) { SetFileSizes(std::move(value)); return *this;} /** *The file modes of the file in the source, destination, and base of the * merge.
*/ inline const FileModes& GetFileModes() const{ return m_fileModes; } /** *The file modes of the file in the source, destination, and base of the * merge.
*/ inline bool FileModesHasBeenSet() const { return m_fileModesHasBeenSet; } /** *The file modes of the file in the source, destination, and base of the * merge.
*/ inline void SetFileModes(const FileModes& value) { m_fileModesHasBeenSet = true; m_fileModes = value; } /** *The file modes of the file in the source, destination, and base of the * merge.
*/ inline void SetFileModes(FileModes&& value) { m_fileModesHasBeenSet = true; m_fileModes = std::move(value); } /** *The file modes of the file in the source, destination, and base of the * merge.
*/ inline ConflictMetadata& WithFileModes(const FileModes& value) { SetFileModes(value); return *this;} /** *The file modes of the file in the source, destination, and base of the * merge.
*/ inline ConflictMetadata& WithFileModes(FileModes&& value) { SetFileModes(std::move(value)); return *this;} /** *Information about any object type conflicts in a merge operation.
*/ inline const ObjectTypes& GetObjectTypes() const{ return m_objectTypes; } /** *Information about any object type conflicts in a merge operation.
*/ inline bool ObjectTypesHasBeenSet() const { return m_objectTypesHasBeenSet; } /** *Information about any object type conflicts in a merge operation.
*/ inline void SetObjectTypes(const ObjectTypes& value) { m_objectTypesHasBeenSet = true; m_objectTypes = value; } /** *Information about any object type conflicts in a merge operation.
*/ inline void SetObjectTypes(ObjectTypes&& value) { m_objectTypesHasBeenSet = true; m_objectTypes = std::move(value); } /** *Information about any object type conflicts in a merge operation.
*/ inline ConflictMetadata& WithObjectTypes(const ObjectTypes& value) { SetObjectTypes(value); return *this;} /** *Information about any object type conflicts in a merge operation.
*/ inline ConflictMetadata& WithObjectTypes(ObjectTypes&& value) { SetObjectTypes(std::move(value)); return *this;} /** *The number of conflicts, including both hunk conflicts and metadata * conflicts.
*/ inline int GetNumberOfConflicts() const{ return m_numberOfConflicts; } /** *The number of conflicts, including both hunk conflicts and metadata * conflicts.
*/ inline bool NumberOfConflictsHasBeenSet() const { return m_numberOfConflictsHasBeenSet; } /** *The number of conflicts, including both hunk conflicts and metadata * conflicts.
*/ inline void SetNumberOfConflicts(int value) { m_numberOfConflictsHasBeenSet = true; m_numberOfConflicts = value; } /** *The number of conflicts, including both hunk conflicts and metadata * conflicts.
*/ inline ConflictMetadata& WithNumberOfConflicts(int value) { SetNumberOfConflicts(value); return *this;} /** *A boolean value (true or false) indicating whether the file is binary or * textual in the source, destination, and base of the merge.
*/ inline const IsBinaryFile& GetIsBinaryFile() const{ return m_isBinaryFile; } /** *A boolean value (true or false) indicating whether the file is binary or * textual in the source, destination, and base of the merge.
*/ inline bool IsBinaryFileHasBeenSet() const { return m_isBinaryFileHasBeenSet; } /** *A boolean value (true or false) indicating whether the file is binary or * textual in the source, destination, and base of the merge.
*/ inline void SetIsBinaryFile(const IsBinaryFile& value) { m_isBinaryFileHasBeenSet = true; m_isBinaryFile = value; } /** *A boolean value (true or false) indicating whether the file is binary or * textual in the source, destination, and base of the merge.
*/ inline void SetIsBinaryFile(IsBinaryFile&& value) { m_isBinaryFileHasBeenSet = true; m_isBinaryFile = std::move(value); } /** *A boolean value (true or false) indicating whether the file is binary or * textual in the source, destination, and base of the merge.
*/ inline ConflictMetadata& WithIsBinaryFile(const IsBinaryFile& value) { SetIsBinaryFile(value); return *this;} /** *A boolean value (true or false) indicating whether the file is binary or * textual in the source, destination, and base of the merge.
*/ inline ConflictMetadata& WithIsBinaryFile(IsBinaryFile&& value) { SetIsBinaryFile(std::move(value)); return *this;} /** *A boolean value indicating whether there are conflicts in the content of a * file.
*/ inline bool GetContentConflict() const{ return m_contentConflict; } /** *A boolean value indicating whether there are conflicts in the content of a * file.
*/ inline bool ContentConflictHasBeenSet() const { return m_contentConflictHasBeenSet; } /** *A boolean value indicating whether there are conflicts in the content of a * file.
*/ inline void SetContentConflict(bool value) { m_contentConflictHasBeenSet = true; m_contentConflict = value; } /** *A boolean value indicating whether there are conflicts in the content of a * file.
*/ inline ConflictMetadata& WithContentConflict(bool value) { SetContentConflict(value); return *this;} /** *A boolean value indicating whether there are conflicts in the file mode of a * file.
*/ inline bool GetFileModeConflict() const{ return m_fileModeConflict; } /** *A boolean value indicating whether there are conflicts in the file mode of a * file.
*/ inline bool FileModeConflictHasBeenSet() const { return m_fileModeConflictHasBeenSet; } /** *A boolean value indicating whether there are conflicts in the file mode of a * file.
*/ inline void SetFileModeConflict(bool value) { m_fileModeConflictHasBeenSet = true; m_fileModeConflict = value; } /** *A boolean value indicating whether there are conflicts in the file mode of a * file.
*/ inline ConflictMetadata& WithFileModeConflict(bool value) { SetFileModeConflict(value); return *this;} /** *A boolean value (true or false) indicating whether there are conflicts * between the branches in the object type of a file, folder, or submodule.
*/ inline bool GetObjectTypeConflict() const{ return m_objectTypeConflict; } /** *A boolean value (true or false) indicating whether there are conflicts * between the branches in the object type of a file, folder, or submodule.
*/ inline bool ObjectTypeConflictHasBeenSet() const { return m_objectTypeConflictHasBeenSet; } /** *A boolean value (true or false) indicating whether there are conflicts * between the branches in the object type of a file, folder, or submodule.
*/ inline void SetObjectTypeConflict(bool value) { m_objectTypeConflictHasBeenSet = true; m_objectTypeConflict = value; } /** *A boolean value (true or false) indicating whether there are conflicts * between the branches in the object type of a file, folder, or submodule.
*/ inline ConflictMetadata& WithObjectTypeConflict(bool value) { SetObjectTypeConflict(value); return *this;} /** *Whether an add, modify, or delete operation caused the conflict between the * source and destination of the merge.
*/ inline const MergeOperations& GetMergeOperations() const{ return m_mergeOperations; } /** *Whether an add, modify, or delete operation caused the conflict between the * source and destination of the merge.
*/ inline bool MergeOperationsHasBeenSet() const { return m_mergeOperationsHasBeenSet; } /** *Whether an add, modify, or delete operation caused the conflict between the * source and destination of the merge.
*/ inline void SetMergeOperations(const MergeOperations& value) { m_mergeOperationsHasBeenSet = true; m_mergeOperations = value; } /** *Whether an add, modify, or delete operation caused the conflict between the * source and destination of the merge.
*/ inline void SetMergeOperations(MergeOperations&& value) { m_mergeOperationsHasBeenSet = true; m_mergeOperations = std::move(value); } /** *Whether an add, modify, or delete operation caused the conflict between the * source and destination of the merge.
*/ inline ConflictMetadata& WithMergeOperations(const MergeOperations& value) { SetMergeOperations(value); return *this;} /** *Whether an add, modify, or delete operation caused the conflict between the * source and destination of the merge.
*/ inline ConflictMetadata& WithMergeOperations(MergeOperations&& value) { SetMergeOperations(std::move(value)); return *this;} private: Aws::String m_filePath; bool m_filePathHasBeenSet; FileSizes m_fileSizes; bool m_fileSizesHasBeenSet; FileModes m_fileModes; bool m_fileModesHasBeenSet; ObjectTypes m_objectTypes; bool m_objectTypesHasBeenSet; int m_numberOfConflicts; bool m_numberOfConflictsHasBeenSet; IsBinaryFile m_isBinaryFile; bool m_isBinaryFileHasBeenSet; bool m_contentConflict; bool m_contentConflictHasBeenSet; bool m_fileModeConflict; bool m_fileModeConflictHasBeenSet; bool m_objectTypeConflict; bool m_objectTypeConflictHasBeenSet; MergeOperations m_mergeOperations; bool m_mergeOperationsHasBeenSet; }; } // namespace Model } // namespace CodeCommit } // namespace Aws