/**
* 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 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