/** * 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 namespace Aws { namespace CloudDirectory { namespace Model { /** */ class CreateIndexRequest : public CloudDirectoryRequest { public: AWS_CLOUDDIRECTORY_API CreateIndexRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateIndex"; } AWS_CLOUDDIRECTORY_API Aws::String SerializePayload() const override; AWS_CLOUDDIRECTORY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the directory where the index should be created.

*/ inline const Aws::String& GetDirectoryArn() const{ return m_directoryArn; } /** *

The ARN of the directory where the index should be created.

*/ inline bool DirectoryArnHasBeenSet() const { return m_directoryArnHasBeenSet; } /** *

The ARN of the directory where the index should be created.

*/ inline void SetDirectoryArn(const Aws::String& value) { m_directoryArnHasBeenSet = true; m_directoryArn = value; } /** *

The ARN of the directory where the index should be created.

*/ inline void SetDirectoryArn(Aws::String&& value) { m_directoryArnHasBeenSet = true; m_directoryArn = std::move(value); } /** *

The ARN of the directory where the index should be created.

*/ inline void SetDirectoryArn(const char* value) { m_directoryArnHasBeenSet = true; m_directoryArn.assign(value); } /** *

The ARN of the directory where the index should be created.

*/ inline CreateIndexRequest& WithDirectoryArn(const Aws::String& value) { SetDirectoryArn(value); return *this;} /** *

The ARN of the directory where the index should be created.

*/ inline CreateIndexRequest& WithDirectoryArn(Aws::String&& value) { SetDirectoryArn(std::move(value)); return *this;} /** *

The ARN of the directory where the index should be created.

*/ inline CreateIndexRequest& WithDirectoryArn(const char* value) { SetDirectoryArn(value); return *this;} /** *

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 CreateIndexRequest& 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 CreateIndexRequest& 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 CreateIndexRequest& 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 CreateIndexRequest& 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 CreateIndexRequest& 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 CreateIndexRequest& WithParentReference(const ObjectReference& value) { SetParentReference(value); return *this;} /** *

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

*/ inline CreateIndexRequest& 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 CreateIndexRequest& WithLinkName(const Aws::String& value) { SetLinkName(value); return *this;} /** *

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

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

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

*/ inline CreateIndexRequest& WithLinkName(const char* value) { SetLinkName(value); return *this;} private: Aws::String m_directoryArn; bool m_directoryArnHasBeenSet = false; 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; }; } // namespace Model } // namespace CloudDirectory } // namespace Aws