/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a replacement content entry in the conflict of a merge or
* pull request operation.See Also:
AWS
* API Reference
The path of the conflicting file.
*/ inline const Aws::String& GetFilePath() const{ return m_filePath; } /** *The path of the conflicting file.
*/ inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; } /** *The path of the conflicting file.
*/ inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; } /** *The path of the conflicting file.
*/ inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); } /** *The path of the conflicting file.
*/ inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); } /** *The path of the conflicting file.
*/ inline ReplaceContentEntry& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;} /** *The path of the conflicting file.
*/ inline ReplaceContentEntry& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;} /** *The path of the conflicting file.
*/ inline ReplaceContentEntry& WithFilePath(const char* value) { SetFilePath(value); return *this;} /** *The replacement type to use when determining how to resolve the conflict.
*/ inline const ReplacementTypeEnum& GetReplacementType() const{ return m_replacementType; } /** *The replacement type to use when determining how to resolve the conflict.
*/ inline bool ReplacementTypeHasBeenSet() const { return m_replacementTypeHasBeenSet; } /** *The replacement type to use when determining how to resolve the conflict.
*/ inline void SetReplacementType(const ReplacementTypeEnum& value) { m_replacementTypeHasBeenSet = true; m_replacementType = value; } /** *The replacement type to use when determining how to resolve the conflict.
*/ inline void SetReplacementType(ReplacementTypeEnum&& value) { m_replacementTypeHasBeenSet = true; m_replacementType = std::move(value); } /** *The replacement type to use when determining how to resolve the conflict.
*/ inline ReplaceContentEntry& WithReplacementType(const ReplacementTypeEnum& value) { SetReplacementType(value); return *this;} /** *The replacement type to use when determining how to resolve the conflict.
*/ inline ReplaceContentEntry& WithReplacementType(ReplacementTypeEnum&& value) { SetReplacementType(std::move(value)); return *this;} /** *The base-64 encoded content to use when the replacement type is * USE_NEW_CONTENT.
*/ inline const Aws::Utils::ByteBuffer& GetContent() const{ return m_content; } /** *The base-64 encoded content to use when the replacement type is * USE_NEW_CONTENT.
*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *The base-64 encoded content to use when the replacement type is * USE_NEW_CONTENT.
*/ inline void SetContent(const Aws::Utils::ByteBuffer& value) { m_contentHasBeenSet = true; m_content = value; } /** *The base-64 encoded content to use when the replacement type is * USE_NEW_CONTENT.
*/ inline void SetContent(Aws::Utils::ByteBuffer&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *The base-64 encoded content to use when the replacement type is * USE_NEW_CONTENT.
*/ inline ReplaceContentEntry& WithContent(const Aws::Utils::ByteBuffer& value) { SetContent(value); return *this;} /** *The base-64 encoded content to use when the replacement type is * USE_NEW_CONTENT.
*/ inline ReplaceContentEntry& WithContent(Aws::Utils::ByteBuffer&& value) { SetContent(std::move(value)); return *this;} /** *The file mode to apply during conflict resoltion.
*/ inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; } /** *The file mode to apply during conflict resoltion.
*/ inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; } /** *The file mode to apply during conflict resoltion.
*/ inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; } /** *The file mode to apply during conflict resoltion.
*/ inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); } /** *The file mode to apply during conflict resoltion.
*/ inline ReplaceContentEntry& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;} /** *The file mode to apply during conflict resoltion.
*/ inline ReplaceContentEntry& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;} private: Aws::String m_filePath; bool m_filePathHasBeenSet = false; ReplacementTypeEnum m_replacementType; bool m_replacementTypeHasBeenSet = false; Aws::Utils::ByteBuffer m_content; bool m_contentHasBeenSet = false; FileModeTypeEnum m_fileMode; bool m_fileModeHasBeenSet = false; }; } // namespace Model } // namespace CodeCommit } // namespace Aws