AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RetentionArchiveTier.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/RetentionIntervalUnitValues.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace DLM {
20namespace Model {
21
37 public:
38 AWS_DLM_API RetentionArchiveTier() = default;
42
44
51 inline int GetCount() const { return m_count; }
52 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
53 inline void SetCount(int value) {
54 m_countHasBeenSet = true;
55 m_count = value;
56 }
57 inline RetentionArchiveTier& WithCount(int value) {
58 SetCount(value);
59 return *this;
60 }
62
64
68 inline int GetInterval() const { return m_interval; }
69 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
70 inline void SetInterval(int value) {
71 m_intervalHasBeenSet = true;
72 m_interval = value;
73 }
75 SetInterval(value);
76 return *this;
77 }
79
81
86 inline RetentionIntervalUnitValues GetIntervalUnit() const { return m_intervalUnit; }
87 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
89 m_intervalUnitHasBeenSet = true;
90 m_intervalUnit = value;
91 }
93 SetIntervalUnit(value);
94 return *this;
95 }
97 private:
98 int m_count{0};
99
100 int m_interval{0};
101
103 bool m_countHasBeenSet = false;
104 bool m_intervalHasBeenSet = false;
105 bool m_intervalUnitHasBeenSet = false;
106};
107
108} // namespace Model
109} // namespace DLM
110} // namespace Aws
void SetIntervalUnit(RetentionIntervalUnitValues value)
AWS_DLM_API RetentionArchiveTier()=default
RetentionArchiveTier & WithInterval(int value)
RetentionArchiveTier & WithCount(int value)
RetentionIntervalUnitValues GetIntervalUnit() const
AWS_DLM_API RetentionArchiveTier(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API RetentionArchiveTier & operator=(Aws::Utils::Json::JsonView jsonValue)
RetentionArchiveTier & WithIntervalUnit(RetentionIntervalUnitValues value)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
Aws::Utils::Json::JsonValue JsonValue