AWS SDK for C++

AWS SDK for C++ Version 1.11.924

Loading...
Searching...
No Matches
BatchWriteOperation.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/BatchAddFacetToObject.h>
9#include <aws/clouddirectory/model/BatchAttachObject.h>
10#include <aws/clouddirectory/model/BatchAttachPolicy.h>
11#include <aws/clouddirectory/model/BatchAttachToIndex.h>
12#include <aws/clouddirectory/model/BatchAttachTypedLink.h>
13#include <aws/clouddirectory/model/BatchCreateIndex.h>
14#include <aws/clouddirectory/model/BatchCreateObject.h>
15#include <aws/clouddirectory/model/BatchDeleteObject.h>
16#include <aws/clouddirectory/model/BatchDetachFromIndex.h>
17#include <aws/clouddirectory/model/BatchDetachObject.h>
18#include <aws/clouddirectory/model/BatchDetachPolicy.h>
19#include <aws/clouddirectory/model/BatchDetachTypedLink.h>
20#include <aws/clouddirectory/model/BatchRemoveFacetFromObject.h>
21#include <aws/clouddirectory/model/BatchUpdateLinkAttributes.h>
22#include <aws/clouddirectory/model/BatchUpdateObjectAttributes.h>
23
24#include <utility>
25
26namespace Aws {
27namespace Utils {
28namespace Json {
29class JsonValue;
30class JsonView;
31} // namespace Json
32} // namespace Utils
33namespace CloudDirectory {
34namespace Model {
35
43 public:
44 AWS_CLOUDDIRECTORY_API BatchWriteOperation() = default;
45 AWS_CLOUDDIRECTORY_API BatchWriteOperation(Aws::Utils::Json::JsonView jsonValue);
46 AWS_CLOUDDIRECTORY_API BatchWriteOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
47 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline const BatchCreateObject& GetCreateObject() const { return m_createObject; }
54 inline bool CreateObjectHasBeenSet() const { return m_createObjectHasBeenSet; }
55 template <typename CreateObjectT = BatchCreateObject>
56 void SetCreateObject(CreateObjectT&& value) {
57 m_createObjectHasBeenSet = true;
58 m_createObject = std::forward<CreateObjectT>(value);
59 }
60 template <typename CreateObjectT = BatchCreateObject>
61 BatchWriteOperation& WithCreateObject(CreateObjectT&& value) {
62 SetCreateObject(std::forward<CreateObjectT>(value));
63 return *this;
64 }
66
68
71 inline const BatchAttachObject& GetAttachObject() const { return m_attachObject; }
72 inline bool AttachObjectHasBeenSet() const { return m_attachObjectHasBeenSet; }
73 template <typename AttachObjectT = BatchAttachObject>
74 void SetAttachObject(AttachObjectT&& value) {
75 m_attachObjectHasBeenSet = true;
76 m_attachObject = std::forward<AttachObjectT>(value);
77 }
78 template <typename AttachObjectT = BatchAttachObject>
79 BatchWriteOperation& WithAttachObject(AttachObjectT&& value) {
80 SetAttachObject(std::forward<AttachObjectT>(value));
81 return *this;
82 }
84
86
89 inline const BatchDetachObject& GetDetachObject() const { return m_detachObject; }
90 inline bool DetachObjectHasBeenSet() const { return m_detachObjectHasBeenSet; }
91 template <typename DetachObjectT = BatchDetachObject>
92 void SetDetachObject(DetachObjectT&& value) {
93 m_detachObjectHasBeenSet = true;
94 m_detachObject = std::forward<DetachObjectT>(value);
95 }
96 template <typename DetachObjectT = BatchDetachObject>
97 BatchWriteOperation& WithDetachObject(DetachObjectT&& value) {
98 SetDetachObject(std::forward<DetachObjectT>(value));
99 return *this;
100 }
102
104
107 inline const BatchUpdateObjectAttributes& GetUpdateObjectAttributes() const { return m_updateObjectAttributes; }
108 inline bool UpdateObjectAttributesHasBeenSet() const { return m_updateObjectAttributesHasBeenSet; }
109 template <typename UpdateObjectAttributesT = BatchUpdateObjectAttributes>
110 void SetUpdateObjectAttributes(UpdateObjectAttributesT&& value) {
111 m_updateObjectAttributesHasBeenSet = true;
112 m_updateObjectAttributes = std::forward<UpdateObjectAttributesT>(value);
113 }
114 template <typename UpdateObjectAttributesT = BatchUpdateObjectAttributes>
115 BatchWriteOperation& WithUpdateObjectAttributes(UpdateObjectAttributesT&& value) {
116 SetUpdateObjectAttributes(std::forward<UpdateObjectAttributesT>(value));
117 return *this;
118 }
120
122
125 inline const BatchDeleteObject& GetDeleteObject() const { return m_deleteObject; }
126 inline bool DeleteObjectHasBeenSet() const { return m_deleteObjectHasBeenSet; }
127 template <typename DeleteObjectT = BatchDeleteObject>
128 void SetDeleteObject(DeleteObjectT&& value) {
129 m_deleteObjectHasBeenSet = true;
130 m_deleteObject = std::forward<DeleteObjectT>(value);
131 }
132 template <typename DeleteObjectT = BatchDeleteObject>
133 BatchWriteOperation& WithDeleteObject(DeleteObjectT&& value) {
134 SetDeleteObject(std::forward<DeleteObjectT>(value));
135 return *this;
136 }
138
140
143 inline const BatchAddFacetToObject& GetAddFacetToObject() const { return m_addFacetToObject; }
144 inline bool AddFacetToObjectHasBeenSet() const { return m_addFacetToObjectHasBeenSet; }
145 template <typename AddFacetToObjectT = BatchAddFacetToObject>
146 void SetAddFacetToObject(AddFacetToObjectT&& value) {
147 m_addFacetToObjectHasBeenSet = true;
148 m_addFacetToObject = std::forward<AddFacetToObjectT>(value);
149 }
150 template <typename AddFacetToObjectT = BatchAddFacetToObject>
151 BatchWriteOperation& WithAddFacetToObject(AddFacetToObjectT&& value) {
152 SetAddFacetToObject(std::forward<AddFacetToObjectT>(value));
153 return *this;
154 }
156
158
161 inline const BatchRemoveFacetFromObject& GetRemoveFacetFromObject() const { return m_removeFacetFromObject; }
162 inline bool RemoveFacetFromObjectHasBeenSet() const { return m_removeFacetFromObjectHasBeenSet; }
163 template <typename RemoveFacetFromObjectT = BatchRemoveFacetFromObject>
164 void SetRemoveFacetFromObject(RemoveFacetFromObjectT&& value) {
165 m_removeFacetFromObjectHasBeenSet = true;
166 m_removeFacetFromObject = std::forward<RemoveFacetFromObjectT>(value);
167 }
168 template <typename RemoveFacetFromObjectT = BatchRemoveFacetFromObject>
169 BatchWriteOperation& WithRemoveFacetFromObject(RemoveFacetFromObjectT&& value) {
170 SetRemoveFacetFromObject(std::forward<RemoveFacetFromObjectT>(value));
171 return *this;
172 }
174
176
180 inline const BatchAttachPolicy& GetAttachPolicy() const { return m_attachPolicy; }
181 inline bool AttachPolicyHasBeenSet() const { return m_attachPolicyHasBeenSet; }
182 template <typename AttachPolicyT = BatchAttachPolicy>
183 void SetAttachPolicy(AttachPolicyT&& value) {
184 m_attachPolicyHasBeenSet = true;
185 m_attachPolicy = std::forward<AttachPolicyT>(value);
186 }
187 template <typename AttachPolicyT = BatchAttachPolicy>
188 BatchWriteOperation& WithAttachPolicy(AttachPolicyT&& value) {
189 SetAttachPolicy(std::forward<AttachPolicyT>(value));
190 return *this;
191 }
193
195
198 inline const BatchDetachPolicy& GetDetachPolicy() const { return m_detachPolicy; }
199 inline bool DetachPolicyHasBeenSet() const { return m_detachPolicyHasBeenSet; }
200 template <typename DetachPolicyT = BatchDetachPolicy>
201 void SetDetachPolicy(DetachPolicyT&& value) {
202 m_detachPolicyHasBeenSet = true;
203 m_detachPolicy = std::forward<DetachPolicyT>(value);
204 }
205 template <typename DetachPolicyT = BatchDetachPolicy>
206 BatchWriteOperation& WithDetachPolicy(DetachPolicyT&& value) {
207 SetDetachPolicy(std::forward<DetachPolicyT>(value));
208 return *this;
209 }
211
213
218 inline const BatchCreateIndex& GetCreateIndex() const { return m_createIndex; }
219 inline bool CreateIndexHasBeenSet() const { return m_createIndexHasBeenSet; }
220 template <typename CreateIndexT = BatchCreateIndex>
221 void SetCreateIndex(CreateIndexT&& value) {
222 m_createIndexHasBeenSet = true;
223 m_createIndex = std::forward<CreateIndexT>(value);
224 }
225 template <typename CreateIndexT = BatchCreateIndex>
226 BatchWriteOperation& WithCreateIndex(CreateIndexT&& value) {
227 SetCreateIndex(std::forward<CreateIndexT>(value));
228 return *this;
229 }
231
233
236 inline const BatchAttachToIndex& GetAttachToIndex() const { return m_attachToIndex; }
237 inline bool AttachToIndexHasBeenSet() const { return m_attachToIndexHasBeenSet; }
238 template <typename AttachToIndexT = BatchAttachToIndex>
239 void SetAttachToIndex(AttachToIndexT&& value) {
240 m_attachToIndexHasBeenSet = true;
241 m_attachToIndex = std::forward<AttachToIndexT>(value);
242 }
243 template <typename AttachToIndexT = BatchAttachToIndex>
244 BatchWriteOperation& WithAttachToIndex(AttachToIndexT&& value) {
245 SetAttachToIndex(std::forward<AttachToIndexT>(value));
246 return *this;
247 }
249
251
254 inline const BatchDetachFromIndex& GetDetachFromIndex() const { return m_detachFromIndex; }
255 inline bool DetachFromIndexHasBeenSet() const { return m_detachFromIndexHasBeenSet; }
256 template <typename DetachFromIndexT = BatchDetachFromIndex>
257 void SetDetachFromIndex(DetachFromIndexT&& value) {
258 m_detachFromIndexHasBeenSet = true;
259 m_detachFromIndex = std::forward<DetachFromIndexT>(value);
260 }
261 template <typename DetachFromIndexT = BatchDetachFromIndex>
262 BatchWriteOperation& WithDetachFromIndex(DetachFromIndexT&& value) {
263 SetDetachFromIndex(std::forward<DetachFromIndexT>(value));
264 return *this;
265 }
267
269
275 inline const BatchAttachTypedLink& GetAttachTypedLink() const { return m_attachTypedLink; }
276 inline bool AttachTypedLinkHasBeenSet() const { return m_attachTypedLinkHasBeenSet; }
277 template <typename AttachTypedLinkT = BatchAttachTypedLink>
278 void SetAttachTypedLink(AttachTypedLinkT&& value) {
279 m_attachTypedLinkHasBeenSet = true;
280 m_attachTypedLink = std::forward<AttachTypedLinkT>(value);
281 }
282 template <typename AttachTypedLinkT = BatchAttachTypedLink>
283 BatchWriteOperation& WithAttachTypedLink(AttachTypedLinkT&& value) {
284 SetAttachTypedLink(std::forward<AttachTypedLinkT>(value));
285 return *this;
286 }
288
290
296 inline const BatchDetachTypedLink& GetDetachTypedLink() const { return m_detachTypedLink; }
297 inline bool DetachTypedLinkHasBeenSet() const { return m_detachTypedLinkHasBeenSet; }
298 template <typename DetachTypedLinkT = BatchDetachTypedLink>
299 void SetDetachTypedLink(DetachTypedLinkT&& value) {
300 m_detachTypedLinkHasBeenSet = true;
301 m_detachTypedLink = std::forward<DetachTypedLinkT>(value);
302 }
303 template <typename DetachTypedLinkT = BatchDetachTypedLink>
304 BatchWriteOperation& WithDetachTypedLink(DetachTypedLinkT&& value) {
305 SetDetachTypedLink(std::forward<DetachTypedLinkT>(value));
306 return *this;
307 }
309
311
314 inline const BatchUpdateLinkAttributes& GetUpdateLinkAttributes() const { return m_updateLinkAttributes; }
315 inline bool UpdateLinkAttributesHasBeenSet() const { return m_updateLinkAttributesHasBeenSet; }
316 template <typename UpdateLinkAttributesT = BatchUpdateLinkAttributes>
317 void SetUpdateLinkAttributes(UpdateLinkAttributesT&& value) {
318 m_updateLinkAttributesHasBeenSet = true;
319 m_updateLinkAttributes = std::forward<UpdateLinkAttributesT>(value);
320 }
321 template <typename UpdateLinkAttributesT = BatchUpdateLinkAttributes>
322 BatchWriteOperation& WithUpdateLinkAttributes(UpdateLinkAttributesT&& value) {
323 SetUpdateLinkAttributes(std::forward<UpdateLinkAttributesT>(value));
324 return *this;
325 }
327 private:
328 BatchCreateObject m_createObject;
329
330 BatchAttachObject m_attachObject;
331
332 BatchDetachObject m_detachObject;
333
334 BatchUpdateObjectAttributes m_updateObjectAttributes;
335
336 BatchDeleteObject m_deleteObject;
337
338 BatchAddFacetToObject m_addFacetToObject;
339
340 BatchRemoveFacetFromObject m_removeFacetFromObject;
341
342 BatchAttachPolicy m_attachPolicy;
343
344 BatchDetachPolicy m_detachPolicy;
345
346 BatchCreateIndex m_createIndex;
347
348 BatchAttachToIndex m_attachToIndex;
349
350 BatchDetachFromIndex m_detachFromIndex;
351
352 BatchAttachTypedLink m_attachTypedLink;
353
354 BatchDetachTypedLink m_detachTypedLink;
355
356 BatchUpdateLinkAttributes m_updateLinkAttributes;
357 bool m_createObjectHasBeenSet = false;
358 bool m_attachObjectHasBeenSet = false;
359 bool m_detachObjectHasBeenSet = false;
360 bool m_updateObjectAttributesHasBeenSet = false;
361 bool m_deleteObjectHasBeenSet = false;
362 bool m_addFacetToObjectHasBeenSet = false;
363 bool m_removeFacetFromObjectHasBeenSet = false;
364 bool m_attachPolicyHasBeenSet = false;
365 bool m_detachPolicyHasBeenSet = false;
366 bool m_createIndexHasBeenSet = false;
367 bool m_attachToIndexHasBeenSet = false;
368 bool m_detachFromIndexHasBeenSet = false;
369 bool m_attachTypedLinkHasBeenSet = false;
370 bool m_detachTypedLinkHasBeenSet = false;
371 bool m_updateLinkAttributesHasBeenSet = false;
372};
373
374} // namespace Model
375} // namespace CloudDirectory
376} // namespace Aws
BatchWriteOperation & WithCreateIndex(CreateIndexT &&value)
const BatchDetachObject & GetDetachObject() const
const BatchAttachObject & GetAttachObject() const
const BatchDetachFromIndex & GetDetachFromIndex() const
BatchWriteOperation & WithUpdateObjectAttributes(UpdateObjectAttributesT &&value)
BatchWriteOperation & WithAttachPolicy(AttachPolicyT &&value)
const BatchAttachTypedLink & GetAttachTypedLink() const
BatchWriteOperation & WithDetachFromIndex(DetachFromIndexT &&value)
BatchWriteOperation & WithAttachObject(AttachObjectT &&value)
void SetUpdateLinkAttributes(UpdateLinkAttributesT &&value)
BatchWriteOperation & WithCreateObject(CreateObjectT &&value)
BatchWriteOperation & WithAttachTypedLink(AttachTypedLinkT &&value)
void SetRemoveFacetFromObject(RemoveFacetFromObjectT &&value)
BatchWriteOperation & WithDetachObject(DetachObjectT &&value)
AWS_CLOUDDIRECTORY_API BatchWriteOperation(Aws::Utils::Json::JsonView jsonValue)
BatchWriteOperation & WithUpdateLinkAttributes(UpdateLinkAttributesT &&value)
const BatchRemoveFacetFromObject & GetRemoveFacetFromObject() const
void SetUpdateObjectAttributes(UpdateObjectAttributesT &&value)
BatchWriteOperation & WithAttachToIndex(AttachToIndexT &&value)
const BatchDeleteObject & GetDeleteObject() const
AWS_CLOUDDIRECTORY_API BatchWriteOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
const BatchUpdateLinkAttributes & GetUpdateLinkAttributes() const
const BatchAttachToIndex & GetAttachToIndex() const
BatchWriteOperation & WithDetachPolicy(DetachPolicyT &&value)
AWS_CLOUDDIRECTORY_API BatchWriteOperation()=default
BatchWriteOperation & WithAddFacetToObject(AddFacetToObjectT &&value)
BatchWriteOperation & WithDeleteObject(DeleteObjectT &&value)
const BatchAttachPolicy & GetAttachPolicy() const
void SetAddFacetToObject(AddFacetToObjectT &&value)
const BatchCreateObject & GetCreateObject() const
const BatchAddFacetToObject & GetAddFacetToObject() const
BatchWriteOperation & WithRemoveFacetFromObject(RemoveFacetFromObjectT &&value)
BatchWriteOperation & WithDetachTypedLink(DetachTypedLinkT &&value)
const BatchDetachTypedLink & GetDetachTypedLink() const
const BatchUpdateObjectAttributes & GetUpdateObjectAttributes() const
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
const BatchDetachPolicy & GetDetachPolicy() const
Aws::Utils::Json::JsonValue JsonValue