/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Represents the output of a BatchWrite
operation. See
* Also:
AWS
* API Reference
Creates an object.
*/ inline const BatchCreateObject& GetCreateObject() const{ return m_createObject; } /** *Creates an object.
*/ inline bool CreateObjectHasBeenSet() const { return m_createObjectHasBeenSet; } /** *Creates an object.
*/ inline void SetCreateObject(const BatchCreateObject& value) { m_createObjectHasBeenSet = true; m_createObject = value; } /** *Creates an object.
*/ inline void SetCreateObject(BatchCreateObject&& value) { m_createObjectHasBeenSet = true; m_createObject = std::move(value); } /** *Creates an object.
*/ inline BatchWriteOperation& WithCreateObject(const BatchCreateObject& value) { SetCreateObject(value); return *this;} /** *Creates an object.
*/ inline BatchWriteOperation& WithCreateObject(BatchCreateObject&& value) { SetCreateObject(std::move(value)); return *this;} /** *Attaches an object to a Directory.
*/ inline const BatchAttachObject& 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 BatchAttachObject& value) { m_attachObjectHasBeenSet = true; m_attachObject = value; } /** *Attaches an object to a Directory.
*/ inline void SetAttachObject(BatchAttachObject&& value) { m_attachObjectHasBeenSet = true; m_attachObject = std::move(value); } /** *Attaches an object to a Directory.
*/ inline BatchWriteOperation& WithAttachObject(const BatchAttachObject& value) { SetAttachObject(value); return *this;} /** *Attaches an object to a Directory.
*/ inline BatchWriteOperation& WithAttachObject(BatchAttachObject&& value) { SetAttachObject(std::move(value)); return *this;} /** *Detaches an object from a Directory.
*/ inline const BatchDetachObject& 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 BatchDetachObject& value) { m_detachObjectHasBeenSet = true; m_detachObject = value; } /** *Detaches an object from a Directory.
*/ inline void SetDetachObject(BatchDetachObject&& value) { m_detachObjectHasBeenSet = true; m_detachObject = std::move(value); } /** *Detaches an object from a Directory.
*/ inline BatchWriteOperation& WithDetachObject(const BatchDetachObject& value) { SetDetachObject(value); return *this;} /** *Detaches an object from a Directory.
*/ inline BatchWriteOperation& WithDetachObject(BatchDetachObject&& value) { SetDetachObject(std::move(value)); return *this;} /** *Updates a given object's attributes.
*/ inline const BatchUpdateObjectAttributes& 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 BatchUpdateObjectAttributes& value) { m_updateObjectAttributesHasBeenSet = true; m_updateObjectAttributes = value; } /** *Updates a given object's attributes.
*/ inline void SetUpdateObjectAttributes(BatchUpdateObjectAttributes&& value) { m_updateObjectAttributesHasBeenSet = true; m_updateObjectAttributes = std::move(value); } /** *Updates a given object's attributes.
*/ inline BatchWriteOperation& WithUpdateObjectAttributes(const BatchUpdateObjectAttributes& value) { SetUpdateObjectAttributes(value); return *this;} /** *Updates a given object's attributes.
*/ inline BatchWriteOperation& WithUpdateObjectAttributes(BatchUpdateObjectAttributes&& value) { SetUpdateObjectAttributes(std::move(value)); return *this;} /** *Deletes an object in a Directory.
*/ inline const BatchDeleteObject& 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 BatchDeleteObject& value) { m_deleteObjectHasBeenSet = true; m_deleteObject = value; } /** *Deletes an object in a Directory.
*/ inline void SetDeleteObject(BatchDeleteObject&& value) { m_deleteObjectHasBeenSet = true; m_deleteObject = std::move(value); } /** *Deletes an object in a Directory.
*/ inline BatchWriteOperation& WithDeleteObject(const BatchDeleteObject& value) { SetDeleteObject(value); return *this;} /** *Deletes an object in a Directory.
*/ inline BatchWriteOperation& WithDeleteObject(BatchDeleteObject&& value) { SetDeleteObject(std::move(value)); return *this;} /** *A batch operation that adds a facet to an object.
*/ inline const BatchAddFacetToObject& GetAddFacetToObject() const{ return m_addFacetToObject; } /** *A batch operation that adds a facet to an object.
*/ inline bool AddFacetToObjectHasBeenSet() const { return m_addFacetToObjectHasBeenSet; } /** *A batch operation that adds a facet to an object.
*/ inline void SetAddFacetToObject(const BatchAddFacetToObject& value) { m_addFacetToObjectHasBeenSet = true; m_addFacetToObject = value; } /** *A batch operation that adds a facet to an object.
*/ inline void SetAddFacetToObject(BatchAddFacetToObject&& value) { m_addFacetToObjectHasBeenSet = true; m_addFacetToObject = std::move(value); } /** *A batch operation that adds a facet to an object.
*/ inline BatchWriteOperation& WithAddFacetToObject(const BatchAddFacetToObject& value) { SetAddFacetToObject(value); return *this;} /** *A batch operation that adds a facet to an object.
*/ inline BatchWriteOperation& WithAddFacetToObject(BatchAddFacetToObject&& value) { SetAddFacetToObject(std::move(value)); return *this;} /** *A batch operation that removes a facet from an object.
*/ inline const BatchRemoveFacetFromObject& GetRemoveFacetFromObject() const{ return m_removeFacetFromObject; } /** *A batch operation that removes a facet from an object.
*/ inline bool RemoveFacetFromObjectHasBeenSet() const { return m_removeFacetFromObjectHasBeenSet; } /** *A batch operation that removes a facet from an object.
*/ inline void SetRemoveFacetFromObject(const BatchRemoveFacetFromObject& value) { m_removeFacetFromObjectHasBeenSet = true; m_removeFacetFromObject = value; } /** *A batch operation that removes a facet from an object.
*/ inline void SetRemoveFacetFromObject(BatchRemoveFacetFromObject&& value) { m_removeFacetFromObjectHasBeenSet = true; m_removeFacetFromObject = std::move(value); } /** *A batch operation that removes a facet from an object.
*/ inline BatchWriteOperation& WithRemoveFacetFromObject(const BatchRemoveFacetFromObject& value) { SetRemoveFacetFromObject(value); return *this;} /** *A batch operation that removes a facet from an object.
*/ inline BatchWriteOperation& WithRemoveFacetFromObject(BatchRemoveFacetFromObject&& 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 BatchAttachPolicy& 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 BatchAttachPolicy& 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(BatchAttachPolicy&& 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 BatchWriteOperation& WithAttachPolicy(const BatchAttachPolicy& value) { SetAttachPolicy(value); return *this;} /** *Attaches a policy object to a regular object. An object can have a limited * number of attached policies.
*/ inline BatchWriteOperation& WithAttachPolicy(BatchAttachPolicy&& value) { SetAttachPolicy(std::move(value)); return *this;} /** *Detaches a policy from a Directory.
*/ inline const BatchDetachPolicy& 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 BatchDetachPolicy& value) { m_detachPolicyHasBeenSet = true; m_detachPolicy = value; } /** *Detaches a policy from a Directory.
*/ inline void SetDetachPolicy(BatchDetachPolicy&& value) { m_detachPolicyHasBeenSet = true; m_detachPolicy = std::move(value); } /** *Detaches a policy from a Directory.
*/ inline BatchWriteOperation& WithDetachPolicy(const BatchDetachPolicy& value) { SetDetachPolicy(value); return *this;} /** *Detaches a policy from a Directory.
*/ inline BatchWriteOperation& WithDetachPolicy(BatchDetachPolicy&& value) { SetDetachPolicy(std::move(value)); return *this;} /** *Creates an index object. See Indexing * and search for more information.
*/ inline const BatchCreateIndex& 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 BatchCreateIndex& value) { m_createIndexHasBeenSet = true; m_createIndex = value; } /** *Creates an index object. See Indexing * and search for more information.
*/ inline void SetCreateIndex(BatchCreateIndex&& value) { m_createIndexHasBeenSet = true; m_createIndex = std::move(value); } /** *Creates an index object. See Indexing * and search for more information.
*/ inline BatchWriteOperation& WithCreateIndex(const BatchCreateIndex& value) { SetCreateIndex(value); return *this;} /** *Creates an index object. See Indexing * and search for more information.
*/ inline BatchWriteOperation& WithCreateIndex(BatchCreateIndex&& value) { SetCreateIndex(std::move(value)); return *this;} /** *Attaches the specified object to the specified index.
*/ inline const BatchAttachToIndex& 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 BatchAttachToIndex& value) { m_attachToIndexHasBeenSet = true; m_attachToIndex = value; } /** *Attaches the specified object to the specified index.
*/ inline void SetAttachToIndex(BatchAttachToIndex&& value) { m_attachToIndexHasBeenSet = true; m_attachToIndex = std::move(value); } /** *Attaches the specified object to the specified index.
*/ inline BatchWriteOperation& WithAttachToIndex(const BatchAttachToIndex& value) { SetAttachToIndex(value); return *this;} /** *Attaches the specified object to the specified index.
*/ inline BatchWriteOperation& WithAttachToIndex(BatchAttachToIndex&& value) { SetAttachToIndex(std::move(value)); return *this;} /** *Detaches the specified object from the specified index.
*/ inline const BatchDetachFromIndex& 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 BatchDetachFromIndex& value) { m_detachFromIndexHasBeenSet = true; m_detachFromIndex = value; } /** *Detaches the specified object from the specified index.
*/ inline void SetDetachFromIndex(BatchDetachFromIndex&& value) { m_detachFromIndexHasBeenSet = true; m_detachFromIndex = std::move(value); } /** *Detaches the specified object from the specified index.
*/ inline BatchWriteOperation& WithDetachFromIndex(const BatchDetachFromIndex& value) { SetDetachFromIndex(value); return *this;} /** *Detaches the specified object from the specified index.
*/ inline BatchWriteOperation& WithDetachFromIndex(BatchDetachFromIndex&& 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 BatchAttachTypedLink& 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 BatchAttachTypedLink& 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(BatchAttachTypedLink&& 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 BatchWriteOperation& WithAttachTypedLink(const BatchAttachTypedLink& value) { SetAttachTypedLink(value); return *this;} /** *Attaches a typed link to a specified source and target object. For more * information, see Typed * Links.
*/ inline BatchWriteOperation& WithAttachTypedLink(BatchAttachTypedLink&& 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 BatchDetachTypedLink& 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 BatchDetachTypedLink& 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(BatchDetachTypedLink&& 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 BatchWriteOperation& WithDetachTypedLink(const BatchDetachTypedLink& value) { SetDetachTypedLink(value); return *this;} /** *Detaches a typed link from a specified source and target object. For more * information, see Typed * Links.
*/ inline BatchWriteOperation& WithDetachTypedLink(BatchDetachTypedLink&& value) { SetDetachTypedLink(std::move(value)); return *this;} /** *Updates a given object's attributes.
*/ inline const BatchUpdateLinkAttributes& GetUpdateLinkAttributes() const{ return m_updateLinkAttributes; } /** *Updates a given object's attributes.
*/ inline bool UpdateLinkAttributesHasBeenSet() const { return m_updateLinkAttributesHasBeenSet; } /** *Updates a given object's attributes.
*/ inline void SetUpdateLinkAttributes(const BatchUpdateLinkAttributes& value) { m_updateLinkAttributesHasBeenSet = true; m_updateLinkAttributes = value; } /** *Updates a given object's attributes.
*/ inline void SetUpdateLinkAttributes(BatchUpdateLinkAttributes&& value) { m_updateLinkAttributesHasBeenSet = true; m_updateLinkAttributes = std::move(value); } /** *Updates a given object's attributes.
*/ inline BatchWriteOperation& WithUpdateLinkAttributes(const BatchUpdateLinkAttributes& value) { SetUpdateLinkAttributes(value); return *this;} /** *Updates a given object's attributes.
*/ inline BatchWriteOperation& WithUpdateLinkAttributes(BatchUpdateLinkAttributes&& value) { SetUpdateLinkAttributes(std::move(value)); return *this;} private: BatchCreateObject m_createObject; bool m_createObjectHasBeenSet = false; BatchAttachObject m_attachObject; bool m_attachObjectHasBeenSet = false; BatchDetachObject m_detachObject; bool m_detachObjectHasBeenSet = false; BatchUpdateObjectAttributes m_updateObjectAttributes; bool m_updateObjectAttributesHasBeenSet = false; BatchDeleteObject m_deleteObject; bool m_deleteObjectHasBeenSet = false; BatchAddFacetToObject m_addFacetToObject; bool m_addFacetToObjectHasBeenSet = false; BatchRemoveFacetFromObject m_removeFacetFromObject; bool m_removeFacetFromObjectHasBeenSet = false; BatchAttachPolicy m_attachPolicy; bool m_attachPolicyHasBeenSet = false; BatchDetachPolicy m_detachPolicy; bool m_detachPolicyHasBeenSet = false; BatchCreateIndex m_createIndex; bool m_createIndexHasBeenSet = false; BatchAttachToIndex m_attachToIndex; bool m_attachToIndexHasBeenSet = false; BatchDetachFromIndex m_detachFromIndex; bool m_detachFromIndexHasBeenSet = false; BatchAttachTypedLink m_attachTypedLink; bool m_attachTypedLinkHasBeenSet = false; BatchDetachTypedLink m_detachTypedLink; bool m_detachTypedLinkHasBeenSet = false; BatchUpdateLinkAttributes m_updateLinkAttributes; bool m_updateLinkAttributesHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws