AWS SDK for C++

AWS SDK for C++ Version 1.11.819

Loading...
Searching...
No Matches
EffectivePolicyValues.h
1
6#pragma once
7#include <aws/resiliencehubv2/Resiliencehubv2_EXPORTS.h>
8#include <aws/resiliencehubv2/model/DisasterRecoverySource.h>
9#include <aws/resiliencehubv2/model/SloSource.h>
10#include <aws/resiliencehubv2/model/TargetSource.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace resiliencehubv2 {
22namespace Model {
23
31 public:
32 AWS_RESILIENCEHUBV2_API EffectivePolicyValues() = default;
33 AWS_RESILIENCEHUBV2_API EffectivePolicyValues(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUBV2_API EffectivePolicyValues& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const SloSource& GetAvailabilitySlo() const { return m_availabilitySlo; }
42 inline bool AvailabilitySloHasBeenSet() const { return m_availabilitySloHasBeenSet; }
43 template <typename AvailabilitySloT = SloSource>
44 void SetAvailabilitySlo(AvailabilitySloT&& value) {
45 m_availabilitySloHasBeenSet = true;
46 m_availabilitySlo = std::forward<AvailabilitySloT>(value);
47 }
48 template <typename AvailabilitySloT = SloSource>
49 EffectivePolicyValues& WithAvailabilitySlo(AvailabilitySloT&& value) {
50 SetAvailabilitySlo(std::forward<AvailabilitySloT>(value));
51 return *this;
52 }
54
56
59 inline const TargetSource& GetMultiAzRto() const { return m_multiAzRto; }
60 inline bool MultiAzRtoHasBeenSet() const { return m_multiAzRtoHasBeenSet; }
61 template <typename MultiAzRtoT = TargetSource>
62 void SetMultiAzRto(MultiAzRtoT&& value) {
63 m_multiAzRtoHasBeenSet = true;
64 m_multiAzRto = std::forward<MultiAzRtoT>(value);
65 }
66 template <typename MultiAzRtoT = TargetSource>
67 EffectivePolicyValues& WithMultiAzRto(MultiAzRtoT&& value) {
68 SetMultiAzRto(std::forward<MultiAzRtoT>(value));
69 return *this;
70 }
72
74
77 inline const TargetSource& GetMultiAzRpo() const { return m_multiAzRpo; }
78 inline bool MultiAzRpoHasBeenSet() const { return m_multiAzRpoHasBeenSet; }
79 template <typename MultiAzRpoT = TargetSource>
80 void SetMultiAzRpo(MultiAzRpoT&& value) {
81 m_multiAzRpoHasBeenSet = true;
82 m_multiAzRpo = std::forward<MultiAzRpoT>(value);
83 }
84 template <typename MultiAzRpoT = TargetSource>
85 EffectivePolicyValues& WithMultiAzRpo(MultiAzRpoT&& value) {
86 SetMultiAzRpo(std::forward<MultiAzRpoT>(value));
87 return *this;
88 }
90
92
95 inline const DisasterRecoverySource& GetMultiAzDrApproach() const { return m_multiAzDrApproach; }
96 inline bool MultiAzDrApproachHasBeenSet() const { return m_multiAzDrApproachHasBeenSet; }
97 template <typename MultiAzDrApproachT = DisasterRecoverySource>
98 void SetMultiAzDrApproach(MultiAzDrApproachT&& value) {
99 m_multiAzDrApproachHasBeenSet = true;
100 m_multiAzDrApproach = std::forward<MultiAzDrApproachT>(value);
101 }
102 template <typename MultiAzDrApproachT = DisasterRecoverySource>
103 EffectivePolicyValues& WithMultiAzDrApproach(MultiAzDrApproachT&& value) {
104 SetMultiAzDrApproach(std::forward<MultiAzDrApproachT>(value));
105 return *this;
106 }
108
110
113 inline const TargetSource& GetMultiRegionRto() const { return m_multiRegionRto; }
114 inline bool MultiRegionRtoHasBeenSet() const { return m_multiRegionRtoHasBeenSet; }
115 template <typename MultiRegionRtoT = TargetSource>
116 void SetMultiRegionRto(MultiRegionRtoT&& value) {
117 m_multiRegionRtoHasBeenSet = true;
118 m_multiRegionRto = std::forward<MultiRegionRtoT>(value);
119 }
120 template <typename MultiRegionRtoT = TargetSource>
121 EffectivePolicyValues& WithMultiRegionRto(MultiRegionRtoT&& value) {
122 SetMultiRegionRto(std::forward<MultiRegionRtoT>(value));
123 return *this;
124 }
126
128
131 inline const TargetSource& GetMultiRegionRpo() const { return m_multiRegionRpo; }
132 inline bool MultiRegionRpoHasBeenSet() const { return m_multiRegionRpoHasBeenSet; }
133 template <typename MultiRegionRpoT = TargetSource>
134 void SetMultiRegionRpo(MultiRegionRpoT&& value) {
135 m_multiRegionRpoHasBeenSet = true;
136 m_multiRegionRpo = std::forward<MultiRegionRpoT>(value);
137 }
138 template <typename MultiRegionRpoT = TargetSource>
139 EffectivePolicyValues& WithMultiRegionRpo(MultiRegionRpoT&& value) {
140 SetMultiRegionRpo(std::forward<MultiRegionRpoT>(value));
141 return *this;
142 }
144
146
149 inline const DisasterRecoverySource& GetMultiRegionDrApproach() const { return m_multiRegionDrApproach; }
150 inline bool MultiRegionDrApproachHasBeenSet() const { return m_multiRegionDrApproachHasBeenSet; }
151 template <typename MultiRegionDrApproachT = DisasterRecoverySource>
152 void SetMultiRegionDrApproach(MultiRegionDrApproachT&& value) {
153 m_multiRegionDrApproachHasBeenSet = true;
154 m_multiRegionDrApproach = std::forward<MultiRegionDrApproachT>(value);
155 }
156 template <typename MultiRegionDrApproachT = DisasterRecoverySource>
157 EffectivePolicyValues& WithMultiRegionDrApproach(MultiRegionDrApproachT&& value) {
158 SetMultiRegionDrApproach(std::forward<MultiRegionDrApproachT>(value));
159 return *this;
160 }
162
164
167 inline const TargetSource& GetDataRecoveryTimeBetweenBackups() const { return m_dataRecoveryTimeBetweenBackups; }
168 inline bool DataRecoveryTimeBetweenBackupsHasBeenSet() const { return m_dataRecoveryTimeBetweenBackupsHasBeenSet; }
169 template <typename DataRecoveryTimeBetweenBackupsT = TargetSource>
170 void SetDataRecoveryTimeBetweenBackups(DataRecoveryTimeBetweenBackupsT&& value) {
171 m_dataRecoveryTimeBetweenBackupsHasBeenSet = true;
172 m_dataRecoveryTimeBetweenBackups = std::forward<DataRecoveryTimeBetweenBackupsT>(value);
173 }
174 template <typename DataRecoveryTimeBetweenBackupsT = TargetSource>
175 EffectivePolicyValues& WithDataRecoveryTimeBetweenBackups(DataRecoveryTimeBetweenBackupsT&& value) {
176 SetDataRecoveryTimeBetweenBackups(std::forward<DataRecoveryTimeBetweenBackupsT>(value));
177 return *this;
178 }
180 private:
181 SloSource m_availabilitySlo;
182
183 TargetSource m_multiAzRto;
184
185 TargetSource m_multiAzRpo;
186
187 DisasterRecoverySource m_multiAzDrApproach;
188
189 TargetSource m_multiRegionRto;
190
191 TargetSource m_multiRegionRpo;
192
193 DisasterRecoverySource m_multiRegionDrApproach;
194
195 TargetSource m_dataRecoveryTimeBetweenBackups;
196 bool m_availabilitySloHasBeenSet = false;
197 bool m_multiAzRtoHasBeenSet = false;
198 bool m_multiAzRpoHasBeenSet = false;
199 bool m_multiAzDrApproachHasBeenSet = false;
200 bool m_multiRegionRtoHasBeenSet = false;
201 bool m_multiRegionRpoHasBeenSet = false;
202 bool m_multiRegionDrApproachHasBeenSet = false;
203 bool m_dataRecoveryTimeBetweenBackupsHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace resiliencehubv2
208} // namespace Aws
EffectivePolicyValues & WithMultiRegionRpo(MultiRegionRpoT &&value)
void SetMultiRegionDrApproach(MultiRegionDrApproachT &&value)
EffectivePolicyValues & WithMultiRegionRto(MultiRegionRtoT &&value)
EffectivePolicyValues & WithDataRecoveryTimeBetweenBackups(DataRecoveryTimeBetweenBackupsT &&value)
AWS_RESILIENCEHUBV2_API EffectivePolicyValues & operator=(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicyValues & WithMultiAzDrApproach(MultiAzDrApproachT &&value)
AWS_RESILIENCEHUBV2_API Aws::Utils::Json::JsonValue Jsonize() const
void SetDataRecoveryTimeBetweenBackups(DataRecoveryTimeBetweenBackupsT &&value)
EffectivePolicyValues & WithMultiRegionDrApproach(MultiRegionDrApproachT &&value)
AWS_RESILIENCEHUBV2_API EffectivePolicyValues()=default
const DisasterRecoverySource & GetMultiAzDrApproach() const
EffectivePolicyValues & WithAvailabilitySlo(AvailabilitySloT &&value)
EffectivePolicyValues & WithMultiAzRpo(MultiAzRpoT &&value)
AWS_RESILIENCEHUBV2_API EffectivePolicyValues(Aws::Utils::Json::JsonView jsonValue)
EffectivePolicyValues & WithMultiAzRto(MultiAzRtoT &&value)
const DisasterRecoverySource & GetMultiRegionDrApproach() const
Aws::Utils::Json::JsonValue JsonValue