AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename CreateObjectT = BatchCreateObject>
62 void SetCreateObject(CreateObjectT&& value) { m_createObjectHasBeenSet = true; m_createObject = std::forward<CreateObjectT>(value); }
63 template<typename CreateObjectT = BatchCreateObject>
64 BatchWriteOperation& WithCreateObject(CreateObjectT&& value) { SetCreateObject(std::forward<CreateObjectT>(value)); return *this;}
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) { m_attachObjectHasBeenSet = true; m_attachObject = std::forward<AttachObjectT>(value); }
75 template<typename AttachObjectT = BatchAttachObject>
76 BatchWriteOperation& WithAttachObject(AttachObjectT&& value) { SetAttachObject(std::forward<AttachObjectT>(value)); return *this;}
78
80
83 inline const BatchDetachObject& GetDetachObject() const { return m_detachObject; }
84 inline bool DetachObjectHasBeenSet() const { return m_detachObjectHasBeenSet; }
85 template<typename DetachObjectT = BatchDetachObject>
86 void SetDetachObject(DetachObjectT&& value) { m_detachObjectHasBeenSet = true; m_detachObject = std::forward<DetachObjectT>(value); }
87 template<typename DetachObjectT = BatchDetachObject>
88 BatchWriteOperation& WithDetachObject(DetachObjectT&& value) { SetDetachObject(std::forward<DetachObjectT>(value)); return *this;}
90
92
95 inline const BatchUpdateObjectAttributes& GetUpdateObjectAttributes() const { return m_updateObjectAttributes; }
96 inline bool UpdateObjectAttributesHasBeenSet() const { return m_updateObjectAttributesHasBeenSet; }
97 template<typename UpdateObjectAttributesT = BatchUpdateObjectAttributes>
98 void SetUpdateObjectAttributes(UpdateObjectAttributesT&& value) { m_updateObjectAttributesHasBeenSet = true; m_updateObjectAttributes = std::forward<UpdateObjectAttributesT>(value); }
99 template<typename UpdateObjectAttributesT = BatchUpdateObjectAttributes>
100 BatchWriteOperation& WithUpdateObjectAttributes(UpdateObjectAttributesT&& value) { SetUpdateObjectAttributes(std::forward<UpdateObjectAttributesT>(value)); return *this;}
102
104
107 inline const BatchDeleteObject& GetDeleteObject() const { return m_deleteObject; }
108 inline bool DeleteObjectHasBeenSet() const { return m_deleteObjectHasBeenSet; }
109 template<typename DeleteObjectT = BatchDeleteObject>
110 void SetDeleteObject(DeleteObjectT&& value) { m_deleteObjectHasBeenSet = true; m_deleteObject = std::forward<DeleteObjectT>(value); }
111 template<typename DeleteObjectT = BatchDeleteObject>
112 BatchWriteOperation& WithDeleteObject(DeleteObjectT&& value) { SetDeleteObject(std::forward<DeleteObjectT>(value)); return *this;}
114
116
119 inline const BatchAddFacetToObject& GetAddFacetToObject() const { return m_addFacetToObject; }
120 inline bool AddFacetToObjectHasBeenSet() const { return m_addFacetToObjectHasBeenSet; }
121 template<typename AddFacetToObjectT = BatchAddFacetToObject>
122 void SetAddFacetToObject(AddFacetToObjectT&& value) { m_addFacetToObjectHasBeenSet = true; m_addFacetToObject = std::forward<AddFacetToObjectT>(value); }
123 template<typename AddFacetToObjectT = BatchAddFacetToObject>
124 BatchWriteOperation& WithAddFacetToObject(AddFacetToObjectT&& value) { SetAddFacetToObject(std::forward<AddFacetToObjectT>(value)); return *this;}
126
128
131 inline const BatchRemoveFacetFromObject& GetRemoveFacetFromObject() const { return m_removeFacetFromObject; }
132 inline bool RemoveFacetFromObjectHasBeenSet() const { return m_removeFacetFromObjectHasBeenSet; }
133 template<typename RemoveFacetFromObjectT = BatchRemoveFacetFromObject>
134 void SetRemoveFacetFromObject(RemoveFacetFromObjectT&& value) { m_removeFacetFromObjectHasBeenSet = true; m_removeFacetFromObject = std::forward<RemoveFacetFromObjectT>(value); }
135 template<typename RemoveFacetFromObjectT = BatchRemoveFacetFromObject>
136 BatchWriteOperation& WithRemoveFacetFromObject(RemoveFacetFromObjectT&& value) { SetRemoveFacetFromObject(std::forward<RemoveFacetFromObjectT>(value)); return *this;}
138
140
144 inline const BatchAttachPolicy& GetAttachPolicy() const { return m_attachPolicy; }
145 inline bool AttachPolicyHasBeenSet() const { return m_attachPolicyHasBeenSet; }
146 template<typename AttachPolicyT = BatchAttachPolicy>
147 void SetAttachPolicy(AttachPolicyT&& value) { m_attachPolicyHasBeenSet = true; m_attachPolicy = std::forward<AttachPolicyT>(value); }
148 template<typename AttachPolicyT = BatchAttachPolicy>
149 BatchWriteOperation& WithAttachPolicy(AttachPolicyT&& value) { SetAttachPolicy(std::forward<AttachPolicyT>(value)); return *this;}
151
153
156 inline const BatchDetachPolicy& GetDetachPolicy() const { return m_detachPolicy; }
157 inline bool DetachPolicyHasBeenSet() const { return m_detachPolicyHasBeenSet; }
158 template<typename DetachPolicyT = BatchDetachPolicy>
159 void SetDetachPolicy(DetachPolicyT&& value) { m_detachPolicyHasBeenSet = true; m_detachPolicy = std::forward<DetachPolicyT>(value); }
160 template<typename DetachPolicyT = BatchDetachPolicy>
161 BatchWriteOperation& WithDetachPolicy(DetachPolicyT&& value) { SetDetachPolicy(std::forward<DetachPolicyT>(value)); return *this;}
163
165
170 inline const BatchCreateIndex& GetCreateIndex() const { return m_createIndex; }
171 inline bool CreateIndexHasBeenSet() const { return m_createIndexHasBeenSet; }
172 template<typename CreateIndexT = BatchCreateIndex>
173 void SetCreateIndex(CreateIndexT&& value) { m_createIndexHasBeenSet = true; m_createIndex = std::forward<CreateIndexT>(value); }
174 template<typename CreateIndexT = BatchCreateIndex>
175 BatchWriteOperation& WithCreateIndex(CreateIndexT&& value) { SetCreateIndex(std::forward<CreateIndexT>(value)); return *this;}
177
179
182 inline const BatchAttachToIndex& GetAttachToIndex() const { return m_attachToIndex; }
183 inline bool AttachToIndexHasBeenSet() const { return m_attachToIndexHasBeenSet; }
184 template<typename AttachToIndexT = BatchAttachToIndex>
185 void SetAttachToIndex(AttachToIndexT&& value) { m_attachToIndexHasBeenSet = true; m_attachToIndex = std::forward<AttachToIndexT>(value); }
186 template<typename AttachToIndexT = BatchAttachToIndex>
187 BatchWriteOperation& WithAttachToIndex(AttachToIndexT&& value) { SetAttachToIndex(std::forward<AttachToIndexT>(value)); return *this;}
189
191
194 inline const BatchDetachFromIndex& GetDetachFromIndex() const { return m_detachFromIndex; }
195 inline bool DetachFromIndexHasBeenSet() const { return m_detachFromIndexHasBeenSet; }
196 template<typename DetachFromIndexT = BatchDetachFromIndex>
197 void SetDetachFromIndex(DetachFromIndexT&& value) { m_detachFromIndexHasBeenSet = true; m_detachFromIndex = std::forward<DetachFromIndexT>(value); }
198 template<typename DetachFromIndexT = BatchDetachFromIndex>
199 BatchWriteOperation& WithDetachFromIndex(DetachFromIndexT&& value) { SetDetachFromIndex(std::forward<DetachFromIndexT>(value)); return *this;}
201
203
209 inline const BatchAttachTypedLink& GetAttachTypedLink() const { return m_attachTypedLink; }
210 inline bool AttachTypedLinkHasBeenSet() const { return m_attachTypedLinkHasBeenSet; }
211 template<typename AttachTypedLinkT = BatchAttachTypedLink>
212 void SetAttachTypedLink(AttachTypedLinkT&& value) { m_attachTypedLinkHasBeenSet = true; m_attachTypedLink = std::forward<AttachTypedLinkT>(value); }
213 template<typename AttachTypedLinkT = BatchAttachTypedLink>
214 BatchWriteOperation& WithAttachTypedLink(AttachTypedLinkT&& value) { SetAttachTypedLink(std::forward<AttachTypedLinkT>(value)); return *this;}
216
218
224 inline const BatchDetachTypedLink& GetDetachTypedLink() const { return m_detachTypedLink; }
225 inline bool DetachTypedLinkHasBeenSet() const { return m_detachTypedLinkHasBeenSet; }
226 template<typename DetachTypedLinkT = BatchDetachTypedLink>
227 void SetDetachTypedLink(DetachTypedLinkT&& value) { m_detachTypedLinkHasBeenSet = true; m_detachTypedLink = std::forward<DetachTypedLinkT>(value); }
228 template<typename DetachTypedLinkT = BatchDetachTypedLink>
229 BatchWriteOperation& WithDetachTypedLink(DetachTypedLinkT&& value) { SetDetachTypedLink(std::forward<DetachTypedLinkT>(value)); return *this;}
231
233
236 inline const BatchUpdateLinkAttributes& GetUpdateLinkAttributes() const { return m_updateLinkAttributes; }
237 inline bool UpdateLinkAttributesHasBeenSet() const { return m_updateLinkAttributesHasBeenSet; }
238 template<typename UpdateLinkAttributesT = BatchUpdateLinkAttributes>
239 void SetUpdateLinkAttributes(UpdateLinkAttributesT&& value) { m_updateLinkAttributesHasBeenSet = true; m_updateLinkAttributes = std::forward<UpdateLinkAttributesT>(value); }
240 template<typename UpdateLinkAttributesT = BatchUpdateLinkAttributes>
241 BatchWriteOperation& WithUpdateLinkAttributes(UpdateLinkAttributesT&& value) { SetUpdateLinkAttributes(std::forward<UpdateLinkAttributesT>(value)); return *this;}
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 & 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