/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace CloudDirectory { namespace Model { /** *

Represents the output of a BatchWrite response * operation.

See Also:

AWS * API Reference

*/ class BatchWriteOperationResponse { public: AWS_CLOUDDIRECTORY_API BatchWriteOperationResponse(); AWS_CLOUDDIRECTORY_API BatchWriteOperationResponse(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDDIRECTORY_API BatchWriteOperationResponse& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CLOUDDIRECTORY_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Creates an object in a Directory.

*/ inline const BatchCreateObjectResponse& GetCreateObject() const{ return m_createObject; } /** *

Creates an object in a Directory.

*/ inline bool CreateObjectHasBeenSet() const { return m_createObjectHasBeenSet; } /** *

Creates an object in a Directory.

*/ inline void SetCreateObject(const BatchCreateObjectResponse& value) { m_createObjectHasBeenSet = true; m_createObject = value; } /** *

Creates an object in a Directory.

*/ inline void SetCreateObject(BatchCreateObjectResponse&& value) { m_createObjectHasBeenSet = true; m_createObject = std::move(value); } /** *

Creates an object in a Directory.

*/ inline BatchWriteOperationResponse& WithCreateObject(const BatchCreateObjectResponse& value) { SetCreateObject(value); return *this;} /** *

Creates an object in a Directory.

*/ inline BatchWriteOperationResponse& WithCreateObject(BatchCreateObjectResponse&& value) { SetCreateObject(std::move(value)); return *this;} /** *

Attaches an object to a Directory.

*/ inline const BatchAttachObjectResponse& GetAttachObject() const{ return m_attachObject; } /** *

Attaches an object to a Directory.

*/ inline bool AttachObjectHasBeenSet() const { return m_attachObjectHasBeenSet; } /** *

Attaches an object to a Directory.

*/ inline void SetAttachObject(const BatchAttachObjectResponse& value) { m_attachObjectHasBeenSet = true; m_attachObject = value; } /** *

Attaches an object to a Directory.

*/ inline void SetAttachObject(BatchAttachObjectResponse&& value) { m_attachObjectHasBeenSet = true; m_attachObject = std::move(value); } /** *

Attaches an object to a Directory.

*/ inline BatchWriteOperationResponse& WithAttachObject(const BatchAttachObjectResponse& value) { SetAttachObject(value); return *this;} /** *

Attaches an object to a Directory.

*/ inline BatchWriteOperationResponse& WithAttachObject(BatchAttachObjectResponse&& value) { SetAttachObject(std::move(value)); return *this;} /** *

Detaches an object from a Directory.

*/ inline const BatchDetachObjectResponse& GetDetachObject() const{ return m_detachObject; } /** *

Detaches an object from a Directory.

*/ inline bool DetachObjectHasBeenSet() const { return m_detachObjectHasBeenSet; } /** *

Detaches an object from a Directory.

*/ inline void SetDetachObject(const BatchDetachObjectResponse& value) { m_detachObjectHasBeenSet = true; m_detachObject = value; } /** *

Detaches an object from a Directory.

*/ inline void SetDetachObject(BatchDetachObjectResponse&& value) { m_detachObjectHasBeenSet = true; m_detachObject = std::move(value); } /** *

Detaches an object from a Directory.

*/ inline BatchWriteOperationResponse& WithDetachObject(const BatchDetachObjectResponse& value) { SetDetachObject(value); return *this;} /** *

Detaches an object from a Directory.

*/ inline BatchWriteOperationResponse& WithDetachObject(BatchDetachObjectResponse&& value) { SetDetachObject(std::move(value)); return *this;} /** *

Updates a given object’s attributes.

*/ inline const BatchUpdateObjectAttributesResponse& GetUpdateObjectAttributes() const{ return m_updateObjectAttributes; } /** *

Updates a given object’s attributes.

*/ inline bool UpdateObjectAttributesHasBeenSet() const { return m_updateObjectAttributesHasBeenSet; } /** *

Updates a given object’s attributes.

*/ inline void SetUpdateObjectAttributes(const BatchUpdateObjectAttributesResponse& value) { m_updateObjectAttributesHasBeenSet = true; m_updateObjectAttributes = value; } /** *

Updates a given object’s attributes.

*/ inline void SetUpdateObjectAttributes(BatchUpdateObjectAttributesResponse&& value) { m_updateObjectAttributesHasBeenSet = true; m_updateObjectAttributes = std::move(value); } /** *

Updates a given object’s attributes.

*/ inline BatchWriteOperationResponse& WithUpdateObjectAttributes(const BatchUpdateObjectAttributesResponse& value) { SetUpdateObjectAttributes(value); return *this;} /** *

Updates a given object’s attributes.

*/ inline BatchWriteOperationResponse& WithUpdateObjectAttributes(BatchUpdateObjectAttributesResponse&& value) { SetUpdateObjectAttributes(std::move(value)); return *this;} /** *

Deletes an object in a Directory.

*/ inline const BatchDeleteObjectResponse& GetDeleteObject() const{ return m_deleteObject; } /** *

Deletes an object in a Directory.

*/ inline bool DeleteObjectHasBeenSet() const { return m_deleteObjectHasBeenSet; } /** *

Deletes an object in a Directory.

*/ inline void SetDeleteObject(const BatchDeleteObjectResponse& value) { m_deleteObjectHasBeenSet = true; m_deleteObject = value; } /** *

Deletes an object in a Directory.

*/ inline void SetDeleteObject(BatchDeleteObjectResponse&& value) { m_deleteObjectHasBeenSet = true; m_deleteObject = std::move(value); } /** *

Deletes an object in a Directory.

*/ inline BatchWriteOperationResponse& WithDeleteObject(const BatchDeleteObjectResponse& value) { SetDeleteObject(value); return *this;} /** *

Deletes an object in a Directory.

*/ inline BatchWriteOperationResponse& WithDeleteObject(BatchDeleteObjectResponse&& value) { SetDeleteObject(std::move(value)); return *this;} /** *

The result of an add facet to object batch operation.

*/ inline const BatchAddFacetToObjectResponse& GetAddFacetToObject() const{ return m_addFacetToObject; } /** *

The result of an add facet to object batch operation.

*/ inline bool AddFacetToObjectHasBeenSet() const { return m_addFacetToObjectHasBeenSet; } /** *

The result of an add facet to object batch operation.

*/ inline void SetAddFacetToObject(const BatchAddFacetToObjectResponse& value) { m_addFacetToObjectHasBeenSet = true; m_addFacetToObject = value; } /** *

The result of an add facet to object batch operation.

*/ inline void SetAddFacetToObject(BatchAddFacetToObjectResponse&& value) { m_addFacetToObjectHasBeenSet = true; m_addFacetToObject = std::move(value); } /** *

The result of an add facet to object batch operation.

*/ inline BatchWriteOperationResponse& WithAddFacetToObject(const BatchAddFacetToObjectResponse& value) { SetAddFacetToObject(value); return *this;} /** *

The result of an add facet to object batch operation.

*/ inline BatchWriteOperationResponse& WithAddFacetToObject(BatchAddFacetToObjectResponse&& value) { SetAddFacetToObject(std::move(value)); return *this;} /** *

The result of a batch remove facet from object operation.

*/ inline const BatchRemoveFacetFromObjectResponse& GetRemoveFacetFromObject() const{ return m_removeFacetFromObject; } /** *

The result of a batch remove facet from object operation.

*/ inline bool RemoveFacetFromObjectHasBeenSet() const { return m_removeFacetFromObjectHasBeenSet; } /** *

The result of a batch remove facet from object operation.

*/ inline void SetRemoveFacetFromObject(const BatchRemoveFacetFromObjectResponse& value) { m_removeFacetFromObjectHasBeenSet = true; m_removeFacetFromObject = value; } /** *

The result of a batch remove facet from object operation.

*/ inline void SetRemoveFacetFromObject(BatchRemoveFacetFromObjectResponse&& value) { m_removeFacetFromObjectHasBeenSet = true; m_removeFacetFromObject = std::move(value); } /** *

The result of a batch remove facet from object operation.

*/ inline BatchWriteOperationResponse& WithRemoveFacetFromObject(const BatchRemoveFacetFromObjectResponse& value) { SetRemoveFacetFromObject(value); return *this;} /** *

The result of a batch remove facet from object operation.

*/ inline BatchWriteOperationResponse& WithRemoveFacetFromObject(BatchRemoveFacetFromObjectResponse&& value) { SetRemoveFacetFromObject(std::move(value)); return *this;} /** *

Attaches a policy object to a regular object. An object can have a limited * number of attached policies.

*/ inline const BatchAttachPolicyResponse& GetAttachPolicy() const{ return m_attachPolicy; } /** *

Attaches a policy object to a regular object. An object can have a limited * number of attached policies.

*/ inline bool AttachPolicyHasBeenSet() const { return m_attachPolicyHasBeenSet; } /** *

Attaches a policy object to a regular object. An object can have a limited * number of attached policies.

*/ inline void SetAttachPolicy(const BatchAttachPolicyResponse& value) { m_attachPolicyHasBeenSet = true; m_attachPolicy = value; } /** *

Attaches a policy object to a regular object. An object can have a limited * number of attached policies.

*/ inline void SetAttachPolicy(BatchAttachPolicyResponse&& value) { m_attachPolicyHasBeenSet = true; m_attachPolicy = std::move(value); } /** *

Attaches a policy object to a regular object. An object can have a limited * number of attached policies.

*/ inline BatchWriteOperationResponse& WithAttachPolicy(const BatchAttachPolicyResponse& value) { SetAttachPolicy(value); return *this;} /** *

Attaches a policy object to a regular object. An object can have a limited * number of attached policies.

*/ inline BatchWriteOperationResponse& WithAttachPolicy(BatchAttachPolicyResponse&& value) { SetAttachPolicy(std::move(value)); return *this;} /** *

Detaches a policy from a Directory.

*/ inline const BatchDetachPolicyResponse& GetDetachPolicy() const{ return m_detachPolicy; } /** *

Detaches a policy from a Directory.

*/ inline bool DetachPolicyHasBeenSet() const { return m_detachPolicyHasBeenSet; } /** *

Detaches a policy from a Directory.

*/ inline void SetDetachPolicy(const BatchDetachPolicyResponse& value) { m_detachPolicyHasBeenSet = true; m_detachPolicy = value; } /** *

Detaches a policy from a Directory.

*/ inline void SetDetachPolicy(BatchDetachPolicyResponse&& value) { m_detachPolicyHasBeenSet = true; m_detachPolicy = std::move(value); } /** *

Detaches a policy from a Directory.

*/ inline BatchWriteOperationResponse& WithDetachPolicy(const BatchDetachPolicyResponse& value) { SetDetachPolicy(value); return *this;} /** *

Detaches a policy from a Directory.

*/ inline BatchWriteOperationResponse& WithDetachPolicy(BatchDetachPolicyResponse&& value) { SetDetachPolicy(std::move(value)); return *this;} /** *

Creates an index object. See Indexing * and search for more information.

*/ inline const BatchCreateIndexResponse& GetCreateIndex() const{ return m_createIndex; } /** *

Creates an index object. See Indexing * and search for more information.

*/ inline bool CreateIndexHasBeenSet() const { return m_createIndexHasBeenSet; } /** *

Creates an index object. See Indexing * and search for more information.

*/ inline void SetCreateIndex(const BatchCreateIndexResponse& value) { m_createIndexHasBeenSet = true; m_createIndex = value; } /** *

Creates an index object. See Indexing * and search for more information.

*/ inline void SetCreateIndex(BatchCreateIndexResponse&& value) { m_createIndexHasBeenSet = true; m_createIndex = std::move(value); } /** *

Creates an index object. See Indexing * and search for more information.

*/ inline BatchWriteOperationResponse& WithCreateIndex(const BatchCreateIndexResponse& value) { SetCreateIndex(value); return *this;} /** *

Creates an index object. See Indexing * and search for more information.

*/ inline BatchWriteOperationResponse& WithCreateIndex(BatchCreateIndexResponse&& value) { SetCreateIndex(std::move(value)); return *this;} /** *

Attaches the specified object to the specified index.

*/ inline const BatchAttachToIndexResponse& GetAttachToIndex() const{ return m_attachToIndex; } /** *

Attaches the specified object to the specified index.

*/ inline bool AttachToIndexHasBeenSet() const { return m_attachToIndexHasBeenSet; } /** *

Attaches the specified object to the specified index.

*/ inline void SetAttachToIndex(const BatchAttachToIndexResponse& value) { m_attachToIndexHasBeenSet = true; m_attachToIndex = value; } /** *

Attaches the specified object to the specified index.

*/ inline void SetAttachToIndex(BatchAttachToIndexResponse&& value) { m_attachToIndexHasBeenSet = true; m_attachToIndex = std::move(value); } /** *

Attaches the specified object to the specified index.

*/ inline BatchWriteOperationResponse& WithAttachToIndex(const BatchAttachToIndexResponse& value) { SetAttachToIndex(value); return *this;} /** *

Attaches the specified object to the specified index.

*/ inline BatchWriteOperationResponse& WithAttachToIndex(BatchAttachToIndexResponse&& value) { SetAttachToIndex(std::move(value)); return *this;} /** *

Detaches the specified object from the specified index.

*/ inline const BatchDetachFromIndexResponse& GetDetachFromIndex() const{ return m_detachFromIndex; } /** *

Detaches the specified object from the specified index.

*/ inline bool DetachFromIndexHasBeenSet() const { return m_detachFromIndexHasBeenSet; } /** *

Detaches the specified object from the specified index.

*/ inline void SetDetachFromIndex(const BatchDetachFromIndexResponse& value) { m_detachFromIndexHasBeenSet = true; m_detachFromIndex = value; } /** *

Detaches the specified object from the specified index.

*/ inline void SetDetachFromIndex(BatchDetachFromIndexResponse&& value) { m_detachFromIndexHasBeenSet = true; m_detachFromIndex = std::move(value); } /** *

Detaches the specified object from the specified index.

*/ inline BatchWriteOperationResponse& WithDetachFromIndex(const BatchDetachFromIndexResponse& value) { SetDetachFromIndex(value); return *this;} /** *

Detaches the specified object from the specified index.

*/ inline BatchWriteOperationResponse& WithDetachFromIndex(BatchDetachFromIndexResponse&& value) { SetDetachFromIndex(std::move(value)); return *this;} /** *

Attaches a typed link to a specified source and target object. For more * information, see Typed * Links.

*/ inline const BatchAttachTypedLinkResponse& GetAttachTypedLink() const{ return m_attachTypedLink; } /** *

Attaches a typed link to a specified source and target object. For more * information, see Typed * Links.

*/ inline bool AttachTypedLinkHasBeenSet() const { return m_attachTypedLinkHasBeenSet; } /** *

Attaches a typed link to a specified source and target object. For more * information, see Typed * Links.

*/ inline void SetAttachTypedLink(const BatchAttachTypedLinkResponse& value) { m_attachTypedLinkHasBeenSet = true; m_attachTypedLink = value; } /** *

Attaches a typed link to a specified source and target object. For more * information, see Typed * Links.

*/ inline void SetAttachTypedLink(BatchAttachTypedLinkResponse&& value) { m_attachTypedLinkHasBeenSet = true; m_attachTypedLink = std::move(value); } /** *

Attaches a typed link to a specified source and target object. For more * information, see Typed * Links.

*/ inline BatchWriteOperationResponse& WithAttachTypedLink(const BatchAttachTypedLinkResponse& value) { SetAttachTypedLink(value); return *this;} /** *

Attaches a typed link to a specified source and target object. For more * information, see Typed * Links.

*/ inline BatchWriteOperationResponse& WithAttachTypedLink(BatchAttachTypedLinkResponse&& value) { SetAttachTypedLink(std::move(value)); return *this;} /** *

Detaches a typed link from a specified source and target object. For more * information, see Typed * Links.

*/ inline const BatchDetachTypedLinkResponse& GetDetachTypedLink() const{ return m_detachTypedLink; } /** *

Detaches a typed link from a specified source and target object. For more * information, see Typed * Links.

*/ inline bool DetachTypedLinkHasBeenSet() const { return m_detachTypedLinkHasBeenSet; } /** *

Detaches a typed link from a specified source and target object. For more * information, see Typed * Links.

*/ inline void SetDetachTypedLink(const BatchDetachTypedLinkResponse& value) { m_detachTypedLinkHasBeenSet = true; m_detachTypedLink = value; } /** *

Detaches a typed link from a specified source and target object. For more * information, see Typed * Links.

*/ inline void SetDetachTypedLink(BatchDetachTypedLinkResponse&& value) { m_detachTypedLinkHasBeenSet = true; m_detachTypedLink = std::move(value); } /** *

Detaches a typed link from a specified source and target object. For more * information, see Typed * Links.

*/ inline BatchWriteOperationResponse& WithDetachTypedLink(const BatchDetachTypedLinkResponse& value) { SetDetachTypedLink(value); return *this;} /** *

Detaches a typed link from a specified source and target object. For more * information, see Typed * Links.

*/ inline BatchWriteOperationResponse& WithDetachTypedLink(BatchDetachTypedLinkResponse&& value) { SetDetachTypedLink(std::move(value)); return *this;} /** *

Represents the output of a BatchWrite response operation.

*/ inline const BatchUpdateLinkAttributesResponse& GetUpdateLinkAttributes() const{ return m_updateLinkAttributes; } /** *

Represents the output of a BatchWrite response operation.

*/ inline bool UpdateLinkAttributesHasBeenSet() const { return m_updateLinkAttributesHasBeenSet; } /** *

Represents the output of a BatchWrite response operation.

*/ inline void SetUpdateLinkAttributes(const BatchUpdateLinkAttributesResponse& value) { m_updateLinkAttributesHasBeenSet = true; m_updateLinkAttributes = value; } /** *

Represents the output of a BatchWrite response operation.

*/ inline void SetUpdateLinkAttributes(BatchUpdateLinkAttributesResponse&& value) { m_updateLinkAttributesHasBeenSet = true; m_updateLinkAttributes = std::move(value); } /** *

Represents the output of a BatchWrite response operation.

*/ inline BatchWriteOperationResponse& WithUpdateLinkAttributes(const BatchUpdateLinkAttributesResponse& value) { SetUpdateLinkAttributes(value); return *this;} /** *

Represents the output of a BatchWrite response operation.

*/ inline BatchWriteOperationResponse& WithUpdateLinkAttributes(BatchUpdateLinkAttributesResponse&& value) { SetUpdateLinkAttributes(std::move(value)); return *this;} private: BatchCreateObjectResponse m_createObject; bool m_createObjectHasBeenSet = false; BatchAttachObjectResponse m_attachObject; bool m_attachObjectHasBeenSet = false; BatchDetachObjectResponse m_detachObject; bool m_detachObjectHasBeenSet = false; BatchUpdateObjectAttributesResponse m_updateObjectAttributes; bool m_updateObjectAttributesHasBeenSet = false; BatchDeleteObjectResponse m_deleteObject; bool m_deleteObjectHasBeenSet = false; BatchAddFacetToObjectResponse m_addFacetToObject; bool m_addFacetToObjectHasBeenSet = false; BatchRemoveFacetFromObjectResponse m_removeFacetFromObject; bool m_removeFacetFromObjectHasBeenSet = false; BatchAttachPolicyResponse m_attachPolicy; bool m_attachPolicyHasBeenSet = false; BatchDetachPolicyResponse m_detachPolicy; bool m_detachPolicyHasBeenSet = false; BatchCreateIndexResponse m_createIndex; bool m_createIndexHasBeenSet = false; BatchAttachToIndexResponse m_attachToIndex; bool m_attachToIndexHasBeenSet = false; BatchDetachFromIndexResponse m_detachFromIndex; bool m_detachFromIndexHasBeenSet = false; BatchAttachTypedLinkResponse m_attachTypedLink; bool m_attachTypedLinkHasBeenSet = false; BatchDetachTypedLinkResponse m_detachTypedLink; bool m_detachTypedLinkHasBeenSet = false; BatchUpdateLinkAttributesResponse m_updateLinkAttributes; bool m_updateLinkAttributesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws