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

Detaches the specified object from the specified index inside a * BatchRead operation. For more information, see DetachFromIndex and * BatchReadRequest$Operations.

See Also:

AWS * API Reference

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

A reference to the index object.

*/ inline const ObjectReference& GetIndexReference() const{ return m_indexReference; } /** *

A reference to the index object.

*/ inline bool IndexReferenceHasBeenSet() const { return m_indexReferenceHasBeenSet; } /** *

A reference to the index object.

*/ inline void SetIndexReference(const ObjectReference& value) { m_indexReferenceHasBeenSet = true; m_indexReference = value; } /** *

A reference to the index object.

*/ inline void SetIndexReference(ObjectReference&& value) { m_indexReferenceHasBeenSet = true; m_indexReference = std::move(value); } /** *

A reference to the index object.

*/ inline BatchDetachFromIndex& WithIndexReference(const ObjectReference& value) { SetIndexReference(value); return *this;} /** *

A reference to the index object.

*/ inline BatchDetachFromIndex& WithIndexReference(ObjectReference&& value) { SetIndexReference(std::move(value)); return *this;} /** *

A reference to the object being detached from the index.

*/ inline const ObjectReference& GetTargetReference() const{ return m_targetReference; } /** *

A reference to the object being detached from the index.

*/ inline bool TargetReferenceHasBeenSet() const { return m_targetReferenceHasBeenSet; } /** *

A reference to the object being detached from the index.

*/ inline void SetTargetReference(const ObjectReference& value) { m_targetReferenceHasBeenSet = true; m_targetReference = value; } /** *

A reference to the object being detached from the index.

*/ inline void SetTargetReference(ObjectReference&& value) { m_targetReferenceHasBeenSet = true; m_targetReference = std::move(value); } /** *

A reference to the object being detached from the index.

*/ inline BatchDetachFromIndex& WithTargetReference(const ObjectReference& value) { SetTargetReference(value); return *this;} /** *

A reference to the object being detached from the index.

*/ inline BatchDetachFromIndex& WithTargetReference(ObjectReference&& value) { SetTargetReference(std::move(value)); return *this;} private: ObjectReference m_indexReference; bool m_indexReferenceHasBeenSet = false; ObjectReference m_targetReference; bool m_targetReferenceHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws