/** * 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 Personalize { namespace Model { /** */ class CreateSchemaRequest : public PersonalizeRequest { public: AWS_PERSONALIZE_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_PERSONALIZE_API Aws::String SerializePayload() const override; AWS_PERSONALIZE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the schema.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name for the schema.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name for the schema.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name for the schema.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name for the schema.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name for the schema.

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

The name for the schema.

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

The name for the schema.

*/ inline CreateSchemaRequest& WithName(const char* value) { SetName(value); return *this;} /** *

A schema in Avro JSON format.

*/ inline const Aws::String& GetSchema() const{ return m_schema; } /** *

A schema in Avro JSON format.

*/ inline bool SchemaHasBeenSet() const { return m_schemaHasBeenSet; } /** *

A schema in Avro JSON format.

*/ inline void SetSchema(const Aws::String& value) { m_schemaHasBeenSet = true; m_schema = value; } /** *

A schema in Avro JSON format.

*/ inline void SetSchema(Aws::String&& value) { m_schemaHasBeenSet = true; m_schema = std::move(value); } /** *

A schema in Avro JSON format.

*/ inline void SetSchema(const char* value) { m_schemaHasBeenSet = true; m_schema.assign(value); } /** *

A schema in Avro JSON format.

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

A schema in Avro JSON format.

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

A schema in Avro JSON format.

*/ inline CreateSchemaRequest& WithSchema(const char* value) { SetSchema(value); return *this;} /** *

The domain for the schema. If you are creating a schema for a dataset in a * Domain dataset group, specify the domain you chose when you created the Domain * dataset group.

*/ inline const Domain& GetDomain() const{ return m_domain; } /** *

The domain for the schema. If you are creating a schema for a dataset in a * Domain dataset group, specify the domain you chose when you created the Domain * dataset group.

*/ inline bool DomainHasBeenSet() const { return m_domainHasBeenSet; } /** *

The domain for the schema. If you are creating a schema for a dataset in a * Domain dataset group, specify the domain you chose when you created the Domain * dataset group.

*/ inline void SetDomain(const Domain& value) { m_domainHasBeenSet = true; m_domain = value; } /** *

The domain for the schema. If you are creating a schema for a dataset in a * Domain dataset group, specify the domain you chose when you created the Domain * dataset group.

*/ inline void SetDomain(Domain&& value) { m_domainHasBeenSet = true; m_domain = std::move(value); } /** *

The domain for the schema. If you are creating a schema for a dataset in a * Domain dataset group, specify the domain you chose when you created the Domain * dataset group.

*/ inline CreateSchemaRequest& WithDomain(const Domain& value) { SetDomain(value); return *this;} /** *

The domain for the schema. If you are creating a schema for a dataset in a * Domain dataset group, specify the domain you chose when you created the Domain * dataset group.

*/ inline CreateSchemaRequest& WithDomain(Domain&& value) { SetDomain(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_schema; bool m_schemaHasBeenSet = false; Domain m_domain; bool m_domainHasBeenSet = false; }; } // namespace Model } // namespace Personalize } // namespace Aws