AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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#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
35 {
36 public:
37 AWS_DLM_API DeprecateRule();
41
42
44
49 inline int GetCount() const{ return m_count; }
50 inline bool CountHasBeenSet() const { return m_countHasBeenSet; }
51 inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; }
52 inline DeprecateRule& WithCount(int value) { SetCount(value); return *this;}
54
56
62 inline int GetInterval() const{ return m_interval; }
63 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
64 inline void SetInterval(int value) { m_intervalHasBeenSet = true; m_interval = value; }
65 inline DeprecateRule& WithInterval(int value) { SetInterval(value); return *this;}
67
69
72 inline const RetentionIntervalUnitValues& GetIntervalUnit() const{ return m_intervalUnit; }
73 inline bool IntervalUnitHasBeenSet() const { return m_intervalUnitHasBeenSet; }
74 inline void SetIntervalUnit(const RetentionIntervalUnitValues& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = value; }
75 inline void SetIntervalUnit(RetentionIntervalUnitValues&& value) { m_intervalUnitHasBeenSet = true; m_intervalUnit = std::move(value); }
76 inline DeprecateRule& WithIntervalUnit(const RetentionIntervalUnitValues& value) { SetIntervalUnit(value); return *this;}
77 inline DeprecateRule& WithIntervalUnit(RetentionIntervalUnitValues&& value) { SetIntervalUnit(std::move(value)); return *this;}
79 private:
80
81 int m_count;
82 bool m_countHasBeenSet = false;
83
84 int m_interval;
85 bool m_intervalHasBeenSet = false;
86
87 RetentionIntervalUnitValues m_intervalUnit;
88 bool m_intervalUnitHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace DLM
93} // namespace Aws
DeprecateRule & WithIntervalUnit(const RetentionIntervalUnitValues &value)
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)
const RetentionIntervalUnitValues & GetIntervalUnit() const
void SetIntervalUnit(const RetentionIntervalUnitValues &value)
DeprecateRule & WithInterval(int value)
AWS_DLM_API DeprecateRule(Aws::Utils::Json::JsonView jsonValue)
DeprecateRule & WithCount(int value)
Aws::Utils::Json::JsonValue JsonValue