AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
DisruptionCompliance.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
9#include <aws/resiliencehub/model/ComplianceStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ResilienceHub {
21namespace Model {
22
30 public:
31 AWS_RESILIENCEHUB_API DisruptionCompliance() = default;
32 AWS_RESILIENCEHUB_API DisruptionCompliance(Aws::Utils::Json::JsonView jsonValue);
34 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline int GetAchievableRpoInSecs() const { return m_achievableRpoInSecs; }
41 inline bool AchievableRpoInSecsHasBeenSet() const { return m_achievableRpoInSecsHasBeenSet; }
42 inline void SetAchievableRpoInSecs(int value) {
43 m_achievableRpoInSecsHasBeenSet = true;
44 m_achievableRpoInSecs = value;
45 }
48 return *this;
49 }
51
53
56 inline int GetAchievableRtoInSecs() const { return m_achievableRtoInSecs; }
57 inline bool AchievableRtoInSecsHasBeenSet() const { return m_achievableRtoInSecsHasBeenSet; }
58 inline void SetAchievableRtoInSecs(int value) {
59 m_achievableRtoInSecsHasBeenSet = true;
60 m_achievableRtoInSecs = value;
61 }
64 return *this;
65 }
67
69
72 inline ComplianceStatus GetComplianceStatus() const { return m_complianceStatus; }
73 inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; }
75 m_complianceStatusHasBeenSet = true;
76 m_complianceStatus = value;
77 }
80 return *this;
81 }
83
85
88 inline int GetCurrentRpoInSecs() const { return m_currentRpoInSecs; }
89 inline bool CurrentRpoInSecsHasBeenSet() const { return m_currentRpoInSecsHasBeenSet; }
90 inline void SetCurrentRpoInSecs(int value) {
91 m_currentRpoInSecsHasBeenSet = true;
92 m_currentRpoInSecs = value;
93 }
96 return *this;
97 }
99
101
104 inline int GetCurrentRtoInSecs() const { return m_currentRtoInSecs; }
105 inline bool CurrentRtoInSecsHasBeenSet() const { return m_currentRtoInSecsHasBeenSet; }
106 inline void SetCurrentRtoInSecs(int value) {
107 m_currentRtoInSecsHasBeenSet = true;
108 m_currentRtoInSecs = value;
109 }
111 SetCurrentRtoInSecs(value);
112 return *this;
113 }
115
117
120 inline const Aws::String& GetMessage() const { return m_message; }
121 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
122 template <typename MessageT = Aws::String>
123 void SetMessage(MessageT&& value) {
124 m_messageHasBeenSet = true;
125 m_message = std::forward<MessageT>(value);
126 }
127 template <typename MessageT = Aws::String>
129 SetMessage(std::forward<MessageT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::String& GetRpoDescription() const { return m_rpoDescription; }
139 inline bool RpoDescriptionHasBeenSet() const { return m_rpoDescriptionHasBeenSet; }
140 template <typename RpoDescriptionT = Aws::String>
141 void SetRpoDescription(RpoDescriptionT&& value) {
142 m_rpoDescriptionHasBeenSet = true;
143 m_rpoDescription = std::forward<RpoDescriptionT>(value);
144 }
145 template <typename RpoDescriptionT = Aws::String>
146 DisruptionCompliance& WithRpoDescription(RpoDescriptionT&& value) {
147 SetRpoDescription(std::forward<RpoDescriptionT>(value));
148 return *this;
149 }
151
153
156 inline const Aws::String& GetRpoReferenceId() const { return m_rpoReferenceId; }
157 inline bool RpoReferenceIdHasBeenSet() const { return m_rpoReferenceIdHasBeenSet; }
158 template <typename RpoReferenceIdT = Aws::String>
159 void SetRpoReferenceId(RpoReferenceIdT&& value) {
160 m_rpoReferenceIdHasBeenSet = true;
161 m_rpoReferenceId = std::forward<RpoReferenceIdT>(value);
162 }
163 template <typename RpoReferenceIdT = Aws::String>
164 DisruptionCompliance& WithRpoReferenceId(RpoReferenceIdT&& value) {
165 SetRpoReferenceId(std::forward<RpoReferenceIdT>(value));
166 return *this;
167 }
169
171
174 inline const Aws::String& GetRtoDescription() const { return m_rtoDescription; }
175 inline bool RtoDescriptionHasBeenSet() const { return m_rtoDescriptionHasBeenSet; }
176 template <typename RtoDescriptionT = Aws::String>
177 void SetRtoDescription(RtoDescriptionT&& value) {
178 m_rtoDescriptionHasBeenSet = true;
179 m_rtoDescription = std::forward<RtoDescriptionT>(value);
180 }
181 template <typename RtoDescriptionT = Aws::String>
182 DisruptionCompliance& WithRtoDescription(RtoDescriptionT&& value) {
183 SetRtoDescription(std::forward<RtoDescriptionT>(value));
184 return *this;
185 }
187
189
192 inline const Aws::String& GetRtoReferenceId() const { return m_rtoReferenceId; }
193 inline bool RtoReferenceIdHasBeenSet() const { return m_rtoReferenceIdHasBeenSet; }
194 template <typename RtoReferenceIdT = Aws::String>
195 void SetRtoReferenceId(RtoReferenceIdT&& value) {
196 m_rtoReferenceIdHasBeenSet = true;
197 m_rtoReferenceId = std::forward<RtoReferenceIdT>(value);
198 }
199 template <typename RtoReferenceIdT = Aws::String>
200 DisruptionCompliance& WithRtoReferenceId(RtoReferenceIdT&& value) {
201 SetRtoReferenceId(std::forward<RtoReferenceIdT>(value));
202 return *this;
203 }
205 private:
206 int m_achievableRpoInSecs{0};
207
208 int m_achievableRtoInSecs{0};
209
211
212 int m_currentRpoInSecs{0};
213
214 int m_currentRtoInSecs{0};
215
216 Aws::String m_message;
217
218 Aws::String m_rpoDescription;
219
220 Aws::String m_rpoReferenceId;
221
222 Aws::String m_rtoDescription;
223
224 Aws::String m_rtoReferenceId;
225 bool m_achievableRpoInSecsHasBeenSet = false;
226 bool m_achievableRtoInSecsHasBeenSet = false;
227 bool m_complianceStatusHasBeenSet = false;
228 bool m_currentRpoInSecsHasBeenSet = false;
229 bool m_currentRtoInSecsHasBeenSet = false;
230 bool m_messageHasBeenSet = false;
231 bool m_rpoDescriptionHasBeenSet = false;
232 bool m_rpoReferenceIdHasBeenSet = false;
233 bool m_rtoDescriptionHasBeenSet = false;
234 bool m_rtoReferenceIdHasBeenSet = false;
235};
236
237} // namespace Model
238} // namespace ResilienceHub
239} // namespace Aws
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
DisruptionCompliance & WithAchievableRtoInSecs(int value)
DisruptionCompliance & WithMessage(MessageT &&value)
DisruptionCompliance & WithRtoReferenceId(RtoReferenceIdT &&value)
DisruptionCompliance & WithRtoDescription(RtoDescriptionT &&value)
DisruptionCompliance & WithRpoDescription(RpoDescriptionT &&value)
AWS_RESILIENCEHUB_API DisruptionCompliance & operator=(Aws::Utils::Json::JsonView jsonValue)
DisruptionCompliance & WithComplianceStatus(ComplianceStatus value)
DisruptionCompliance & WithCurrentRpoInSecs(int value)
DisruptionCompliance & WithAchievableRpoInSecs(int value)
DisruptionCompliance & WithCurrentRtoInSecs(int value)
AWS_RESILIENCEHUB_API DisruptionCompliance()=default
AWS_RESILIENCEHUB_API DisruptionCompliance(Aws::Utils::Json::JsonView jsonValue)
DisruptionCompliance & WithRpoReferenceId(RpoReferenceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue