/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Attaches the specified object to the specified index inside a
* BatchRead operation. For more information, see AttachToIndex and
* BatchReadRequest$Operations.See Also:
AWS
* API Reference
A reference to the index that you are attaching the object to.
*/ inline const ObjectReference& GetIndexReference() const{ return m_indexReference; } /** *A reference to the index that you are attaching the object to.
*/ inline bool IndexReferenceHasBeenSet() const { return m_indexReferenceHasBeenSet; } /** *A reference to the index that you are attaching the object to.
*/ inline void SetIndexReference(const ObjectReference& value) { m_indexReferenceHasBeenSet = true; m_indexReference = value; } /** *A reference to the index that you are attaching the object to.
*/ inline void SetIndexReference(ObjectReference&& value) { m_indexReferenceHasBeenSet = true; m_indexReference = std::move(value); } /** *A reference to the index that you are attaching the object to.
*/ inline BatchAttachToIndex& WithIndexReference(const ObjectReference& value) { SetIndexReference(value); return *this;} /** *A reference to the index that you are attaching the object to.
*/ inline BatchAttachToIndex& WithIndexReference(ObjectReference&& value) { SetIndexReference(std::move(value)); return *this;} /** *A reference to the object that you are attaching to the index.
*/ inline const ObjectReference& GetTargetReference() const{ return m_targetReference; } /** *A reference to the object that you are attaching to the index.
*/ inline bool TargetReferenceHasBeenSet() const { return m_targetReferenceHasBeenSet; } /** *A reference to the object that you are attaching to the index.
*/ inline void SetTargetReference(const ObjectReference& value) { m_targetReferenceHasBeenSet = true; m_targetReference = value; } /** *A reference to the object that you are attaching to the index.
*/ inline void SetTargetReference(ObjectReference&& value) { m_targetReferenceHasBeenSet = true; m_targetReference = std::move(value); } /** *A reference to the object that you are attaching to the index.
*/ inline BatchAttachToIndex& WithTargetReference(const ObjectReference& value) { SetTargetReference(value); return *this;} /** *A reference to the object that you are attaching to the index.
*/ inline BatchAttachToIndex& 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