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

A policy that specifies update behavior for the crawler.

See * Also:

AWS * API Reference

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

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 CatalogSchemaChangePolicy& 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 CatalogSchemaChangePolicy& WithUpdateBehavior(const UpdateCatalogBehavior& value) { SetUpdateBehavior(value); return *this;} /** *

The update behavior when the crawler finds a changed schema.

*/ inline CatalogSchemaChangePolicy& WithUpdateBehavior(UpdateCatalogBehavior&& value) { SetUpdateBehavior(std::move(value)); return *this;} private: bool m_enableUpdateCatalog; bool m_enableUpdateCatalogHasBeenSet = false; UpdateCatalogBehavior m_updateBehavior; bool m_updateBehaviorHasBeenSet = false; }; } // namespace Model } // namespace Glue } // namespace Aws