AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
RetainRule.h
1
6#pragma once
7#include <aws/dlm/DLM_EXPORTS.h>
8#include <aws/dlm/model/RetentionIntervalUnitValues.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace DLM
22{
23namespace Model
24{
25
63 {
64 public:
65 AWS_DLM_API RetainRule();
66 AWS_DLM_API RetainRule(Aws::Utils::Json::JsonView jsonValue);
69
70
72
80 inline int GetCount() const{ return m_count; }
81 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
82 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
83 inline RetainRule& WithCount(int value) { SetCount(value); return *this;}
85
87
91 inline int GetInterval() const{ return m_interval; }
92 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
93 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
94 inline RetainRule& WithInterval(int value) { SetInterval(value); return *this;}
96
98
106 inline const RetentionIntervalUnitValues& GetIntervalUnit() const{ return m_intervalUnit; }
107 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
108 inline void SetIntervalUnit(const RetentionIntervalUnitValues& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = value; }
109 inline void SetIntervalUnit(RetentionIntervalUnitValues&& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = std::move(value); }
110 inline RetainRule& WithIntervalUnit(const RetentionIntervalUnitValues& value) { SetIntervalUnit(value); return *this;}
111 inline RetainRule& WithIntervalUnit(RetentionIntervalUnitValues&& value) { SetIntervalUnit(std::move(value)); return *this;}
113 private:
114
115 int m_count;
116 bool m_countHasBeenSet = false;
117
118 int m_interval;
119 bool m_intervalHasBeenSet = false;
120
121 RetentionIntervalUnitValues m_intervalUnit;
122 bool m_intervalUnitHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace DLM
127} // namespace Aws
bool IntervalUnitHasBeenSet() const
Definition RetainRule.h:107
void SetCount(int value)
Definition RetainRule.h:82
void SetIntervalUnit(const RetentionIntervalUnitValues &value)
Definition RetainRule.h:108
RetainRule & WithCount(int value)
Definition RetainRule.h:83
const RetentionIntervalUnitValues & GetIntervalUnit() const
Definition RetainRule.h:106
RetainRule & WithInterval(int value)
Definition RetainRule.h:94
void SetIntervalUnit(RetentionIntervalUnitValues &&value)
Definition RetainRule.h:109
AWS_DLM_API RetainRule & operator=(Aws::Utils::Json::JsonView jsonValue)
RetainRule & WithIntervalUnit(RetentionIntervalUnitValues &&value)
Definition RetainRule.h:111
RetainRule & WithIntervalUnit(const RetentionIntervalUnitValues &value)
Definition RetainRule.h:110
void SetInterval(int value)
Definition RetainRule.h:93
AWS_DLM_API RetainRule(Aws::Utils::Json::JsonView jsonValue)
AWS_DLM_API Aws::Utils::Json::JsonValue Jsonize() const
bool IntervalHasBeenSet() const
Definition RetainRule.h:92
Aws::Utils::Json::JsonValue JsonValue