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

The source of the schema definition.

*/ inline const Aws::String& GetContent() const{ return m_content; } /** *

The source of the schema definition.

*/ inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; } /** *

The source of the schema definition.

*/ inline void SetContent(const Aws::String& value) { m_contentHasBeenSet = true; m_content = value; } /** *

The source of the schema definition.

*/ inline void SetContent(Aws::String&& value) { m_contentHasBeenSet = true; m_content = std::move(value); } /** *

The source of the schema definition.

*/ inline void SetContent(const char* value) { m_contentHasBeenSet = true; m_content.assign(value); } /** *

The source of the schema definition.

*/ inline CreateSchemaRequest& WithContent(const Aws::String& value) { SetContent(value); return *this;} /** *

The source of the schema definition.

*/ inline CreateSchemaRequest& WithContent(Aws::String&& value) { SetContent(std::move(value)); return *this;} /** *

The source of the schema definition.

*/ inline CreateSchemaRequest& WithContent(const char* value) { SetContent(value); return *this;} /** *

A description of the schema.

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

A description of the schema.

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

A description of the schema.

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

A description of the schema.

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

A description of the schema.

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

A description of the schema.

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

A description of the schema.

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

A description of the schema.

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

The name of the registry.

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

The name of the registry.

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

The name of the schema.

*/ inline const Aws::String& GetSchemaName() const{ return m_schemaName; } /** *

The name of the schema.

*/ inline bool SchemaNameHasBeenSet() const { return m_schemaNameHasBeenSet; } /** *

The name of the schema.

*/ inline void SetSchemaName(const Aws::String& value) { m_schemaNameHasBeenSet = true; m_schemaName = value; } /** *

The name of the schema.

*/ inline void SetSchemaName(Aws::String&& value) { m_schemaNameHasBeenSet = true; m_schemaName = std::move(value); } /** *

The name of the schema.

*/ inline void SetSchemaName(const char* value) { m_schemaNameHasBeenSet = true; m_schemaName.assign(value); } /** *

The name of the schema.

*/ inline CreateSchemaRequest& WithSchemaName(const Aws::String& value) { SetSchemaName(value); return *this;} /** *

The name of the schema.

*/ inline CreateSchemaRequest& WithSchemaName(Aws::String&& value) { SetSchemaName(std::move(value)); return *this;} /** *

The name of the schema.

*/ inline CreateSchemaRequest& WithSchemaName(const char* value) { SetSchemaName(value); return *this;} /** *

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

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

Tags associated with the schema.

*/ inline CreateSchemaRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The type of schema.

*/ inline const Type& GetType() const{ return m_type; } /** *

The type of schema.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of schema.

*/ inline void SetType(const Type& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of schema.

*/ inline void SetType(Type&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of schema.

*/ inline CreateSchemaRequest& WithType(const Type& value) { SetType(value); return *this;} /** *

The type of schema.

*/ inline CreateSchemaRequest& WithType(Type&& value) { SetType(std::move(value)); return *this;} private: Aws::String m_content; bool m_contentHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_registryName; bool m_registryNameHasBeenSet = false; Aws::String m_schemaName; bool m_schemaNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; Type m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace Schemas } // namespace Aws