/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include 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
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