/** * 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 Schemas { namespace Model { /** */ class AWS_SCHEMAS_API CreateRegistryRequest : public SchemasRequest { public: CreateRegistryRequest(); // 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 "CreateRegistry"; } Aws::String SerializePayload() const override; /** *

A description of the registry to be created.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the registry to be created.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the registry to be created.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the registry to be created.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the registry to be created.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the registry to be created.

*/ inline CreateRegistryRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the registry to be created.

*/ inline CreateRegistryRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the registry to be created.

*/ inline CreateRegistryRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The name of the registry.

*/ inline const Aws::String& GetRegistryName() const{ return m_registryName; } /** *

The name of the registry.

*/ inline bool RegistryNameHasBeenSet() const { return m_registryNameHasBeenSet; } /** *

The name of the registry.

*/ inline void SetRegistryName(const Aws::String& value) { m_registryNameHasBeenSet = true; m_registryName = value; } /** *

The name of the registry.

*/ inline void SetRegistryName(Aws::String&& value) { m_registryNameHasBeenSet = true; m_registryName = std::move(value); } /** *

The name of the registry.

*/ inline void SetRegistryName(const char* value) { m_registryNameHasBeenSet = true; m_registryName.assign(value); } /** *

The name of the registry.

*/ inline CreateRegistryRequest& WithRegistryName(const Aws::String& value) { SetRegistryName(value); return *this;} /** *

The name of the registry.

*/ inline CreateRegistryRequest& WithRegistryName(Aws::String&& value) { SetRegistryName(std::move(value)); return *this;} /** *

The name of the registry.

*/ inline CreateRegistryRequest& WithRegistryName(const char* value) { SetRegistryName(value); return *this;} /** *

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

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

Tags to associate with the registry.

*/ inline CreateRegistryRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_description; bool m_descriptionHasBeenSet; Aws::String m_registryName; bool m_registryNameHasBeenSet; Aws::Map m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace Schemas } // namespace Aws