AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
ConflictMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/FileModes.h>
9#include <aws/codecommit/model/FileSizes.h>
10#include <aws/codecommit/model/IsBinaryFile.h>
11#include <aws/codecommit/model/MergeOperations.h>
12#include <aws/codecommit/model/ObjectTypes.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeCommit {
25namespace Model {
26
34 public:
35 AWS_CODECOMMIT_API ConflictMetadata() = default;
36 AWS_CODECOMMIT_API ConflictMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetFilePath() const { return m_filePath; }
45 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
46 template <typename FilePathT = Aws::String>
47 void SetFilePath(FilePathT&& value) {
48 m_filePathHasBeenSet = true;
49 m_filePath = std::forward<FilePathT>(value);
50 }
51 template <typename FilePathT = Aws::String>
52 ConflictMetadata& WithFilePath(FilePathT&& value) {
53 SetFilePath(std::forward<FilePathT>(value));
54 return *this;
55 }
57
59
63 inline const FileSizes& GetFileSizes() const { return m_fileSizes; }
64 inline bool FileSizesHasBeenSet() const { return m_fileSizesHasBeenSet; }
65 template <typename FileSizesT = FileSizes>
66 void SetFileSizes(FileSizesT&& value) {
67 m_fileSizesHasBeenSet = true;
68 m_fileSizes = std::forward<FileSizesT>(value);
69 }
70 template <typename FileSizesT = FileSizes>
71 ConflictMetadata& WithFileSizes(FileSizesT&& value) {
72 SetFileSizes(std::forward<FileSizesT>(value));
73 return *this;
74 }
76
78
82 inline const FileModes& GetFileModes() const { return m_fileModes; }
83 inline bool FileModesHasBeenSet() const { return m_fileModesHasBeenSet; }
84 template <typename FileModesT = FileModes>
85 void SetFileModes(FileModesT&& value) {
86 m_fileModesHasBeenSet = true;
87 m_fileModes = std::forward<FileModesT>(value);
88 }
89 template <typename FileModesT = FileModes>
90 ConflictMetadata& WithFileModes(FileModesT&& value) {
91 SetFileModes(std::forward<FileModesT>(value));
92 return *this;
93 }
95
97
100 inline const ObjectTypes& GetObjectTypes() const { return m_objectTypes; }
101 inline bool ObjectTypesHasBeenSet() const { return m_objectTypesHasBeenSet; }
102 template <typename ObjectTypesT = ObjectTypes>
103 void SetObjectTypes(ObjectTypesT&& value) {
104 m_objectTypesHasBeenSet = true;
105 m_objectTypes = std::forward<ObjectTypesT>(value);
106 }
107 template <typename ObjectTypesT = ObjectTypes>
108 ConflictMetadata& WithObjectTypes(ObjectTypesT&& value) {
109 SetObjectTypes(std::forward<ObjectTypesT>(value));
110 return *this;
111 }
113
115
119 inline int GetNumberOfConflicts() const { return m_numberOfConflicts; }
120 inline bool NumberOfConflictsHasBeenSet() const { return m_numberOfConflictsHasBeenSet; }
121 inline void SetNumberOfConflicts(int value) {
122 m_numberOfConflictsHasBeenSet = true;
123 m_numberOfConflicts = value;
124 }
127 return *this;
128 }
130
132
136 inline const IsBinaryFile& GetIsBinaryFile() const { return m_isBinaryFile; }
137 inline bool IsBinaryFileHasBeenSet() const { return m_isBinaryFileHasBeenSet; }
138 template <typename IsBinaryFileT = IsBinaryFile>
139 void SetIsBinaryFile(IsBinaryFileT&& value) {
140 m_isBinaryFileHasBeenSet = true;
141 m_isBinaryFile = std::forward<IsBinaryFileT>(value);
142 }
143 template <typename IsBinaryFileT = IsBinaryFile>
144 ConflictMetadata& WithIsBinaryFile(IsBinaryFileT&& value) {
145 SetIsBinaryFile(std::forward<IsBinaryFileT>(value));
146 return *this;
147 }
149
151
155 inline bool GetContentConflict() const { return m_contentConflict; }
156 inline bool ContentConflictHasBeenSet() const { return m_contentConflictHasBeenSet; }
157 inline void SetContentConflict(bool value) {
158 m_contentConflictHasBeenSet = true;
159 m_contentConflict = value;
160 }
162 SetContentConflict(value);
163 return *this;
164 }
166
168
172 inline bool GetFileModeConflict() const { return m_fileModeConflict; }
173 inline bool FileModeConflictHasBeenSet() const { return m_fileModeConflictHasBeenSet; }
174 inline void SetFileModeConflict(bool value) {
175 m_fileModeConflictHasBeenSet = true;
176 m_fileModeConflict = value;
177 }
179 SetFileModeConflict(value);
180 return *this;
181 }
183
185
189 inline bool GetObjectTypeConflict() const { return m_objectTypeConflict; }
190 inline bool ObjectTypeConflictHasBeenSet() const { return m_objectTypeConflictHasBeenSet; }
191 inline void SetObjectTypeConflict(bool value) {
192 m_objectTypeConflictHasBeenSet = true;
193 m_objectTypeConflict = value;
194 }
197 return *this;
198 }
200
202
206 inline const MergeOperations& GetMergeOperations() const { return m_mergeOperations; }
207 inline bool MergeOperationsHasBeenSet() const { return m_mergeOperationsHasBeenSet; }
208 template <typename MergeOperationsT = MergeOperations>
209 void SetMergeOperations(MergeOperationsT&& value) {
210 m_mergeOperationsHasBeenSet = true;
211 m_mergeOperations = std::forward<MergeOperationsT>(value);
212 }
213 template <typename MergeOperationsT = MergeOperations>
214 ConflictMetadata& WithMergeOperations(MergeOperationsT&& value) {
215 SetMergeOperations(std::forward<MergeOperationsT>(value));
216 return *this;
217 }
219 private:
220 Aws::String m_filePath;
221
222 FileSizes m_fileSizes;
223
224 FileModes m_fileModes;
225
226 ObjectTypes m_objectTypes;
227
228 int m_numberOfConflicts{0};
229
230 IsBinaryFile m_isBinaryFile;
231
232 bool m_contentConflict{false};
233
234 bool m_fileModeConflict{false};
235
236 bool m_objectTypeConflict{false};
237
238 MergeOperations m_mergeOperations;
239 bool m_filePathHasBeenSet = false;
240 bool m_fileSizesHasBeenSet = false;
241 bool m_fileModesHasBeenSet = false;
242 bool m_objectTypesHasBeenSet = false;
243 bool m_numberOfConflictsHasBeenSet = false;
244 bool m_isBinaryFileHasBeenSet = false;
245 bool m_contentConflictHasBeenSet = false;
246 bool m_fileModeConflictHasBeenSet = false;
247 bool m_objectTypeConflictHasBeenSet = false;
248 bool m_mergeOperationsHasBeenSet = false;
249};
250
251} // namespace Model
252} // namespace CodeCommit
253} // namespace Aws
ConflictMetadata & WithFileModeConflict(bool value)
void SetObjectTypes(ObjectTypesT &&value)
ConflictMetadata & WithFileSizes(FileSizesT &&value)
ConflictMetadata & WithContentConflict(bool value)
ConflictMetadata & WithMergeOperations(MergeOperationsT &&value)
ConflictMetadata & WithObjectTypes(ObjectTypesT &&value)
ConflictMetadata & WithIsBinaryFile(IsBinaryFileT &&value)
const Aws::String & GetFilePath() const
ConflictMetadata & WithNumberOfConflicts(int value)
const ObjectTypes & GetObjectTypes() const
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API ConflictMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
ConflictMetadata & WithObjectTypeConflict(bool value)
void SetIsBinaryFile(IsBinaryFileT &&value)
ConflictMetadata & WithFileModes(FileModesT &&value)
void SetMergeOperations(MergeOperationsT &&value)
const MergeOperations & GetMergeOperations() const
AWS_CODECOMMIT_API ConflictMetadata()=default
AWS_CODECOMMIT_API ConflictMetadata(Aws::Utils::Json::JsonView jsonValue)
const IsBinaryFile & GetIsBinaryFile() const
ConflictMetadata & WithFilePath(FilePathT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue