AWS SDK for C++

AWS SDK for C++ Version 1.11.924

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