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

Enable custom Time to Live (TTL) settings for rows and columns without * setting a TTL default for the specified table.

For more information, see * Enabling * TTL on tables in the Amazon Keyspaces Developer Guide.

See * Also:

AWS * API Reference

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

Shows how to enable custom Time to Live (TTL) settings for the specified * table.

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

Shows how to enable custom Time to Live (TTL) settings for the specified * table.

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

Shows how to enable custom Time to Live (TTL) settings for the specified * table.

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

Shows how to enable custom Time to Live (TTL) settings for the specified * table.

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

Shows how to enable custom Time to Live (TTL) settings for the specified * table.

*/ inline TimeToLive& WithStatus(const TimeToLiveStatus& value) { SetStatus(value); return *this;} /** *

Shows how to enable custom Time to Live (TTL) settings for the specified * table.

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