/** * 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 #include #include #include namespace Aws { namespace Glue { namespace Model { /** */ class GetPlanRequest : public GlueRequest { public: AWS_GLUE_API GetPlanRequest(); // 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 "GetPlan"; } AWS_GLUE_API Aws::String SerializePayload() const override; AWS_GLUE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The list of mappings from a source table to target tables.

*/ inline const Aws::Vector& GetMapping() const{ return m_mapping; } /** *

The list of mappings from a source table to target tables.

*/ inline bool MappingHasBeenSet() const { return m_mappingHasBeenSet; } /** *

The list of mappings from a source table to target tables.

*/ inline void SetMapping(const Aws::Vector& value) { m_mappingHasBeenSet = true; m_mapping = value; } /** *

The list of mappings from a source table to target tables.

*/ inline void SetMapping(Aws::Vector&& value) { m_mappingHasBeenSet = true; m_mapping = std::move(value); } /** *

The list of mappings from a source table to target tables.

*/ inline GetPlanRequest& WithMapping(const Aws::Vector& value) { SetMapping(value); return *this;} /** *

The list of mappings from a source table to target tables.

*/ inline GetPlanRequest& WithMapping(Aws::Vector&& value) { SetMapping(std::move(value)); return *this;} /** *

The list of mappings from a source table to target tables.

*/ inline GetPlanRequest& AddMapping(const MappingEntry& value) { m_mappingHasBeenSet = true; m_mapping.push_back(value); return *this; } /** *

The list of mappings from a source table to target tables.

*/ inline GetPlanRequest& AddMapping(MappingEntry&& value) { m_mappingHasBeenSet = true; m_mapping.push_back(std::move(value)); return *this; } /** *

The source table.

*/ inline const CatalogEntry& GetSource() const{ return m_source; } /** *

The source table.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The source table.

*/ inline void SetSource(const CatalogEntry& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The source table.

*/ inline void SetSource(CatalogEntry&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The source table.

*/ inline GetPlanRequest& WithSource(const CatalogEntry& value) { SetSource(value); return *this;} /** *

The source table.

*/ inline GetPlanRequest& WithSource(CatalogEntry&& value) { SetSource(std::move(value)); return *this;} /** *

The target tables.

*/ inline const Aws::Vector& GetSinks() const{ return m_sinks; } /** *

The target tables.

*/ inline bool SinksHasBeenSet() const { return m_sinksHasBeenSet; } /** *

The target tables.

*/ inline void SetSinks(const Aws::Vector& value) { m_sinksHasBeenSet = true; m_sinks = value; } /** *

The target tables.

*/ inline void SetSinks(Aws::Vector&& value) { m_sinksHasBeenSet = true; m_sinks = std::move(value); } /** *

The target tables.

*/ inline GetPlanRequest& WithSinks(const Aws::Vector& value) { SetSinks(value); return *this;} /** *

The target tables.

*/ inline GetPlanRequest& WithSinks(Aws::Vector&& value) { SetSinks(std::move(value)); return *this;} /** *

The target tables.

*/ inline GetPlanRequest& AddSinks(const CatalogEntry& value) { m_sinksHasBeenSet = true; m_sinks.push_back(value); return *this; } /** *

The target tables.

*/ inline GetPlanRequest& AddSinks(CatalogEntry&& value) { m_sinksHasBeenSet = true; m_sinks.push_back(std::move(value)); return *this; } /** *

The parameters for the mapping.

*/ inline const Location& GetLocation() const{ return m_location; } /** *

The parameters for the mapping.

*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *

The parameters for the mapping.

*/ inline void SetLocation(const Location& value) { m_locationHasBeenSet = true; m_location = value; } /** *

The parameters for the mapping.

*/ inline void SetLocation(Location&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *

The parameters for the mapping.

*/ inline GetPlanRequest& WithLocation(const Location& value) { SetLocation(value); return *this;} /** *

The parameters for the mapping.

*/ inline GetPlanRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;} /** *

The programming language of the code to perform the mapping.

*/ inline const Language& GetLanguage() const{ return m_language; } /** *

The programming language of the code to perform the mapping.

*/ inline bool LanguageHasBeenSet() const { return m_languageHasBeenSet; } /** *

The programming language of the code to perform the mapping.

*/ inline void SetLanguage(const Language& value) { m_languageHasBeenSet = true; m_language = value; } /** *

The programming language of the code to perform the mapping.

*/ inline void SetLanguage(Language&& value) { m_languageHasBeenSet = true; m_language = std::move(value); } /** *

The programming language of the code to perform the mapping.

*/ inline GetPlanRequest& WithLanguage(const Language& value) { SetLanguage(value); return *this;} /** *

The programming language of the code to perform the mapping.

*/ inline GetPlanRequest& WithLanguage(Language&& value) { SetLanguage(std::move(value)); return *this;} /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline const Aws::Map& GetAdditionalPlanOptionsMap() const{ return m_additionalPlanOptionsMap; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline bool AdditionalPlanOptionsMapHasBeenSet() const { return m_additionalPlanOptionsMapHasBeenSet; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline void SetAdditionalPlanOptionsMap(const Aws::Map& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap = value; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline void SetAdditionalPlanOptionsMap(Aws::Map&& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap = std::move(value); } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& WithAdditionalPlanOptionsMap(const Aws::Map& value) { SetAdditionalPlanOptionsMap(value); return *this;} /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& WithAdditionalPlanOptionsMap(Aws::Map&& value) { SetAdditionalPlanOptionsMap(std::move(value)); return *this;} /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& AddAdditionalPlanOptionsMap(const Aws::String& key, const Aws::String& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(key, value); return *this; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& AddAdditionalPlanOptionsMap(Aws::String&& key, const Aws::String& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(std::move(key), value); return *this; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& AddAdditionalPlanOptionsMap(const Aws::String& key, Aws::String&& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(key, std::move(value)); return *this; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& AddAdditionalPlanOptionsMap(Aws::String&& key, Aws::String&& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(std::move(key), std::move(value)); return *this; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& AddAdditionalPlanOptionsMap(const char* key, Aws::String&& value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(key, std::move(value)); return *this; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& AddAdditionalPlanOptionsMap(Aws::String&& key, const char* value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(std::move(key), value); return *this; } /** *

A map to hold additional optional key-value parameters.

Currently, * these key-value pairs are supported:

  • inferSchema  * —  Specifies whether to set inferSchema to true or false for the * default script generated by an Glue job. For example, to set * inferSchema to true, pass the following key value pair:

    * --additional-plan-options-map '{"inferSchema":"true"}'

  • *
*/ inline GetPlanRequest& AddAdditionalPlanOptionsMap(const char* key, const char* value) { m_additionalPlanOptionsMapHasBeenSet = true; m_additionalPlanOptionsMap.emplace(key, value); return *this; } private: Aws::Vector m_mapping; bool m_mappingHasBeenSet = false; CatalogEntry m_source; bool m_sourceHasBeenSet = false; Aws::Vector m_sinks; bool m_sinksHasBeenSet = false; Location m_location; bool m_locationHasBeenSet = false; Language m_language; bool m_languageHasBeenSet = false; Aws::Map m_additionalPlanOptionsMap; bool m_additionalPlanOptionsMapHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws