AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
DeprecateRule.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
31 public:
32 AWS_DLM_API DeprecateRule() = default;
36
38
43 inline int GetCount() const { return m_count; }
44 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
45 inline void SetCount(int value) {
46 m_countHasBeenSet = true;
47 m_count = value;
48 }
49 inline DeprecateRule& WithCount(int value) {
50 SetCount(value);
51 return *this;
52 }
54
56
62 inline int GetInterval() const { return m_interval; }
63 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
64 inline void SetInterval(int value) {
65 m_intervalHasBeenSet = true;
66 m_interval = value;
67 }
68 inline DeprecateRule& WithInterval(int value) {
69 SetInterval(value);
70 return *this;
71 }
73
75
78 inline RetentionIntervalUnitValues GetIntervalUnit() const { return m_intervalUnit; }
79 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
81 m_intervalUnitHasBeenSet = true;
82 m_intervalUnit = value;
83 }
85 SetIntervalUnit(value);
86 return *this;
87 }
89 private:
90 int m_count{0};
91
92 int m_interval{0};
93
95 bool m_countHasBeenSet = false;
96 bool m_intervalHasBeenSet = false;
97 bool m_intervalUnitHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace DLM
102} // namespace Aws
DeprecateRule & WithIntervalUnit(RetentionIntervalUnitValues value)
AWS_DLM_API DeprecateRule & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
void SetIntervalUnit(RetentionIntervalUnitValues value)
DeprecateRule & WithInterval(int value)
AWS_DLM_API DeprecateRule()=default
RetentionIntervalUnitValues GetIntervalUnit() const
AWS_DLM_API DeprecateRule(Aws::Utils::Json::JsonView jsonValue)
DeprecateRule & WithCount(int value)
Aws::Utils::Json::JsonValue JsonValue