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

Specifies the source table.

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

Specifies the source table.

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

Specifies the source table.

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

Specifies the source table.

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

Specifies the source table.

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

Specifies the source table.

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

A list of target tables.

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

A list of target tables.

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

A list of target tables.

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

A list of target tables.

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

A list of target tables.

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

A list of target tables.

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

A list of target tables.

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

A list of target tables.

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

Parameters for the mapping.

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

Parameters for the mapping.

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

Parameters for the mapping.

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

Parameters for the mapping.

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

Parameters for the mapping.

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

Parameters for the mapping.

*/ inline GetMappingRequest& WithLocation(Location&& value) { SetLocation(std::move(value)); return *this;} private: CatalogEntry m_source; bool m_sourceHasBeenSet = false; Aws::Vector m_sinks; bool m_sinksHasBeenSet = false; Location m_location; bool m_locationHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws