AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
PITPolicyRule.h
1
6#pragma once
7#include <aws/drs/Drs_EXPORTS.h>
8#include <aws/drs/model/PITPolicyRuleUnits.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace drs {
20namespace Model {
21
29 public:
30 AWS_DRS_API PITPolicyRule() = default;
34
36
39 inline bool GetEnabled() const { return m_enabled; }
40 inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; }
41 inline void SetEnabled(bool value) {
42 m_enabledHasBeenSet = true;
43 m_enabled = value;
44 }
45 inline PITPolicyRule& WithEnabled(bool value) {
46 SetEnabled(value);
47 return *this;
48 }
50
52
55 inline int GetInterval() const { return m_interval; }
56 inline bool IntervalHasBeenSet() const { return m_intervalHasBeenSet; }
57 inline void SetInterval(int value) {
58 m_intervalHasBeenSet = true;
59 m_interval = value;
60 }
61 inline PITPolicyRule& WithInterval(int value) {
62 SetInterval(value);
63 return *this;
64 }
66
68
71 inline int GetRetentionDuration() const { return m_retentionDuration; }
72 inline bool RetentionDurationHasBeenSet() const { return m_retentionDurationHasBeenSet; }
73 inline void SetRetentionDuration(int value) {
74 m_retentionDurationHasBeenSet = true;
75 m_retentionDuration = value;
76 }
79 return *this;
80 }
82
84
87 inline long long GetRuleID() const { return m_ruleID; }
88 inline bool RuleIDHasBeenSet() const { return m_ruleIDHasBeenSet; }
89 inline void SetRuleID(long long value) {
90 m_ruleIDHasBeenSet = true;
91 m_ruleID = value;
92 }
93 inline PITPolicyRule& WithRuleID(long long value) {
94 SetRuleID(value);
95 return *this;
96 }
98
100
103 inline PITPolicyRuleUnits GetUnits() const { return m_units; }
104 inline bool UnitsHasBeenSet() const { return m_unitsHasBeenSet; }
105 inline void SetUnits(PITPolicyRuleUnits value) {
106 m_unitsHasBeenSet = true;
107 m_units = value;
108 }
110 SetUnits(value);
111 return *this;
112 }
114 private:
115 bool m_enabled{false};
116
117 int m_interval{0};
118
119 int m_retentionDuration{0};
120
121 long long m_ruleID{0};
122
124 bool m_enabledHasBeenSet = false;
125 bool m_intervalHasBeenSet = false;
126 bool m_retentionDurationHasBeenSet = false;
127 bool m_ruleIDHasBeenSet = false;
128 bool m_unitsHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace drs
133} // namespace Aws
AWS_DRS_API PITPolicyRule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRetentionDuration(int value)
PITPolicyRule & WithRuleID(long long value)
void SetUnits(PITPolicyRuleUnits value)
PITPolicyRuleUnits GetUnits() const
AWS_DRS_API PITPolicyRule()=default
void SetRuleID(long long value)
PITPolicyRule & WithEnabled(bool value)
AWS_DRS_API Aws::Utils::Json::JsonValue Jsonize() const
PITPolicyRule & WithInterval(int value)
PITPolicyRule & WithUnits(PITPolicyRuleUnits value)
PITPolicyRule & WithRetentionDuration(int value)
AWS_DRS_API PITPolicyRule(Aws::Utils::Json::JsonView jsonValue)
Aws::Utils::Json::JsonValue JsonValue