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

Retention properties contain the duration for which your time-series data * must be stored in the magnetic store and the memory store.

See * Also:

AWS * API Reference

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

The duration for which data must be stored in the memory store.

*/ inline long long GetMemoryStoreRetentionPeriodInHours() const{ return m_memoryStoreRetentionPeriodInHours; } /** *

The duration for which data must be stored in the memory store.

*/ inline bool MemoryStoreRetentionPeriodInHoursHasBeenSet() const { return m_memoryStoreRetentionPeriodInHoursHasBeenSet; } /** *

The duration for which data must be stored in the memory store.

*/ inline void SetMemoryStoreRetentionPeriodInHours(long long value) { m_memoryStoreRetentionPeriodInHoursHasBeenSet = true; m_memoryStoreRetentionPeriodInHours = value; } /** *

The duration for which data must be stored in the memory store.

*/ inline RetentionProperties& WithMemoryStoreRetentionPeriodInHours(long long value) { SetMemoryStoreRetentionPeriodInHours(value); return *this;} /** *

The duration for which data must be stored in the magnetic store.

*/ inline long long GetMagneticStoreRetentionPeriodInDays() const{ return m_magneticStoreRetentionPeriodInDays; } /** *

The duration for which data must be stored in the magnetic store.

*/ inline bool MagneticStoreRetentionPeriodInDaysHasBeenSet() const { return m_magneticStoreRetentionPeriodInDaysHasBeenSet; } /** *

The duration for which data must be stored in the magnetic store.

*/ inline void SetMagneticStoreRetentionPeriodInDays(long long value) { m_magneticStoreRetentionPeriodInDaysHasBeenSet = true; m_magneticStoreRetentionPeriodInDays = value; } /** *

The duration for which data must be stored in the magnetic store.

*/ inline RetentionProperties& WithMagneticStoreRetentionPeriodInDays(long long value) { SetMagneticStoreRetentionPeriodInDays(value); return *this;} private: long long m_memoryStoreRetentionPeriodInHours; bool m_memoryStoreRetentionPeriodInHoursHasBeenSet = false; long long m_magneticStoreRetentionPeriodInDays; bool m_magneticStoreRetentionPeriodInDaysHasBeenSet = false; }; } // namespace Model } // namespace TimestreamWrite } // namespace Aws