AWS SDK for C++

AWS SDK for C++ Version 1.11.740

Loading...
Searching...
No Matches
ComplianceDrift.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
10#include <aws/resiliencehub/model/DifferenceType.h>
11#include <aws/resiliencehub/model/DisruptionCompliance.h>
12#include <aws/resiliencehub/model/DisruptionType.h>
13#include <aws/resiliencehub/model/DriftType.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ResilienceHub {
25namespace Model {
26
35 public:
36 AWS_RESILIENCEHUB_API ComplianceDrift() = default;
37 AWS_RESILIENCEHUB_API ComplianceDrift(Aws::Utils::Json::JsonView jsonValue);
38 AWS_RESILIENCEHUB_API ComplianceDrift& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
45 inline const Aws::String& GetActualReferenceId() const { return m_actualReferenceId; }
46 inline bool ActualReferenceIdHasBeenSet() const { return m_actualReferenceIdHasBeenSet; }
47 template <typename ActualReferenceIdT = Aws::String>
48 void SetActualReferenceId(ActualReferenceIdT&& value) {
49 m_actualReferenceIdHasBeenSet = true;
50 m_actualReferenceId = std::forward<ActualReferenceIdT>(value);
51 }
52 template <typename ActualReferenceIdT = Aws::String>
53 ComplianceDrift& WithActualReferenceId(ActualReferenceIdT&& value) {
54 SetActualReferenceId(std::forward<ActualReferenceIdT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::Map<DisruptionType, DisruptionCompliance>& GetActualValue() const { return m_actualValue; }
64 inline bool ActualValueHasBeenSet() const { return m_actualValueHasBeenSet; }
65 template <typename ActualValueT = Aws::Map<DisruptionType, DisruptionCompliance>>
66 void SetActualValue(ActualValueT&& value) {
67 m_actualValueHasBeenSet = true;
68 m_actualValue = std::forward<ActualValueT>(value);
69 }
70 template <typename ActualValueT = Aws::Map<DisruptionType, DisruptionCompliance>>
71 ComplianceDrift& WithActualValue(ActualValueT&& value) {
72 SetActualValue(std::forward<ActualValueT>(value));
73 return *this;
74 }
76 m_actualValueHasBeenSet = true;
77 m_actualValue.emplace(key, value);
78 return *this;
79 }
81
83
86 inline const Aws::String& GetAppId() const { return m_appId; }
87 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
88 template <typename AppIdT = Aws::String>
89 void SetAppId(AppIdT&& value) {
90 m_appIdHasBeenSet = true;
91 m_appId = std::forward<AppIdT>(value);
92 }
93 template <typename AppIdT = Aws::String>
94 ComplianceDrift& WithAppId(AppIdT&& value) {
95 SetAppId(std::forward<AppIdT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::String& GetAppVersion() const { return m_appVersion; }
105 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
106 template <typename AppVersionT = Aws::String>
107 void SetAppVersion(AppVersionT&& value) {
108 m_appVersionHasBeenSet = true;
109 m_appVersion = std::forward<AppVersionT>(value);
110 }
111 template <typename AppVersionT = Aws::String>
112 ComplianceDrift& WithAppVersion(AppVersionT&& value) {
113 SetAppVersion(std::forward<AppVersionT>(value));
114 return *this;
115 }
117
119
124 inline DifferenceType GetDiffType() const { return m_diffType; }
125 inline bool DiffTypeHasBeenSet() const { return m_diffTypeHasBeenSet; }
126 inline void SetDiffType(DifferenceType value) {
127 m_diffTypeHasBeenSet = true;
128 m_diffType = value;
129 }
131 SetDiffType(value);
132 return *this;
133 }
135
137
141 inline DriftType GetDriftType() const { return m_driftType; }
142 inline bool DriftTypeHasBeenSet() const { return m_driftTypeHasBeenSet; }
143 inline void SetDriftType(DriftType value) {
144 m_driftTypeHasBeenSet = true;
145 m_driftType = value;
146 }
148 SetDriftType(value);
149 return *this;
150 }
152
154
158 inline const Aws::String& GetEntityId() const { return m_entityId; }
159 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
160 template <typename EntityIdT = Aws::String>
161 void SetEntityId(EntityIdT&& value) {
162 m_entityIdHasBeenSet = true;
163 m_entityId = std::forward<EntityIdT>(value);
164 }
165 template <typename EntityIdT = Aws::String>
166 ComplianceDrift& WithEntityId(EntityIdT&& value) {
167 SetEntityId(std::forward<EntityIdT>(value));
168 return *this;
169 }
171
173
178 inline const Aws::String& GetEntityType() const { return m_entityType; }
179 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
180 template <typename EntityTypeT = Aws::String>
181 void SetEntityType(EntityTypeT&& value) {
182 m_entityTypeHasBeenSet = true;
183 m_entityType = std::forward<EntityTypeT>(value);
184 }
185 template <typename EntityTypeT = Aws::String>
186 ComplianceDrift& WithEntityType(EntityTypeT&& value) {
187 SetEntityType(std::forward<EntityTypeT>(value));
188 return *this;
189 }
191
193
199 inline const Aws::String& GetExpectedReferenceId() const { return m_expectedReferenceId; }
200 inline bool ExpectedReferenceIdHasBeenSet() const { return m_expectedReferenceIdHasBeenSet; }
201 template <typename ExpectedReferenceIdT = Aws::String>
202 void SetExpectedReferenceId(ExpectedReferenceIdT&& value) {
203 m_expectedReferenceIdHasBeenSet = true;
204 m_expectedReferenceId = std::forward<ExpectedReferenceIdT>(value);
205 }
206 template <typename ExpectedReferenceIdT = Aws::String>
207 ComplianceDrift& WithExpectedReferenceId(ExpectedReferenceIdT&& value) {
208 SetExpectedReferenceId(std::forward<ExpectedReferenceIdT>(value));
209 return *this;
210 }
212
214
217 inline const Aws::Map<DisruptionType, DisruptionCompliance>& GetExpectedValue() const { return m_expectedValue; }
218 inline bool ExpectedValueHasBeenSet() const { return m_expectedValueHasBeenSet; }
219 template <typename ExpectedValueT = Aws::Map<DisruptionType, DisruptionCompliance>>
220 void SetExpectedValue(ExpectedValueT&& value) {
221 m_expectedValueHasBeenSet = true;
222 m_expectedValue = std::forward<ExpectedValueT>(value);
223 }
224 template <typename ExpectedValueT = Aws::Map<DisruptionType, DisruptionCompliance>>
225 ComplianceDrift& WithExpectedValue(ExpectedValueT&& value) {
226 SetExpectedValue(std::forward<ExpectedValueT>(value));
227 return *this;
228 }
230 m_expectedValueHasBeenSet = true;
231 m_expectedValue.emplace(key, value);
232 return *this;
233 }
235 private:
236 Aws::String m_actualReferenceId;
237
239
240 Aws::String m_appId;
241
242 Aws::String m_appVersion;
243
245
246 DriftType m_driftType{DriftType::NOT_SET};
247
248 Aws::String m_entityId;
249
250 Aws::String m_entityType;
251
252 Aws::String m_expectedReferenceId;
253
255 bool m_actualReferenceIdHasBeenSet = false;
256 bool m_actualValueHasBeenSet = false;
257 bool m_appIdHasBeenSet = false;
258 bool m_appVersionHasBeenSet = false;
259 bool m_diffTypeHasBeenSet = false;
260 bool m_driftTypeHasBeenSet = false;
261 bool m_entityIdHasBeenSet = false;
262 bool m_entityTypeHasBeenSet = false;
263 bool m_expectedReferenceIdHasBeenSet = false;
264 bool m_expectedValueHasBeenSet = false;
265};
266
267} // namespace Model
268} // namespace ResilienceHub
269} // namespace Aws
ComplianceDrift & WithDriftType(DriftType value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_RESILIENCEHUB_API ComplianceDrift()=default
AWS_RESILIENCEHUB_API ComplianceDrift & operator=(Aws::Utils::Json::JsonView jsonValue)
ComplianceDrift & WithExpectedValue(ExpectedValueT &&value)
void SetExpectedReferenceId(ExpectedReferenceIdT &&value)
const Aws::Map< DisruptionType, DisruptionCompliance > & GetExpectedValue() const
ComplianceDrift & WithEntityType(EntityTypeT &&value)
ComplianceDrift & WithActualReferenceId(ActualReferenceIdT &&value)
ComplianceDrift & WithActualValue(ActualValueT &&value)
void SetExpectedValue(ExpectedValueT &&value)
ComplianceDrift & AddExpectedValue(DisruptionType key, DisruptionCompliance value)
const Aws::String & GetAppVersion() const
const Aws::String & GetActualReferenceId() const
AWS_RESILIENCEHUB_API ComplianceDrift(Aws::Utils::Json::JsonView jsonValue)
ComplianceDrift & WithExpectedReferenceId(ExpectedReferenceIdT &&value)
void SetActualReferenceId(ActualReferenceIdT &&value)
void SetActualValue(ActualValueT &&value)
ComplianceDrift & WithDiffType(DifferenceType value)
ComplianceDrift & WithAppId(AppIdT &&value)
ComplianceDrift & WithEntityId(EntityIdT &&value)
ComplianceDrift & WithAppVersion(AppVersionT &&value)
const Aws::Map< DisruptionType, DisruptionCompliance > & GetActualValue() const
const Aws::String & GetEntityType() const
const Aws::String & GetExpectedReferenceId() const
ComplianceDrift & AddActualValue(DisruptionType key, DisruptionCompliance value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue