AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ConflictMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/FileSizes.h>
10#include <aws/codecommit/model/FileModes.h>
11#include <aws/codecommit/model/ObjectTypes.h>
12#include <aws/codecommit/model/IsBinaryFile.h>
13#include <aws/codecommit/model/MergeOperations.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace CodeCommit
27{
28namespace Model
29{
30
38 {
39 public:
40 AWS_CODECOMMIT_API ConflictMetadata();
41 AWS_CODECOMMIT_API ConflictMetadata(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline const Aws::String& GetFilePath() const{ return m_filePath; }
51 inline bool FilePathHasBeenSet() const { return m_filePathHasBeenSet; }
52 inline void SetFilePath(const Aws::String& value) { m_filePathHasBeenSet = true; m_filePath = value; }
53 inline void SetFilePath(Aws::String&& value) { m_filePathHasBeenSet = true; m_filePath = std::move(value); }
54 inline void SetFilePath(const char* value) { m_filePathHasBeenSet = true; m_filePath.assign(value); }
55 inline ConflictMetadata& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
56 inline ConflictMetadata& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
57 inline ConflictMetadata& WithFilePath(const char* value) { SetFilePath(value); return *this;}
59
61
65 inline const FileSizes& GetFileSizes() const{ return m_fileSizes; }
66 inline bool FileSizesHasBeenSet() const { return m_fileSizesHasBeenSet; }
67 inline void SetFileSizes(const FileSizes& value) { m_fileSizesHasBeenSet = true; m_fileSizes = value; }
68 inline void SetFileSizes(FileSizes&& value) { m_fileSizesHasBeenSet = true; m_fileSizes = std::move(value); }
69 inline ConflictMetadata& WithFileSizes(const FileSizes& value) { SetFileSizes(value); return *this;}
70 inline ConflictMetadata& WithFileSizes(FileSizes&& value) { SetFileSizes(std::move(value)); return *this;}
72
74
78 inline const FileModes& GetFileModes() const{ return m_fileModes; }
79 inline bool FileModesHasBeenSet() const { return m_fileModesHasBeenSet; }
80 inline void SetFileModes(const FileModes& value) { m_fileModesHasBeenSet = true; m_fileModes = value; }
81 inline void SetFileModes(FileModes&& value) { m_fileModesHasBeenSet = true; m_fileModes = std::move(value); }
82 inline ConflictMetadata& WithFileModes(const FileModes& value) { SetFileModes(value); return *this;}
83 inline ConflictMetadata& WithFileModes(FileModes&& value) { SetFileModes(std::move(value)); return *this;}
85
87
90 inline const ObjectTypes& GetObjectTypes() const{ return m_objectTypes; }
91 inline bool ObjectTypesHasBeenSet() const { return m_objectTypesHasBeenSet; }
92 inline void SetObjectTypes(const ObjectTypes& value) { m_objectTypesHasBeenSet = true; m_objectTypes = value; }
93 inline void SetObjectTypes(ObjectTypes&& value) { m_objectTypesHasBeenSet = true; m_objectTypes = std::move(value); }
94 inline ConflictMetadata& WithObjectTypes(const ObjectTypes& value) { SetObjectTypes(value); return *this;}
95 inline ConflictMetadata& WithObjectTypes(ObjectTypes&& value) { SetObjectTypes(std::move(value)); return *this;}
97
99
103 inline int GetNumberOfConflicts() const{ return m_numberOfConflicts; }
104 inline bool NumberOfConflictsHasBeenSet() const { return m_numberOfConflictsHasBeenSet; }
105 inline void SetNumberOfConflicts(int value) { m_numberOfConflictsHasBeenSet = true; m_numberOfConflicts = value; }
106 inline ConflictMetadata& WithNumberOfConflicts(int value) { SetNumberOfConflicts(value); return *this;}
108
110
114 inline const IsBinaryFile& GetIsBinaryFile() const{ return m_isBinaryFile; }
115 inline bool IsBinaryFileHasBeenSet() const { return m_isBinaryFileHasBeenSet; }
116 inline void SetIsBinaryFile(const IsBinaryFile& value) { m_isBinaryFileHasBeenSet = true; m_isBinaryFile = value; }
117 inline void SetIsBinaryFile(IsBinaryFile&& value) { m_isBinaryFileHasBeenSet = true; m_isBinaryFile = std::move(value); }
118 inline ConflictMetadata& WithIsBinaryFile(const IsBinaryFile& value) { SetIsBinaryFile(value); return *this;}
119 inline ConflictMetadata& WithIsBinaryFile(IsBinaryFile&& value) { SetIsBinaryFile(std::move(value)); return *this;}
121
123
127 inline bool GetContentConflict() const{ return m_contentConflict; }
128 inline bool ContentConflictHasBeenSet() const { return m_contentConflictHasBeenSet; }
129 inline void SetContentConflict(bool value) { m_contentConflictHasBeenSet = true; m_contentConflict = value; }
130 inline ConflictMetadata& WithContentConflict(bool value) { SetContentConflict(value); return *this;}
132
134
138 inline bool GetFileModeConflict() const{ return m_fileModeConflict; }
139 inline bool FileModeConflictHasBeenSet() const { return m_fileModeConflictHasBeenSet; }
140 inline void SetFileModeConflict(bool value) { m_fileModeConflictHasBeenSet = true; m_fileModeConflict = value; }
141 inline ConflictMetadata& WithFileModeConflict(bool value) { SetFileModeConflict(value); return *this;}
143
145
149 inline bool GetObjectTypeConflict() const{ return m_objectTypeConflict; }
150 inline bool ObjectTypeConflictHasBeenSet() const { return m_objectTypeConflictHasBeenSet; }
151 inline void SetObjectTypeConflict(bool value) { m_objectTypeConflictHasBeenSet = true; m_objectTypeConflict = value; }
152 inline ConflictMetadata& WithObjectTypeConflict(bool value) { SetObjectTypeConflict(value); return *this;}
154
156
160 inline const MergeOperations& GetMergeOperations() const{ return m_mergeOperations; }
161 inline bool MergeOperationsHasBeenSet() const { return m_mergeOperationsHasBeenSet; }
162 inline void SetMergeOperations(const MergeOperations& value) { m_mergeOperationsHasBeenSet = true; m_mergeOperations = value; }
163 inline void SetMergeOperations(MergeOperations&& value) { m_mergeOperationsHasBeenSet = true; m_mergeOperations = std::move(value); }
164 inline ConflictMetadata& WithMergeOperations(const MergeOperations& value) { SetMergeOperations(value); return *this;}
165 inline ConflictMetadata& WithMergeOperations(MergeOperations&& value) { SetMergeOperations(std::move(value)); return *this;}
167 private:
168
169 Aws::String m_filePath;
170 bool m_filePathHasBeenSet = false;
171
172 FileSizes m_fileSizes;
173 bool m_fileSizesHasBeenSet = false;
174
175 FileModes m_fileModes;
176 bool m_fileModesHasBeenSet = false;
177
178 ObjectTypes m_objectTypes;
179 bool m_objectTypesHasBeenSet = false;
180
181 int m_numberOfConflicts;
182 bool m_numberOfConflictsHasBeenSet = false;
183
184 IsBinaryFile m_isBinaryFile;
185 bool m_isBinaryFileHasBeenSet = false;
186
187 bool m_contentConflict;
188 bool m_contentConflictHasBeenSet = false;
189
190 bool m_fileModeConflict;
191 bool m_fileModeConflictHasBeenSet = false;
192
193 bool m_objectTypeConflict;
194 bool m_objectTypeConflictHasBeenSet = false;
195
196 MergeOperations m_mergeOperations;
197 bool m_mergeOperationsHasBeenSet = false;
198 };
199
200} // namespace Model
201} // namespace CodeCommit
202} // namespace Aws
ConflictMetadata & WithIsBinaryFile(const IsBinaryFile &value)
ConflictMetadata & WithFileSizes(FileSizes &&value)
ConflictMetadata & WithIsBinaryFile(IsBinaryFile &&value)
ConflictMetadata & WithFileModeConflict(bool value)
void SetMergeOperations(MergeOperations &&value)
void SetFileModes(const FileModes &value)
ConflictMetadata & WithFilePath(const char *value)
ConflictMetadata & WithContentConflict(bool value)
ConflictMetadata & WithObjectTypes(const ObjectTypes &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 & WithMergeOperations(MergeOperations &&value)
ConflictMetadata & WithObjectTypeConflict(bool value)
void SetIsBinaryFile(IsBinaryFile &&value)
ConflictMetadata & WithFilePath(Aws::String &&value)
ConflictMetadata & WithMergeOperations(const MergeOperations &value)
ConflictMetadata & WithObjectTypes(ObjectTypes &&value)
const MergeOperations & GetMergeOperations() const
void SetIsBinaryFile(const IsBinaryFile &value)
AWS_CODECOMMIT_API ConflictMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetFileSizes(const FileSizes &value)
ConflictMetadata & WithFileSizes(const FileSizes &value)
ConflictMetadata & WithFileModes(FileModes &&value)
void SetObjectTypes(const ObjectTypes &value)
ConflictMetadata & WithFilePath(const Aws::String &value)
const IsBinaryFile & GetIsBinaryFile() const
ConflictMetadata & WithFileModes(const FileModes &value)
void SetFilePath(const Aws::String &value)
void SetMergeOperations(const MergeOperations &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue