/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A policy that specifies update behavior for the crawler.See
* Also:
AWS
* API Reference
Whether to use the specified update behavior when the crawler finds a changed * schema.
*/ inline bool GetEnableUpdateCatalog() const{ return m_enableUpdateCatalog; } /** *Whether to use the specified update behavior when the crawler finds a changed * schema.
*/ inline bool EnableUpdateCatalogHasBeenSet() const { return m_enableUpdateCatalogHasBeenSet; } /** *Whether to use the specified update behavior when the crawler finds a changed * schema.
*/ inline void SetEnableUpdateCatalog(bool value) { m_enableUpdateCatalogHasBeenSet = true; m_enableUpdateCatalog = value; } /** *Whether to use the specified update behavior when the crawler finds a changed * schema.
*/ inline DirectSchemaChangePolicy& WithEnableUpdateCatalog(bool value) { SetEnableUpdateCatalog(value); return *this;} /** *The update behavior when the crawler finds a changed schema.
*/ inline const UpdateCatalogBehavior& GetUpdateBehavior() const{ return m_updateBehavior; } /** *The update behavior when the crawler finds a changed schema.
*/ inline bool UpdateBehaviorHasBeenSet() const { return m_updateBehaviorHasBeenSet; } /** *The update behavior when the crawler finds a changed schema.
*/ inline void SetUpdateBehavior(const UpdateCatalogBehavior& value) { m_updateBehaviorHasBeenSet = true; m_updateBehavior = value; } /** *The update behavior when the crawler finds a changed schema.
*/ inline void SetUpdateBehavior(UpdateCatalogBehavior&& value) { m_updateBehaviorHasBeenSet = true; m_updateBehavior = std::move(value); } /** *The update behavior when the crawler finds a changed schema.
*/ inline DirectSchemaChangePolicy& WithUpdateBehavior(const UpdateCatalogBehavior& value) { SetUpdateBehavior(value); return *this;} /** *The update behavior when the crawler finds a changed schema.
*/ inline DirectSchemaChangePolicy& WithUpdateBehavior(UpdateCatalogBehavior&& value) { SetUpdateBehavior(std::move(value)); return *this;} /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline const Aws::String& GetTable() const{ return m_table; } /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline bool TableHasBeenSet() const { return m_tableHasBeenSet; } /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline void SetTable(const Aws::String& value) { m_tableHasBeenSet = true; m_table = value; } /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline void SetTable(Aws::String&& value) { m_tableHasBeenSet = true; m_table = std::move(value); } /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline void SetTable(const char* value) { m_tableHasBeenSet = true; m_table.assign(value); } /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline DirectSchemaChangePolicy& WithTable(const Aws::String& value) { SetTable(value); return *this;} /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline DirectSchemaChangePolicy& WithTable(Aws::String&& value) { SetTable(std::move(value)); return *this;} /** *Specifies the table in the database that the schema change policy applies * to.
*/ inline DirectSchemaChangePolicy& WithTable(const char* value) { SetTable(value); return *this;} /** *Specifies the database that the schema change policy applies to.
*/ inline const Aws::String& GetDatabase() const{ return m_database; } /** *Specifies the database that the schema change policy applies to.
*/ inline bool DatabaseHasBeenSet() const { return m_databaseHasBeenSet; } /** *Specifies the database that the schema change policy applies to.
*/ inline void SetDatabase(const Aws::String& value) { m_databaseHasBeenSet = true; m_database = value; } /** *Specifies the database that the schema change policy applies to.
*/ inline void SetDatabase(Aws::String&& value) { m_databaseHasBeenSet = true; m_database = std::move(value); } /** *Specifies the database that the schema change policy applies to.
*/ inline void SetDatabase(const char* value) { m_databaseHasBeenSet = true; m_database.assign(value); } /** *Specifies the database that the schema change policy applies to.
*/ inline DirectSchemaChangePolicy& WithDatabase(const Aws::String& value) { SetDatabase(value); return *this;} /** *Specifies the database that the schema change policy applies to.
*/ inline DirectSchemaChangePolicy& WithDatabase(Aws::String&& value) { SetDatabase(std::move(value)); return *this;} /** *Specifies the database that the schema change policy applies to.
*/ inline DirectSchemaChangePolicy& WithDatabase(const char* value) { SetDatabase(value); return *this;} private: bool m_enableUpdateCatalog; bool m_enableUpdateCatalogHasBeenSet = false; UpdateCatalogBehavior m_updateBehavior; bool m_updateBehaviorHasBeenSet = false; Aws::String m_table; bool m_tableHasBeenSet = false; Aws::String m_database; bool m_databaseHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws