AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DisruptionCompliance.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/resiliencehub/model/ComplianceStatus.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ResilienceHub
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_RESILIENCEHUB_API DisruptionCompliance() = default;
37 AWS_RESILIENCEHUB_API DisruptionCompliance(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline int GetAchievableRpoInSecs() const { return m_achievableRpoInSecs; }
47 inline bool AchievableRpoInSecsHasBeenSet() const { return m_achievableRpoInSecsHasBeenSet; }
48 inline void SetAchievableRpoInSecs(int value) { m_achievableRpoInSecsHasBeenSet = true; m_achievableRpoInSecs = value; }
49 inline DisruptionCompliance& WithAchievableRpoInSecs(int value) { SetAchievableRpoInSecs(value); return *this;}
51
53
56 inline int GetAchievableRtoInSecs() const { return m_achievableRtoInSecs; }
57 inline bool AchievableRtoInSecsHasBeenSet() const { return m_achievableRtoInSecsHasBeenSet; }
58 inline void SetAchievableRtoInSecs(int value) { m_achievableRtoInSecsHasBeenSet = true; m_achievableRtoInSecs = value; }
59 inline DisruptionCompliance& WithAchievableRtoInSecs(int value) { SetAchievableRtoInSecs(value); return *this;}
61
63
66 inline ComplianceStatus GetComplianceStatus() const { return m_complianceStatus; }
67 inline bool ComplianceStatusHasBeenSet() const { return m_complianceStatusHasBeenSet; }
68 inline void SetComplianceStatus(ComplianceStatus value) { m_complianceStatusHasBeenSet = true; m_complianceStatus = value; }
71
73
76 inline int GetCurrentRpoInSecs() const { return m_currentRpoInSecs; }
77 inline bool CurrentRpoInSecsHasBeenSet() const { return m_currentRpoInSecsHasBeenSet; }
78 inline void SetCurrentRpoInSecs(int value) { m_currentRpoInSecsHasBeenSet = true; m_currentRpoInSecs = value; }
79 inline DisruptionCompliance& WithCurrentRpoInSecs(int value) { SetCurrentRpoInSecs(value); return *this;}
81
83
86 inline int GetCurrentRtoInSecs() const { return m_currentRtoInSecs; }
87 inline bool CurrentRtoInSecsHasBeenSet() const { return m_currentRtoInSecsHasBeenSet; }
88 inline void SetCurrentRtoInSecs(int value) { m_currentRtoInSecsHasBeenSet = true; m_currentRtoInSecs = value; }
89 inline DisruptionCompliance& WithCurrentRtoInSecs(int value) { SetCurrentRtoInSecs(value); return *this;}
91
93
96 inline const Aws::String& GetMessage() const { return m_message; }
97 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
98 template<typename MessageT = Aws::String>
99 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
100 template<typename MessageT = Aws::String>
101 DisruptionCompliance& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
103
105
108 inline const Aws::String& GetRpoDescription() const { return m_rpoDescription; }
109 inline bool RpoDescriptionHasBeenSet() const { return m_rpoDescriptionHasBeenSet; }
110 template<typename RpoDescriptionT = Aws::String>
111 void SetRpoDescription(RpoDescriptionT&& value) { m_rpoDescriptionHasBeenSet = true; m_rpoDescription = std::forward<RpoDescriptionT>(value); }
112 template<typename RpoDescriptionT = Aws::String>
113 DisruptionCompliance& WithRpoDescription(RpoDescriptionT&& value) { SetRpoDescription(std::forward<RpoDescriptionT>(value)); return *this;}
115
117
120 inline const Aws::String& GetRpoReferenceId() const { return m_rpoReferenceId; }
121 inline bool RpoReferenceIdHasBeenSet() const { return m_rpoReferenceIdHasBeenSet; }
122 template<typename RpoReferenceIdT = Aws::String>
123 void SetRpoReferenceId(RpoReferenceIdT&& value) { m_rpoReferenceIdHasBeenSet = true; m_rpoReferenceId = std::forward<RpoReferenceIdT>(value); }
124 template<typename RpoReferenceIdT = Aws::String>
125 DisruptionCompliance& WithRpoReferenceId(RpoReferenceIdT&& value) { SetRpoReferenceId(std::forward<RpoReferenceIdT>(value)); return *this;}
127
129
132 inline const Aws::String& GetRtoDescription() const { return m_rtoDescription; }
133 inline bool RtoDescriptionHasBeenSet() const { return m_rtoDescriptionHasBeenSet; }
134 template<typename RtoDescriptionT = Aws::String>
135 void SetRtoDescription(RtoDescriptionT&& value) { m_rtoDescriptionHasBeenSet = true; m_rtoDescription = std::forward<RtoDescriptionT>(value); }
136 template<typename RtoDescriptionT = Aws::String>
137 DisruptionCompliance& WithRtoDescription(RtoDescriptionT&& value) { SetRtoDescription(std::forward<RtoDescriptionT>(value)); return *this;}
139
141
144 inline const Aws::String& GetRtoReferenceId() const { return m_rtoReferenceId; }
145 inline bool RtoReferenceIdHasBeenSet() const { return m_rtoReferenceIdHasBeenSet; }
146 template<typename RtoReferenceIdT = Aws::String>
147 void SetRtoReferenceId(RtoReferenceIdT&& value) { m_rtoReferenceIdHasBeenSet = true; m_rtoReferenceId = std::forward<RtoReferenceIdT>(value); }
148 template<typename RtoReferenceIdT = Aws::String>
149 DisruptionCompliance& WithRtoReferenceId(RtoReferenceIdT&& value) { SetRtoReferenceId(std::forward<RtoReferenceIdT>(value)); return *this;}
151 private:
152
153 int m_achievableRpoInSecs{0};
154 bool m_achievableRpoInSecsHasBeenSet = false;
155
156 int m_achievableRtoInSecs{0};
157 bool m_achievableRtoInSecsHasBeenSet = false;
158
160 bool m_complianceStatusHasBeenSet = false;
161
162 int m_currentRpoInSecs{0};
163 bool m_currentRpoInSecsHasBeenSet = false;
164
165 int m_currentRtoInSecs{0};
166 bool m_currentRtoInSecsHasBeenSet = false;
167
168 Aws::String m_message;
169 bool m_messageHasBeenSet = false;
170
171 Aws::String m_rpoDescription;
172 bool m_rpoDescriptionHasBeenSet = false;
173
174 Aws::String m_rpoReferenceId;
175 bool m_rpoReferenceIdHasBeenSet = false;
176
177 Aws::String m_rtoDescription;
178 bool m_rtoDescriptionHasBeenSet = false;
179
180 Aws::String m_rtoReferenceId;
181 bool m_rtoReferenceIdHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace ResilienceHub
186} // 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