/** * 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 Keyspaces { namespace Model { /** *

Point-in-time recovery (PITR) helps protect your Amazon Keyspaces tables from * accidental write or delete operations by providing you continuous backups of * your table data.

For more information, see Point-in-time * recovery in the Amazon Keyspaces Developer Guide.

See * Also:

AWS * API Reference

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

The options are:

  • status=ENABLED

  • *
  • status=DISABLED

*/ inline const PointInTimeRecoveryStatus& GetStatus() const{ return m_status; } /** *

The options are:

  • status=ENABLED

  • *
  • status=DISABLED

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The options are:

  • status=ENABLED

  • *
  • status=DISABLED

*/ inline void SetStatus(const PointInTimeRecoveryStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The options are:

  • status=ENABLED

  • *
  • status=DISABLED

*/ inline void SetStatus(PointInTimeRecoveryStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The options are:

  • status=ENABLED

  • *
  • status=DISABLED

*/ inline PointInTimeRecovery& WithStatus(const PointInTimeRecoveryStatus& value) { SetStatus(value); return *this;} /** *

The options are:

  • status=ENABLED

  • *
  • status=DISABLED

*/ inline PointInTimeRecovery& WithStatus(PointInTimeRecoveryStatus&& value) { SetStatus(std::move(value)); return *this;} private: PointInTimeRecoveryStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace Keyspaces } // namespace Aws