AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
BatchWriteOperation.h
1
6#pragma once
7#include <aws/clouddirectory/CloudDirectory_EXPORTS.h>
8#include <aws/clouddirectory/model/BatchCreateObject.h>
9#include <aws/clouddirectory/model/BatchAttachObject.h>
10#include <aws/clouddirectory/model/BatchDetachObject.h>
11#include <aws/clouddirectory/model/BatchUpdateObjectAttributes.h>
12#include <aws/clouddirectory/model/BatchDeleteObject.h>
13#include <aws/clouddirectory/model/BatchAddFacetToObject.h>
14#include <aws/clouddirectory/model/BatchRemoveFacetFromObject.h>
15#include <aws/clouddirectory/model/BatchAttachPolicy.h>
16#include <aws/clouddirectory/model/BatchDetachPolicy.h>
17#include <aws/clouddirectory/model/BatchCreateIndex.h>
18#include <aws/clouddirectory/model/BatchAttachToIndex.h>
19#include <aws/clouddirectory/model/BatchDetachFromIndex.h>
20#include <aws/clouddirectory/model/BatchAttachTypedLink.h>
21#include <aws/clouddirectory/model/BatchDetachTypedLink.h>
22#include <aws/clouddirectory/model/BatchUpdateLinkAttributes.h>
23#include <utility>
24
25namespace Aws
26{
27namespace Utils
28{
29namespace Json
30{
31 class JsonValue;
32 class JsonView;
33} // namespace Json
34} // namespace Utils
35namespace CloudDirectory
36{
37namespace Model
38{
39
47 {
48 public:
49 AWS_CLOUDDIRECTORY_API BatchWriteOperation();
50 AWS_CLOUDDIRECTORY_API BatchWriteOperation(Aws::Utils::Json::JsonView jsonValue);
51 AWS_CLOUDDIRECTORY_API BatchWriteOperation& operator=(Aws::Utils::Json::JsonView jsonValue);
52 AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const;
53
54
56
59 inline const BatchCreateObject& GetCreateObject() const{ return m_createObject; }
60 inline bool CreateObjectHasBeenSet() const { return m_createObjectHasBeenSet; }
61 inline void SetCreateObject(const BatchCreateObject& value) { m_createObjectHasBeenSet = true; m_createObject = value; }
62 inline void SetCreateObject(BatchCreateObject&& value) { m_createObjectHasBeenSet = true; m_createObject = std::move(value); }
63 inline BatchWriteOperation& WithCreateObject(const BatchCreateObject& value) { SetCreateObject(value); return *this;}
64 inline BatchWriteOperation& WithCreateObject(BatchCreateObject&& value) { SetCreateObject(std::move(value)); return *this;}
66
68
71 inline const BatchAttachObject& GetAttachObject() const{ return m_attachObject; }
72 inline bool AttachObjectHasBeenSet() const { return m_attachObjectHasBeenSet; }
73 inline void SetAttachObject(const BatchAttachObject& value) { m_attachObjectHasBeenSet = true; m_attachObject = value; }
74 inline void SetAttachObject(BatchAttachObject&& value) { m_attachObjectHasBeenSet = true; m_attachObject = std::move(value); }
75 inline BatchWriteOperation& WithAttachObject(const BatchAttachObject& value) { SetAttachObject(value); return *this;}
76 inline BatchWriteOperation& WithAttachObject(BatchAttachObject&& value) { SetAttachObject(std::move(value)); return *this;}
78
80
83 inline const BatchDetachObject& GetDetachObject() const{ return m_detachObject; }
84 inline bool DetachObjectHasBeenSet() const { return m_detachObjectHasBeenSet; }
85 inline void SetDetachObject(const BatchDetachObject& value) { m_detachObjectHasBeenSet = true; m_detachObject = value; }
86 inline void SetDetachObject(BatchDetachObject&& value) { m_detachObjectHasBeenSet = true; m_detachObject = std::move(value); }
87 inline BatchWriteOperation& WithDetachObject(const BatchDetachObject& value) { SetDetachObject(value); return *this;}
88 inline BatchWriteOperation& WithDetachObject(BatchDetachObject&& value) { SetDetachObject(std::move(value)); return *this;}
90
92
95 inline const BatchUpdateObjectAttributes& GetUpdateObjectAttributes() const{ return m_updateObjectAttributes; }
96 inline bool UpdateObjectAttributesHasBeenSet() const { return m_updateObjectAttributesHasBeenSet; }
97 inline void SetUpdateObjectAttributes(const BatchUpdateObjectAttributes& value) { m_updateObjectAttributesHasBeenSet = true; m_updateObjectAttributes = value; }
98 inline void SetUpdateObjectAttributes(BatchUpdateObjectAttributes&& value) { m_updateObjectAttributesHasBeenSet = true; m_updateObjectAttributes = std::move(value); }
102
104
107 inline const BatchDeleteObject& GetDeleteObject() const{ return m_deleteObject; }
108 inline bool DeleteObjectHasBeenSet() const { return m_deleteObjectHasBeenSet; }
109 inline void SetDeleteObject(const BatchDeleteObject& value) { m_deleteObjectHasBeenSet = true; m_deleteObject = value; }
110 inline void SetDeleteObject(BatchDeleteObject&& value) { m_deleteObjectHasBeenSet = true; m_deleteObject = std::move(value); }
111 inline BatchWriteOperation& WithDeleteObject(const BatchDeleteObject& value) { SetDeleteObject(value); return *this;}
112 inline BatchWriteOperation& WithDeleteObject(BatchDeleteObject&& value) { SetDeleteObject(std::move(value)); return *this;}
114
116
119 inline const BatchAddFacetToObject& GetAddFacetToObject() const{ return m_addFacetToObject; }
120 inline bool AddFacetToObjectHasBeenSet() const { return m_addFacetToObjectHasBeenSet; }
121 inline void SetAddFacetToObject(const BatchAddFacetToObject& value) { m_addFacetToObjectHasBeenSet = true; m_addFacetToObject = value; }
122 inline void SetAddFacetToObject(BatchAddFacetToObject&& value) { m_addFacetToObjectHasBeenSet = true; m_addFacetToObject = std::move(value); }
124 inline BatchWriteOperation& WithAddFacetToObject(BatchAddFacetToObject&& value) { SetAddFacetToObject(std::move(value)); return *this;}
126
128
131 inline const BatchRemoveFacetFromObject& GetRemoveFacetFromObject() const{ return m_removeFacetFromObject; }
132 inline bool RemoveFacetFromObjectHasBeenSet() const { return m_removeFacetFromObjectHasBeenSet; }
133 inline void SetRemoveFacetFromObject(const BatchRemoveFacetFromObject& value) { m_removeFacetFromObjectHasBeenSet = true; m_removeFacetFromObject = value; }
134 inline void SetRemoveFacetFromObject(BatchRemoveFacetFromObject&& value) { m_removeFacetFromObjectHasBeenSet = true; m_removeFacetFromObject = std::move(value); }
138
140
144 inline const BatchAttachPolicy& GetAttachPolicy() const{ return m_attachPolicy; }
145 inline bool AttachPolicyHasBeenSet() const { return m_attachPolicyHasBeenSet; }
146 inline void SetAttachPolicy(const BatchAttachPolicy& value) { m_attachPolicyHasBeenSet = true; m_attachPolicy = value; }
147 inline void SetAttachPolicy(BatchAttachPolicy&& value) { m_attachPolicyHasBeenSet = true; m_attachPolicy = std::move(value); }
148 inline BatchWriteOperation& WithAttachPolicy(const BatchAttachPolicy& value) { SetAttachPolicy(value); return *this;}
149 inline BatchWriteOperation& WithAttachPolicy(BatchAttachPolicy&& value) { SetAttachPolicy(std::move(value)); return *this;}
151
153
156 inline const BatchDetachPolicy& GetDetachPolicy() const{ return m_detachPolicy; }
157 inline bool DetachPolicyHasBeenSet() const { return m_detachPolicyHasBeenSet; }
158 inline void SetDetachPolicy(const BatchDetachPolicy& value) { m_detachPolicyHasBeenSet = true; m_detachPolicy = value; }
159 inline void SetDetachPolicy(BatchDetachPolicy&& value) { m_detachPolicyHasBeenSet = true; m_detachPolicy = std::move(value); }
160 inline BatchWriteOperation& WithDetachPolicy(const BatchDetachPolicy& value) { SetDetachPolicy(value); return *this;}
161 inline BatchWriteOperation& WithDetachPolicy(BatchDetachPolicy&& value) { SetDetachPolicy(std::move(value)); return *this;}
163
165
170 inline const BatchCreateIndex& GetCreateIndex() const{ return m_createIndex; }
171 inline bool CreateIndexHasBeenSet() const { return m_createIndexHasBeenSet; }
172 inline void SetCreateIndex(const BatchCreateIndex& value) { m_createIndexHasBeenSet = true; m_createIndex = value; }
173 inline void SetCreateIndex(BatchCreateIndex&& value) { m_createIndexHasBeenSet = true; m_createIndex = std::move(value); }
174 inline BatchWriteOperation& WithCreateIndex(const BatchCreateIndex& value) { SetCreateIndex(value); return *this;}
175 inline BatchWriteOperation& WithCreateIndex(BatchCreateIndex&& value) { SetCreateIndex(std::move(value)); return *this;}
177
179
182 inline const BatchAttachToIndex& GetAttachToIndex() const{ return m_attachToIndex; }
183 inline bool AttachToIndexHasBeenSet() const { return m_attachToIndexHasBeenSet; }
184 inline void SetAttachToIndex(const BatchAttachToIndex& value) { m_attachToIndexHasBeenSet = true; m_attachToIndex = value; }
185 inline void SetAttachToIndex(BatchAttachToIndex&& value) { m_attachToIndexHasBeenSet = true; m_attachToIndex = std::move(value); }
186 inline BatchWriteOperation& WithAttachToIndex(const BatchAttachToIndex& value) { SetAttachToIndex(value); return *this;}
187 inline BatchWriteOperation& WithAttachToIndex(BatchAttachToIndex&& value) { SetAttachToIndex(std::move(value)); return *this;}
189
191
194 inline const BatchDetachFromIndex& GetDetachFromIndex() const{ return m_detachFromIndex; }
195 inline bool DetachFromIndexHasBeenSet() const { return m_detachFromIndexHasBeenSet; }
196 inline void SetDetachFromIndex(const BatchDetachFromIndex& value) { m_detachFromIndexHasBeenSet = true; m_detachFromIndex = value; }
197 inline void SetDetachFromIndex(BatchDetachFromIndex&& value) { m_detachFromIndexHasBeenSet = true; m_detachFromIndex = std::move(value); }
199 inline BatchWriteOperation& WithDetachFromIndex(BatchDetachFromIndex&& value) { SetDetachFromIndex(std::move(value)); return *this;}
201
203
209 inline const BatchAttachTypedLink& GetAttachTypedLink() const{ return m_attachTypedLink; }
210 inline bool AttachTypedLinkHasBeenSet() const { return m_attachTypedLinkHasBeenSet; }
211 inline void SetAttachTypedLink(const BatchAttachTypedLink& value) { m_attachTypedLinkHasBeenSet = true; m_attachTypedLink = value; }
212 inline void SetAttachTypedLink(BatchAttachTypedLink&& value) { m_attachTypedLinkHasBeenSet = true; m_attachTypedLink = std::move(value); }
214 inline BatchWriteOperation& WithAttachTypedLink(BatchAttachTypedLink&& value) { SetAttachTypedLink(std::move(value)); return *this;}
216
218
224 inline const BatchDetachTypedLink& GetDetachTypedLink() const{ return m_detachTypedLink; }
225 inline bool DetachTypedLinkHasBeenSet() const { return m_detachTypedLinkHasBeenSet; }
226 inline void SetDetachTypedLink(const BatchDetachTypedLink& value) { m_detachTypedLinkHasBeenSet = true; m_detachTypedLink = value; }
227 inline void SetDetachTypedLink(BatchDetachTypedLink&& value) { m_detachTypedLinkHasBeenSet = true; m_detachTypedLink = std::move(value); }
229 inline BatchWriteOperation& WithDetachTypedLink(BatchDetachTypedLink&& value) { SetDetachTypedLink(std::move(value)); return *this;}
231
233
236 inline const BatchUpdateLinkAttributes& GetUpdateLinkAttributes() const{ return m_updateLinkAttributes; }
237 inline bool UpdateLinkAttributesHasBeenSet() const { return m_updateLinkAttributesHasBeenSet; }
238 inline void SetUpdateLinkAttributes(const BatchUpdateLinkAttributes& value) { m_updateLinkAttributesHasBeenSet = true; m_updateLinkAttributes = value; }
239 inline void SetUpdateLinkAttributes(BatchUpdateLinkAttributes&& value) { m_updateLinkAttributesHasBeenSet = true; m_updateLinkAttributes = std::move(value); }
243 private:
244
245 BatchCreateObject m_createObject;
246 bool m_createObjectHasBeenSet = false;
247
248 BatchAttachObject m_attachObject;
249 bool m_attachObjectHasBeenSet = false;
250
251 BatchDetachObject m_detachObject;
252 bool m_detachObjectHasBeenSet = false;
253
254 BatchUpdateObjectAttributes m_updateObjectAttributes;
255 bool m_updateObjectAttributesHasBeenSet = false;
256
257 BatchDeleteObject m_deleteObject;
258 bool m_deleteObjectHasBeenSet = false;
259
260 BatchAddFacetToObject m_addFacetToObject;
261 bool m_addFacetToObjectHasBeenSet = false;
262
263 BatchRemoveFacetFromObject m_removeFacetFromObject;
264 bool m_removeFacetFromObjectHasBeenSet = false;
265
266 BatchAttachPolicy m_attachPolicy;
267 bool m_attachPolicyHasBeenSet = false;
268
269 BatchDetachPolicy m_detachPolicy;
270 bool m_detachPolicyHasBeenSet = false;
271
272 BatchCreateIndex m_createIndex;
273 bool m_createIndexHasBeenSet = false;
274
275 BatchAttachToIndex m_attachToIndex;
276 bool m_attachToIndexHasBeenSet = false;
277
278 BatchDetachFromIndex m_detachFromIndex;
279 bool m_detachFromIndexHasBeenSet = false;
280
281 BatchAttachTypedLink m_attachTypedLink;
282 bool m_attachTypedLinkHasBeenSet = false;
283
284 BatchDetachTypedLink m_detachTypedLink;
285 bool m_detachTypedLinkHasBeenSet = false;
286
287 BatchUpdateLinkAttributes m_updateLinkAttributes;
288 bool m_updateLinkAttributesHasBeenSet = false;
289 };
290
291} // namespace Model
292} // namespace CloudDirectory
293} // namespace Aws
BatchWriteOperation & WithAttachPolicy(const BatchAttachPolicy &value)
void SetUpdateObjectAttributes(const BatchUpdateObjectAttributes &value)
const BatchDetachObject & GetDetachObject() const
const BatchAttachObject & GetAttachObject() const
BatchWriteOperation & WithUpdateLinkAttributes(BatchUpdateLinkAttributes &&value)
BatchWriteOperation & WithAttachTypedLink(const BatchAttachTypedLink &value)
const BatchDetachFromIndex & GetDetachFromIndex() const
void SetAttachToIndex(BatchAttachToIndex &&value)
void SetAttachObject(const BatchAttachObject &value)
const BatchAttachTypedLink & GetAttachTypedLink() const
BatchWriteOperation & WithAttachToIndex(const BatchAttachToIndex &value)
BatchWriteOperation & WithRemoveFacetFromObject(const BatchRemoveFacetFromObject &value)
void SetRemoveFacetFromObject(BatchRemoveFacetFromObject &&value)
BatchWriteOperation & WithDetachObject(BatchDetachObject &&value)
void SetAttachTypedLink(BatchAttachTypedLink &&value)
BatchWriteOperation & WithCreateIndex(BatchCreateIndex &&value)
void SetAttachPolicy(const BatchAttachPolicy &value)
BatchWriteOperation & WithAttachObject(const BatchAttachObject &value)
void SetCreateObject(const BatchCreateObject &value)
BatchWriteOperation & WithDeleteObject(BatchDeleteObject &&value)
BatchWriteOperation & WithUpdateLinkAttributes(const BatchUpdateLinkAttributes &value)
AWS_CLOUDDIRECTORY_API BatchWriteOperation(Aws::Utils::Json::JsonView jsonValue)
void SetAttachTypedLink(const BatchAttachTypedLink &value)
BatchWriteOperation & WithDetachFromIndex(const BatchDetachFromIndex &value)
void SetAddFacetToObject(const BatchAddFacetToObject &value)
void SetDetachFromIndex(const BatchDetachFromIndex &value)
void SetUpdateObjectAttributes(BatchUpdateObjectAttributes &&value)
BatchWriteOperation & WithAddFacetToObject(const BatchAddFacetToObject &value)
BatchWriteOperation & WithCreateObject(const BatchCreateObject &value)
BatchWriteOperation & WithDetachPolicy(BatchDetachPolicy &&value)
const BatchRemoveFacetFromObject & GetRemoveFacetFromObject() const
void SetDetachPolicy(const BatchDetachPolicy &value)
void SetDetachFromIndex(BatchDetachFromIndex &&value)
BatchWriteOperation & WithDeleteObject(const BatchDeleteObject &value)
void SetAttachToIndex(const BatchAttachToIndex &value)
void SetAddFacetToObject(BatchAddFacetToObject &&value)
const BatchDeleteObject & GetDeleteObject() const
AWS_CLOUDDIRECTORY_API BatchWriteOperation & operator=(Aws::Utils::Json::JsonView jsonValue)
const BatchUpdateLinkAttributes & GetUpdateLinkAttributes() const
const BatchAttachToIndex & GetAttachToIndex() const
void SetCreateIndex(const BatchCreateIndex &value)
BatchWriteOperation & WithAttachPolicy(BatchAttachPolicy &&value)
BatchWriteOperation & WithRemoveFacetFromObject(BatchRemoveFacetFromObject &&value)
BatchWriteOperation & WithUpdateObjectAttributes(const BatchUpdateObjectAttributes &value)
BatchWriteOperation & WithDetachPolicy(const BatchDetachPolicy &value)
BatchWriteOperation & WithAttachTypedLink(BatchAttachTypedLink &&value)
BatchWriteOperation & WithCreateIndex(const BatchCreateIndex &value)
BatchWriteOperation & WithCreateObject(BatchCreateObject &&value)
BatchWriteOperation & WithAddFacetToObject(BatchAddFacetToObject &&value)
const BatchAttachPolicy & GetAttachPolicy() const
const BatchCreateObject & GetCreateObject() const
const BatchAddFacetToObject & GetAddFacetToObject() const
BatchWriteOperation & WithDetachTypedLink(BatchDetachTypedLink &&value)
void SetDetachTypedLink(const BatchDetachTypedLink &value)
const BatchDetachTypedLink & GetDetachTypedLink() const
void SetUpdateLinkAttributes(BatchUpdateLinkAttributes &&value)
const BatchUpdateObjectAttributes & GetUpdateObjectAttributes() const
void SetDeleteObject(const BatchDeleteObject &value)
BatchWriteOperation & WithDetachTypedLink(const BatchDetachTypedLink &value)
void SetDetachObject(const BatchDetachObject &value)
BatchWriteOperation & WithDetachObject(const BatchDetachObject &value)
void SetRemoveFacetFromObject(const BatchRemoveFacetFromObject &value)
BatchWriteOperation & WithDetachFromIndex(BatchDetachFromIndex &&value)
AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const
BatchWriteOperation & WithUpdateObjectAttributes(BatchUpdateObjectAttributes &&value)
void SetDetachTypedLink(BatchDetachTypedLink &&value)
BatchWriteOperation & WithAttachObject(BatchAttachObject &&value)
const BatchDetachPolicy & GetDetachPolicy() const
void SetUpdateLinkAttributes(const BatchUpdateLinkAttributes &value)
BatchWriteOperation & WithAttachToIndex(BatchAttachToIndex &&value)
Aws::Utils::Json::JsonValue JsonValue