/** * 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 Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Specifies a Delta Lake data source stored in Amazon S3.

See * Also:

AWS * API Reference

*/ class S3DeltaSource { public: AWS_GLUE_API S3DeltaSource(); AWS_GLUE_API S3DeltaSource(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API S3DeltaSource& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_GLUE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The name of the Delta Lake source.

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

The name of the Delta Lake source.

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

The name of the Delta Lake source.

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

The name of the Delta Lake source.

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

The name of the Delta Lake source.

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

The name of the Delta Lake source.

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

The name of the Delta Lake source.

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

The name of the Delta Lake source.

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

A list of the Amazon S3 paths to read from.

*/ inline const Aws::Vector& GetPaths() const{ return m_paths; } /** *

A list of the Amazon S3 paths to read from.

*/ inline bool PathsHasBeenSet() const { return m_pathsHasBeenSet; } /** *

A list of the Amazon S3 paths to read from.

*/ inline void SetPaths(const Aws::Vector& value) { m_pathsHasBeenSet = true; m_paths = value; } /** *

A list of the Amazon S3 paths to read from.

*/ inline void SetPaths(Aws::Vector&& value) { m_pathsHasBeenSet = true; m_paths = std::move(value); } /** *

A list of the Amazon S3 paths to read from.

*/ inline S3DeltaSource& WithPaths(const Aws::Vector& value) { SetPaths(value); return *this;} /** *

A list of the Amazon S3 paths to read from.

*/ inline S3DeltaSource& WithPaths(Aws::Vector&& value) { SetPaths(std::move(value)); return *this;} /** *

A list of the Amazon S3 paths to read from.

*/ inline S3DeltaSource& AddPaths(const Aws::String& value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; } /** *

A list of the Amazon S3 paths to read from.

*/ inline S3DeltaSource& AddPaths(Aws::String&& value) { m_pathsHasBeenSet = true; m_paths.push_back(std::move(value)); return *this; } /** *

A list of the Amazon S3 paths to read from.

*/ inline S3DeltaSource& AddPaths(const char* value) { m_pathsHasBeenSet = true; m_paths.push_back(value); return *this; } /** *

Specifies additional connection options.

*/ inline const Aws::Map& GetAdditionalDeltaOptions() const{ return m_additionalDeltaOptions; } /** *

Specifies additional connection options.

*/ inline bool AdditionalDeltaOptionsHasBeenSet() const { return m_additionalDeltaOptionsHasBeenSet; } /** *

Specifies additional connection options.

*/ inline void SetAdditionalDeltaOptions(const Aws::Map& value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions = value; } /** *

Specifies additional connection options.

*/ inline void SetAdditionalDeltaOptions(Aws::Map&& value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions = std::move(value); } /** *

Specifies additional connection options.

*/ inline S3DeltaSource& WithAdditionalDeltaOptions(const Aws::Map& value) { SetAdditionalDeltaOptions(value); return *this;} /** *

Specifies additional connection options.

*/ inline S3DeltaSource& WithAdditionalDeltaOptions(Aws::Map&& value) { SetAdditionalDeltaOptions(std::move(value)); return *this;} /** *

Specifies additional connection options.

*/ inline S3DeltaSource& AddAdditionalDeltaOptions(const Aws::String& key, const Aws::String& value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions.emplace(key, value); return *this; } /** *

Specifies additional connection options.

*/ inline S3DeltaSource& AddAdditionalDeltaOptions(Aws::String&& key, const Aws::String& value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions.emplace(std::move(key), value); return *this; } /** *

Specifies additional connection options.

*/ inline S3DeltaSource& AddAdditionalDeltaOptions(const Aws::String& key, Aws::String&& value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions.emplace(key, std::move(value)); return *this; } /** *

Specifies additional connection options.

*/ inline S3DeltaSource& AddAdditionalDeltaOptions(Aws::String&& key, Aws::String&& value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions.emplace(std::move(key), std::move(value)); return *this; } /** *

Specifies additional connection options.

*/ inline S3DeltaSource& AddAdditionalDeltaOptions(const char* key, Aws::String&& value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions.emplace(key, std::move(value)); return *this; } /** *

Specifies additional connection options.

*/ inline S3DeltaSource& AddAdditionalDeltaOptions(Aws::String&& key, const char* value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions.emplace(std::move(key), value); return *this; } /** *

Specifies additional connection options.

*/ inline S3DeltaSource& AddAdditionalDeltaOptions(const char* key, const char* value) { m_additionalDeltaOptionsHasBeenSet = true; m_additionalDeltaOptions.emplace(key, value); return *this; } /** *

Specifies additional options for the connector.

*/ inline const S3DirectSourceAdditionalOptions& GetAdditionalOptions() const{ return m_additionalOptions; } /** *

Specifies additional options for the connector.

*/ inline bool AdditionalOptionsHasBeenSet() const { return m_additionalOptionsHasBeenSet; } /** *

Specifies additional options for the connector.

*/ inline void SetAdditionalOptions(const S3DirectSourceAdditionalOptions& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = value; } /** *

Specifies additional options for the connector.

*/ inline void SetAdditionalOptions(S3DirectSourceAdditionalOptions&& value) { m_additionalOptionsHasBeenSet = true; m_additionalOptions = std::move(value); } /** *

Specifies additional options for the connector.

*/ inline S3DeltaSource& WithAdditionalOptions(const S3DirectSourceAdditionalOptions& value) { SetAdditionalOptions(value); return *this;} /** *

Specifies additional options for the connector.

*/ inline S3DeltaSource& WithAdditionalOptions(S3DirectSourceAdditionalOptions&& value) { SetAdditionalOptions(std::move(value)); return *this;} /** *

Specifies the data schema for the Delta Lake source.

*/ inline const Aws::Vector& GetOutputSchemas() const{ return m_outputSchemas; } /** *

Specifies the data schema for the Delta Lake source.

*/ inline bool OutputSchemasHasBeenSet() const { return m_outputSchemasHasBeenSet; } /** *

Specifies the data schema for the Delta Lake source.

*/ inline void SetOutputSchemas(const Aws::Vector& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = value; } /** *

Specifies the data schema for the Delta Lake source.

*/ inline void SetOutputSchemas(Aws::Vector&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas = std::move(value); } /** *

Specifies the data schema for the Delta Lake source.

*/ inline S3DeltaSource& WithOutputSchemas(const Aws::Vector& value) { SetOutputSchemas(value); return *this;} /** *

Specifies the data schema for the Delta Lake source.

*/ inline S3DeltaSource& WithOutputSchemas(Aws::Vector&& value) { SetOutputSchemas(std::move(value)); return *this;} /** *

Specifies the data schema for the Delta Lake source.

*/ inline S3DeltaSource& AddOutputSchemas(const GlueSchema& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(value); return *this; } /** *

Specifies the data schema for the Delta Lake source.

*/ inline S3DeltaSource& AddOutputSchemas(GlueSchema&& value) { m_outputSchemasHasBeenSet = true; m_outputSchemas.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::Vector m_paths; bool m_pathsHasBeenSet = false; Aws::Map m_additionalDeltaOptions; bool m_additionalDeltaOptionsHasBeenSet = false; S3DirectSourceAdditionalOptions m_additionalOptions; bool m_additionalOptionsHasBeenSet = false; Aws::Vector m_outputSchemas; bool m_outputSchemasHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws