/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Glue { namespace Model { /** *

Specifies an Amazon S3 data store in the Glue Data Catalog.

See * Also:

AWS * API Reference

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

The name of the data store.

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

The name of the data store.

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

The name of the data store.

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

The name of the data store.

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

The name of the data store.

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

The name of the data store.

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

The name of the data store.

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

The name of the data store.

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

The database to read from.

*/ inline const Aws::String& GetDatabase() const{ return m_database; } /** *

The database to read from.

*/ inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } /** *

The database to read from.

*/ inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } /** *

The database to read from.

*/ inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } /** *

The database to read from.

*/ inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } /** *

The database to read from.

*/ inline S3CatalogSource& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} /** *

The database to read from.

*/ inline S3CatalogSource& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} /** *

The database to read from.

*/ inline S3CatalogSource& WithDatabase(const char* value) { SetDatabase(value); return *this;} /** *

The database table to read from.

*/ inline const Aws::String& GetTable() const{ return m_table; } /** *

The database table to read from.

*/ inline bool TableHasBeenSet() const { return m_tableHasBeenSet; } /** *

The database table to read from.

*/ inline void SetTable(const Aws::String& value) { m_tableHasBeenSet = true; m_table = value; } /** *

The database table to read from.

*/ inline void SetTable(Aws::String&& value) { m_tableHasBeenSet = true; m_table = std::move(value); } /** *

The database table to read from.

*/ inline void SetTable(const char* value) { m_tableHasBeenSet = true; m_table.assign(value); } /** *

The database table to read from.

*/ inline S3CatalogSource& WithTable(const Aws::String& value) { SetTable(value); return *this;} /** *

The database table to read from.

*/ inline S3CatalogSource& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;} /** *

The database table to read from.

*/ inline S3CatalogSource& WithTable(const char* value) { SetTable(value); return *this;} /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline const Aws::String& GetPartitionPredicate() const{ return m_partitionPredicate; } /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline bool PartitionPredicateHasBeenSet() const { return m_partitionPredicateHasBeenSet; } /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline void SetPartitionPredicate(const Aws::String& value) { m_partitionPredicateHasBeenSet = true; m_partitionPredicate = value; } /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline void SetPartitionPredicate(Aws::String&& value) { m_partitionPredicateHasBeenSet = true; m_partitionPredicate = std::move(value); } /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline void SetPartitionPredicate(const char* value) { m_partitionPredicateHasBeenSet = true; m_partitionPredicate.assign(value); } /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline S3CatalogSource& WithPartitionPredicate(const Aws::String& value) { SetPartitionPredicate(value); return *this;} /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline S3CatalogSource& WithPartitionPredicate(Aws::String&& value) { SetPartitionPredicate(std::move(value)); return *this;} /** *

Partitions satisfying this predicate are deleted. Files within the retention * period in these partitions are not deleted. Set to "" – empty by * default.

*/ inline S3CatalogSource& WithPartitionPredicate(const char* value) { SetPartitionPredicate(value); return *this;} /** *

Specifies additional connection options.

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

Specifies additional connection options.

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

Specifies additional connection options.

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

Specifies additional connection options.

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

Specifies additional connection options.

*/ inline S3CatalogSource& WithAdditionalOptions(const S3SourceAdditionalOptions& value) { SetAdditionalOptions(value); return *this;} /** *

Specifies additional connection options.

*/ inline S3CatalogSource& WithAdditionalOptions(S3SourceAdditionalOptions&& value) { SetAdditionalOptions(std::move(value)); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_database; bool m_databaseHasBeenSet = false; Aws::String m_table; bool m_tableHasBeenSet = false; Aws::String m_partitionPredicate; bool m_partitionPredicateHasBeenSet = false; S3SourceAdditionalOptions m_additionalOptions; bool m_additionalOptionsHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws