AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
RetentionProperties.h
1
6#pragma once
7#include <aws/timestream-write/TimestreamWrite_EXPORTS.h>
8
9namespace Aws {
10namespace Utils {
11namespace Json {
12class JsonValue;
13class JsonView;
14} // namespace Json
15} // namespace Utils
16namespace TimestreamWrite {
17namespace Model {
18
27 public:
28 AWS_TIMESTREAMWRITE_API RetentionProperties() = default;
29 AWS_TIMESTREAMWRITE_API RetentionProperties(Aws::Utils::Json::JsonView jsonValue);
30 AWS_TIMESTREAMWRITE_API RetentionProperties& operator=(Aws::Utils::Json::JsonView jsonValue);
31 AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const;
32
34
37 inline long long GetMemoryStoreRetentionPeriodInHours() const { return m_memoryStoreRetentionPeriodInHours; }
38 inline bool MemoryStoreRetentionPeriodInHoursHasBeenSet() const { return m_memoryStoreRetentionPeriodInHoursHasBeenSet; }
39 inline void SetMemoryStoreRetentionPeriodInHours(long long value) {
40 m_memoryStoreRetentionPeriodInHoursHasBeenSet = true;
41 m_memoryStoreRetentionPeriodInHours = value;
42 }
45 return *this;
46 }
48
50
53 inline long long GetMagneticStoreRetentionPeriodInDays() const { return m_magneticStoreRetentionPeriodInDays; }
54 inline bool MagneticStoreRetentionPeriodInDaysHasBeenSet() const { return m_magneticStoreRetentionPeriodInDaysHasBeenSet; }
55 inline void SetMagneticStoreRetentionPeriodInDays(long long value) {
56 m_magneticStoreRetentionPeriodInDaysHasBeenSet = true;
57 m_magneticStoreRetentionPeriodInDays = value;
58 }
61 return *this;
62 }
64 private:
65 long long m_memoryStoreRetentionPeriodInHours{0};
66
67 long long m_magneticStoreRetentionPeriodInDays{0};
68 bool m_memoryStoreRetentionPeriodInHoursHasBeenSet = false;
69 bool m_magneticStoreRetentionPeriodInDaysHasBeenSet = false;
70};
71
72} // namespace Model
73} // namespace TimestreamWrite
74} // namespace Aws
RetentionProperties & WithMemoryStoreRetentionPeriodInHours(long long value)
AWS_TIMESTREAMWRITE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_TIMESTREAMWRITE_API RetentionProperties(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API RetentionProperties & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_TIMESTREAMWRITE_API RetentionProperties()=default
RetentionProperties & WithMagneticStoreRetentionPeriodInDays(long long value)
Aws::Utils::Json::JsonValue JsonValue