/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace EntityResolution { namespace Model { /** */ class CreateSchemaMappingRequest : public EntityResolutionRequest { public: AWS_ENTITYRESOLUTION_API CreateSchemaMappingRequest(); // 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 "CreateSchemaMapping"; } AWS_ENTITYRESOLUTION_API Aws::String SerializePayload() const override; /** *

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 CreateSchemaMappingRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the schema.

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

A description of the schema.

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

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline const Aws::Vector& GetMappedInputFields() const{ return m_mappedInputFields; } /** *

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline bool MappedInputFieldsHasBeenSet() const { return m_mappedInputFieldsHasBeenSet; } /** *

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline void SetMappedInputFields(const Aws::Vector& value) { m_mappedInputFieldsHasBeenSet = true; m_mappedInputFields = value; } /** *

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline void SetMappedInputFields(Aws::Vector&& value) { m_mappedInputFieldsHasBeenSet = true; m_mappedInputFields = std::move(value); } /** *

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline CreateSchemaMappingRequest& WithMappedInputFields(const Aws::Vector& value) { SetMappedInputFields(value); return *this;} /** *

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline CreateSchemaMappingRequest& WithMappedInputFields(Aws::Vector&& value) { SetMappedInputFields(std::move(value)); return *this;} /** *

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline CreateSchemaMappingRequest& AddMappedInputFields(const SchemaInputAttribute& value) { m_mappedInputFieldsHasBeenSet = true; m_mappedInputFields.push_back(value); return *this; } /** *

A list of MappedInputFields. Each MappedInputField * corresponds to a column the source data table, and contains column name plus * additional information that Entity Resolution uses for matching.

*/ inline CreateSchemaMappingRequest& AddMappedInputFields(SchemaInputAttribute&& value) { m_mappedInputFieldsHasBeenSet = true; m_mappedInputFields.push_back(std::move(value)); return *this; } /** *

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The name of the schema. There cannot be multiple SchemaMappings * with the same name.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

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

The tags used to organize, track, or control access for this resource.

*/ inline CreateSchemaMappingRequest& 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 = false; Aws::Vector m_mappedInputFields; bool m_mappedInputFieldsHasBeenSet = false; Aws::String m_schemaName; bool m_schemaNameHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace EntityResolution } // namespace Aws