AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComplianceDrift.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/resiliencehub/model/DifferenceType.h>
11#include <aws/resiliencehub/model/DriftType.h>
12#include <aws/resiliencehub/model/DisruptionType.h>
13#include <aws/resiliencehub/model/DisruptionCompliance.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace ResilienceHub
27{
28namespace Model
29{
30
39 {
40 public:
41 AWS_RESILIENCEHUB_API ComplianceDrift();
42 AWS_RESILIENCEHUB_API ComplianceDrift(Aws::Utils::Json::JsonView jsonValue);
43 AWS_RESILIENCEHUB_API ComplianceDrift& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetActualReferenceId() const{ return m_actualReferenceId; }
52 inline bool ActualReferenceIdHasBeenSet() const { return m_actualReferenceIdHasBeenSet; }
53 inline void SetActualReferenceId(const Aws::String& value) { m_actualReferenceIdHasBeenSet = true; m_actualReferenceId = value; }
54 inline void SetActualReferenceId(Aws::String&& value) { m_actualReferenceIdHasBeenSet = true; m_actualReferenceId = std::move(value); }
55 inline void SetActualReferenceId(const char* value) { m_actualReferenceIdHasBeenSet = true; m_actualReferenceId.assign(value); }
56 inline ComplianceDrift& WithActualReferenceId(const Aws::String& value) { SetActualReferenceId(value); return *this;}
57 inline ComplianceDrift& WithActualReferenceId(Aws::String&& value) { SetActualReferenceId(std::move(value)); return *this;}
58 inline ComplianceDrift& WithActualReferenceId(const char* value) { SetActualReferenceId(value); return *this;}
60
62
65 inline const Aws::Map<DisruptionType, DisruptionCompliance>& GetActualValue() const{ return m_actualValue; }
66 inline bool ActualValueHasBeenSet() const { return m_actualValueHasBeenSet; }
67 inline void SetActualValue(const Aws::Map<DisruptionType, DisruptionCompliance>& value) { m_actualValueHasBeenSet = true; m_actualValue = value; }
68 inline void SetActualValue(Aws::Map<DisruptionType, DisruptionCompliance>&& value) { m_actualValueHasBeenSet = true; m_actualValue = std::move(value); }
71 inline ComplianceDrift& AddActualValue(const DisruptionType& key, const DisruptionCompliance& value) { m_actualValueHasBeenSet = true; m_actualValue.emplace(key, value); return *this; }
72 inline ComplianceDrift& AddActualValue(DisruptionType&& key, const DisruptionCompliance& value) { m_actualValueHasBeenSet = true; m_actualValue.emplace(std::move(key), value); return *this; }
73 inline ComplianceDrift& AddActualValue(const DisruptionType& key, DisruptionCompliance&& value) { m_actualValueHasBeenSet = true; m_actualValue.emplace(key, std::move(value)); return *this; }
74 inline ComplianceDrift& AddActualValue(DisruptionType&& key, DisruptionCompliance&& value) { m_actualValueHasBeenSet = true; m_actualValue.emplace(std::move(key), std::move(value)); return *this; }
76
78
81 inline const Aws::String& GetAppId() const{ return m_appId; }
82 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
83 inline void SetAppId(const Aws::String& value) { m_appIdHasBeenSet = true; m_appId = value; }
84 inline void SetAppId(Aws::String&& value) { m_appIdHasBeenSet = true; m_appId = std::move(value); }
85 inline void SetAppId(const char* value) { m_appIdHasBeenSet = true; m_appId.assign(value); }
86 inline ComplianceDrift& WithAppId(const Aws::String& value) { SetAppId(value); return *this;}
87 inline ComplianceDrift& WithAppId(Aws::String&& value) { SetAppId(std::move(value)); return *this;}
88 inline ComplianceDrift& WithAppId(const char* value) { SetAppId(value); return *this;}
90
92
95 inline const Aws::String& GetAppVersion() const{ return m_appVersion; }
96 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
97 inline void SetAppVersion(const Aws::String& value) { m_appVersionHasBeenSet = true; m_appVersion = value; }
98 inline void SetAppVersion(Aws::String&& value) { m_appVersionHasBeenSet = true; m_appVersion = std::move(value); }
99 inline void SetAppVersion(const char* value) { m_appVersionHasBeenSet = true; m_appVersion.assign(value); }
100 inline ComplianceDrift& WithAppVersion(const Aws::String& value) { SetAppVersion(value); return *this;}
101 inline ComplianceDrift& WithAppVersion(Aws::String&& value) { SetAppVersion(std::move(value)); return *this;}
102 inline ComplianceDrift& WithAppVersion(const char* value) { SetAppVersion(value); return *this;}
104
106
111 inline const DifferenceType& GetDiffType() const{ return m_diffType; }
112 inline bool DiffTypeHasBeenSet() const { return m_diffTypeHasBeenSet; }
113 inline void SetDiffType(const DifferenceType& value) { m_diffTypeHasBeenSet = true; m_diffType = value; }
114 inline void SetDiffType(DifferenceType&& value) { m_diffTypeHasBeenSet = true; m_diffType = std::move(value); }
115 inline ComplianceDrift& WithDiffType(const DifferenceType& value) { SetDiffType(value); return *this;}
116 inline ComplianceDrift& WithDiffType(DifferenceType&& value) { SetDiffType(std::move(value)); return *this;}
118
120
124 inline const DriftType& GetDriftType() const{ return m_driftType; }
125 inline bool DriftTypeHasBeenSet() const { return m_driftTypeHasBeenSet; }
126 inline void SetDriftType(const DriftType& value) { m_driftTypeHasBeenSet = true; m_driftType = value; }
127 inline void SetDriftType(DriftType&& value) { m_driftTypeHasBeenSet = true; m_driftType = std::move(value); }
128 inline ComplianceDrift& WithDriftType(const DriftType& value) { SetDriftType(value); return *this;}
129 inline ComplianceDrift& WithDriftType(DriftType&& value) { SetDriftType(std::move(value)); return *this;}
131
133
137 inline const Aws::String& GetEntityId() const{ return m_entityId; }
138 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
139 inline void SetEntityId(const Aws::String& value) { m_entityIdHasBeenSet = true; m_entityId = value; }
140 inline void SetEntityId(Aws::String&& value) { m_entityIdHasBeenSet = true; m_entityId = std::move(value); }
141 inline void SetEntityId(const char* value) { m_entityIdHasBeenSet = true; m_entityId.assign(value); }
142 inline ComplianceDrift& WithEntityId(const Aws::String& value) { SetEntityId(value); return *this;}
143 inline ComplianceDrift& WithEntityId(Aws::String&& value) { SetEntityId(std::move(value)); return *this;}
144 inline ComplianceDrift& WithEntityId(const char* value) { SetEntityId(value); return *this;}
146
148
153 inline const Aws::String& GetEntityType() const{ return m_entityType; }
154 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
155 inline void SetEntityType(const Aws::String& value) { m_entityTypeHasBeenSet = true; m_entityType = value; }
156 inline void SetEntityType(Aws::String&& value) { m_entityTypeHasBeenSet = true; m_entityType = std::move(value); }
157 inline void SetEntityType(const char* value) { m_entityTypeHasBeenSet = true; m_entityType.assign(value); }
158 inline ComplianceDrift& WithEntityType(const Aws::String& value) { SetEntityType(value); return *this;}
159 inline ComplianceDrift& WithEntityType(Aws::String&& value) { SetEntityType(std::move(value)); return *this;}
160 inline ComplianceDrift& WithEntityType(const char* value) { SetEntityType(value); return *this;}
162
164
170 inline const Aws::String& GetExpectedReferenceId() const{ return m_expectedReferenceId; }
171 inline bool ExpectedReferenceIdHasBeenSet() const { return m_expectedReferenceIdHasBeenSet; }
172 inline void SetExpectedReferenceId(const Aws::String& value) { m_expectedReferenceIdHasBeenSet = true; m_expectedReferenceId = value; }
173 inline void SetExpectedReferenceId(Aws::String&& value) { m_expectedReferenceIdHasBeenSet = true; m_expectedReferenceId = std::move(value); }
174 inline void SetExpectedReferenceId(const char* value) { m_expectedReferenceIdHasBeenSet = true; m_expectedReferenceId.assign(value); }
175 inline ComplianceDrift& WithExpectedReferenceId(const Aws::String& value) { SetExpectedReferenceId(value); return *this;}
176 inline ComplianceDrift& WithExpectedReferenceId(Aws::String&& value) { SetExpectedReferenceId(std::move(value)); return *this;}
177 inline ComplianceDrift& WithExpectedReferenceId(const char* value) { SetExpectedReferenceId(value); return *this;}
179
181
184 inline const Aws::Map<DisruptionType, DisruptionCompliance>& GetExpectedValue() const{ return m_expectedValue; }
185 inline bool ExpectedValueHasBeenSet() const { return m_expectedValueHasBeenSet; }
186 inline void SetExpectedValue(const Aws::Map<DisruptionType, DisruptionCompliance>& value) { m_expectedValueHasBeenSet = true; m_expectedValue = value; }
187 inline void SetExpectedValue(Aws::Map<DisruptionType, DisruptionCompliance>&& value) { m_expectedValueHasBeenSet = true; m_expectedValue = std::move(value); }
190 inline ComplianceDrift& AddExpectedValue(const DisruptionType& key, const DisruptionCompliance& value) { m_expectedValueHasBeenSet = true; m_expectedValue.emplace(key, value); return *this; }
191 inline ComplianceDrift& AddExpectedValue(DisruptionType&& key, const DisruptionCompliance& value) { m_expectedValueHasBeenSet = true; m_expectedValue.emplace(std::move(key), value); return *this; }
192 inline ComplianceDrift& AddExpectedValue(const DisruptionType& key, DisruptionCompliance&& value) { m_expectedValueHasBeenSet = true; m_expectedValue.emplace(key, std::move(value)); return *this; }
193 inline ComplianceDrift& AddExpectedValue(DisruptionType&& key, DisruptionCompliance&& value) { m_expectedValueHasBeenSet = true; m_expectedValue.emplace(std::move(key), std::move(value)); return *this; }
195 private:
196
197 Aws::String m_actualReferenceId;
198 bool m_actualReferenceIdHasBeenSet = false;
199
201 bool m_actualValueHasBeenSet = false;
202
203 Aws::String m_appId;
204 bool m_appIdHasBeenSet = false;
205
206 Aws::String m_appVersion;
207 bool m_appVersionHasBeenSet = false;
208
209 DifferenceType m_diffType;
210 bool m_diffTypeHasBeenSet = false;
211
212 DriftType m_driftType;
213 bool m_driftTypeHasBeenSet = false;
214
215 Aws::String m_entityId;
216 bool m_entityIdHasBeenSet = false;
217
218 Aws::String m_entityType;
219 bool m_entityTypeHasBeenSet = false;
220
221 Aws::String m_expectedReferenceId;
222 bool m_expectedReferenceIdHasBeenSet = false;
223
225 bool m_expectedValueHasBeenSet = false;
226 };
227
228} // namespace Model
229} // namespace ResilienceHub
230} // namespace Aws
ComplianceDrift & WithDriftType(const DriftType &value)
ComplianceDrift & WithEntityType(const char *value)
const DifferenceType & GetDiffType() const
ComplianceDrift & WithAppVersion(const Aws::String &value)
ComplianceDrift & WithActualValue(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
ComplianceDrift & AddExpectedValue(DisruptionType &&key, const DisruptionCompliance &value)
void SetEntityId(const Aws::String &value)
ComplianceDrift & WithActualReferenceId(const Aws::String &value)
ComplianceDrift & WithAppVersion(const char *value)
void SetDriftType(const DriftType &value)
ComplianceDrift & AddActualValue(DisruptionType &&key, const DisruptionCompliance &value)
ComplianceDrift & WithDiffType(DifferenceType &&value)
ComplianceDrift & WithEntityType(const Aws::String &value)
ComplianceDrift & WithDriftType(DriftType &&value)
ComplianceDrift & WithEntityId(const char *value)
void SetActualReferenceId(Aws::String &&value)
ComplianceDrift & AddActualValue(const DisruptionType &key, DisruptionCompliance &&value)
void SetActualValue(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
ComplianceDrift & WithActualReferenceId(Aws::String &&value)
AWS_RESILIENCEHUB_API ComplianceDrift & operator=(Aws::Utils::Json::JsonView jsonValue)
ComplianceDrift & WithExpectedValue(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
ComplianceDrift & WithDiffType(const DifferenceType &value)
const Aws::Map< DisruptionType, DisruptionCompliance > & GetExpectedValue() const
ComplianceDrift & AddActualValue(DisruptionType &&key, DisruptionCompliance &&value)
ComplianceDrift & AddActualValue(const DisruptionType &key, const DisruptionCompliance &value)
void SetExpectedValue(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
ComplianceDrift & WithExpectedValue(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
void SetAppVersion(const Aws::String &value)
void SetDiffType(DifferenceType &&value)
ComplianceDrift & WithActualValue(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
void SetExpectedValue(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
ComplianceDrift & WithEntityId(const Aws::String &value)
void SetDiffType(const DifferenceType &value)
ComplianceDrift & WithEntityType(Aws::String &&value)
void SetActualReferenceId(const Aws::String &value)
ComplianceDrift & AddExpectedValue(const DisruptionType &key, DisruptionCompliance &&value)
ComplianceDrift & AddExpectedValue(const DisruptionType &key, const DisruptionCompliance &value)
ComplianceDrift & AddExpectedValue(DisruptionType &&key, DisruptionCompliance &&value)
ComplianceDrift & WithAppId(Aws::String &&value)
ComplianceDrift & WithExpectedReferenceId(const char *value)
void SetExpectedReferenceId(const Aws::String &value)
const Aws::String & GetAppVersion() const
const Aws::String & GetActualReferenceId() const
AWS_RESILIENCEHUB_API ComplianceDrift(Aws::Utils::Json::JsonView jsonValue)
ComplianceDrift & WithExpectedReferenceId(const Aws::String &value)
ComplianceDrift & WithEntityId(Aws::String &&value)
ComplianceDrift & WithActualReferenceId(const char *value)
void SetExpectedReferenceId(Aws::String &&value)
const Aws::Map< DisruptionType, DisruptionCompliance > & GetActualValue() const
ComplianceDrift & WithAppId(const Aws::String &value)
const Aws::String & GetEntityType() const
const Aws::String & GetExpectedReferenceId() const
void SetEntityType(const Aws::String &value)
ComplianceDrift & WithAppId(const char *value)
void SetActualValue(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
ComplianceDrift & WithExpectedReferenceId(Aws::String &&value)
ComplianceDrift & WithAppVersion(Aws::String &&value)
void SetAppId(const Aws::String &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