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

Creates an index object inside of a BatchRead operation. For more * information, see CreateIndex and * BatchReadRequest$Operations.

See Also:

AWS * API Reference

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

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline const Aws::Vector& GetOrderedIndexedAttributeList() const{ return m_orderedIndexedAttributeList; } /** *

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline bool OrderedIndexedAttributeListHasBeenSet() const { return m_orderedIndexedAttributeListHasBeenSet; } /** *

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline void SetOrderedIndexedAttributeList(const Aws::Vector& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = value; } /** *

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline void SetOrderedIndexedAttributeList(Aws::Vector&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList = std::move(value); } /** *

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline BatchCreateIndex& WithOrderedIndexedAttributeList(const Aws::Vector& value) { SetOrderedIndexedAttributeList(value); return *this;} /** *

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline BatchCreateIndex& WithOrderedIndexedAttributeList(Aws::Vector&& value) { SetOrderedIndexedAttributeList(std::move(value)); return *this;} /** *

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline BatchCreateIndex& AddOrderedIndexedAttributeList(const AttributeKey& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.push_back(value); return *this; } /** *

Specifies the attributes that should be indexed on. Currently only a single * attribute is supported.

*/ inline BatchCreateIndex& AddOrderedIndexedAttributeList(AttributeKey&& value) { m_orderedIndexedAttributeListHasBeenSet = true; m_orderedIndexedAttributeList.push_back(std::move(value)); return *this; } /** *

Indicates whether the attribute that is being indexed has unique values or * not.

*/ inline bool GetIsUnique() const{ return m_isUnique; } /** *

Indicates whether the attribute that is being indexed has unique values or * not.

*/ inline bool IsUniqueHasBeenSet() const { return m_isUniqueHasBeenSet; } /** *

Indicates whether the attribute that is being indexed has unique values or * not.

*/ inline void SetIsUnique(bool value) { m_isUniqueHasBeenSet = true; m_isUnique = value; } /** *

Indicates whether the attribute that is being indexed has unique values or * not.

*/ inline BatchCreateIndex& WithIsUnique(bool value) { SetIsUnique(value); return *this;} /** *

A reference to the parent object that contains the index object.

*/ inline const ObjectReference& GetParentReference() const{ return m_parentReference; } /** *

A reference to the parent object that contains the index object.

*/ inline bool ParentReferenceHasBeenSet() const { return m_parentReferenceHasBeenSet; } /** *

A reference to the parent object that contains the index object.

*/ inline void SetParentReference(const ObjectReference& value) { m_parentReferenceHasBeenSet = true; m_parentReference = value; } /** *

A reference to the parent object that contains the index object.

*/ inline void SetParentReference(ObjectReference&& value) { m_parentReferenceHasBeenSet = true; m_parentReference = std::move(value); } /** *

A reference to the parent object that contains the index object.

*/ inline BatchCreateIndex& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;} /** *

A reference to the parent object that contains the index object.

*/ inline BatchCreateIndex& WithParentReference(ObjectReference&& value) { SetParentReference(std::move(value)); return *this;} /** *

The name of the link between the parent object and the index object.

*/ inline const Aws::String& GetLinkName() const{ return m_linkName; } /** *

The name of the link between the parent object and the index object.

*/ inline bool LinkNameHasBeenSet() const { return m_linkNameHasBeenSet; } /** *

The name of the link between the parent object and the index object.

*/ inline void SetLinkName(const Aws::String& value) { m_linkNameHasBeenSet = true; m_linkName = value; } /** *

The name of the link between the parent object and the index object.

*/ inline void SetLinkName(Aws::String&& value) { m_linkNameHasBeenSet = true; m_linkName = std::move(value); } /** *

The name of the link between the parent object and the index object.

*/ inline void SetLinkName(const char* value) { m_linkNameHasBeenSet = true; m_linkName.assign(value); } /** *

The name of the link between the parent object and the index object.

*/ inline BatchCreateIndex& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;} /** *

The name of the link between the parent object and the index object.

*/ inline BatchCreateIndex& WithLinkName(Aws::String&& value) { SetLinkName(std::move(value)); return *this;} /** *

The name of the link between the parent object and the index object.

*/ inline BatchCreateIndex& WithLinkName(const char* value) { SetLinkName(value); return *this;} /** *

The batch reference name. See Transaction * Support for more information.

*/ inline const Aws::String& GetBatchReferenceName() const{ return m_batchReferenceName; } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline bool BatchReferenceNameHasBeenSet() const { return m_batchReferenceNameHasBeenSet; } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline void SetBatchReferenceName(const Aws::String& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = value; } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline void SetBatchReferenceName(Aws::String&& value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName = std::move(value); } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline void SetBatchReferenceName(const char* value) { m_batchReferenceNameHasBeenSet = true; m_batchReferenceName.assign(value); } /** *

The batch reference name. See Transaction * Support for more information.

*/ inline BatchCreateIndex& WithBatchReferenceName(const Aws::String& value) { SetBatchReferenceName(value); return *this;} /** *

The batch reference name. See Transaction * Support for more information.

*/ inline BatchCreateIndex& WithBatchReferenceName(Aws::String&& value) { SetBatchReferenceName(std::move(value)); return *this;} /** *

The batch reference name. See Transaction * Support for more information.

*/ inline BatchCreateIndex& WithBatchReferenceName(const char* value) { SetBatchReferenceName(value); return *this;} private: Aws::Vector m_orderedIndexedAttributeList; bool m_orderedIndexedAttributeListHasBeenSet = false; bool m_isUnique; bool m_isUniqueHasBeenSet = false; ObjectReference m_parentReference; bool m_parentReferenceHasBeenSet = false; Aws::String m_linkName; bool m_linkNameHasBeenSet = false; Aws::String m_batchReferenceName; bool m_batchReferenceNameHasBeenSet = false; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws