/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Rekognition { namespace Model { /** */ class CreateCollectionRequest : public RekognitionRequest { public: AWS_REKOGNITION_API CreateCollectionRequest(); // 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 "CreateCollection"; } AWS_REKOGNITION_API Aws::String SerializePayload() const override; AWS_REKOGNITION_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

ID for the collection that you are creating.

*/ inline const Aws::String& GetCollectionId() const{ return m_collectionId; } /** *

ID for the collection that you are creating.

*/ inline bool CollectionIdHasBeenSet() const { return m_collectionIdHasBeenSet; } /** *

ID for the collection that you are creating.

*/ inline void SetCollectionId(const Aws::String& value) { m_collectionIdHasBeenSet = true; m_collectionId = value; } /** *

ID for the collection that you are creating.

*/ inline void SetCollectionId(Aws::String&& value) { m_collectionIdHasBeenSet = true; m_collectionId = std::move(value); } /** *

ID for the collection that you are creating.

*/ inline void SetCollectionId(const char* value) { m_collectionIdHasBeenSet = true; m_collectionId.assign(value); } /** *

ID for the collection that you are creating.

*/ inline CreateCollectionRequest& WithCollectionId(const Aws::String& value) { SetCollectionId(value); return *this;} /** *

ID for the collection that you are creating.

*/ inline CreateCollectionRequest& WithCollectionId(Aws::String&& value) { SetCollectionId(std::move(value)); return *this;} /** *

ID for the collection that you are creating.

*/ inline CreateCollectionRequest& WithCollectionId(const char* value) { SetCollectionId(value); return *this;} /** *

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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

A set of tags (key-value pairs) that you want to attach to the collection. *

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