/** * 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 ResourceExplorer2 { namespace Model { /** */ class CreateIndexRequest : public ResourceExplorer2Request { public: AWS_RESOURCEEXPLORER2_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_RESOURCEEXPLORER2_API Aws::String SerializePayload() const override; /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

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

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

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

This value helps ensure idempotency. Resource Explorer uses this value to * prevent the accidental creation of duplicate versions. We recommend that you * generate a UUID-type * value to ensure the uniqueness of your views.

*/ inline CreateIndexRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The specified tags are attached only to the index created in this Amazon Web * Services Region. The tags aren't attached to any of the resources listed in the * index.

*/ inline CreateIndexRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ResourceExplorer2 } // namespace Aws