AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ActualReferenceIdT = Aws::String>
54 void SetActualReferenceId(ActualReferenceIdT&& value) { m_actualReferenceIdHasBeenSet = true; m_actualReferenceId = std::forward<ActualReferenceIdT>(value); }
55 template<typename ActualReferenceIdT = Aws::String>
56 ComplianceDrift& WithActualReferenceId(ActualReferenceIdT&& value) { SetActualReferenceId(std::forward<ActualReferenceIdT>(value)); return *this;}
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) { m_actualValueHasBeenSet = true; m_actualValue = std::forward<ActualValueT>(value); }
67 template<typename ActualValueT = Aws::Map<DisruptionType, DisruptionCompliance>>
68 ComplianceDrift& WithActualValue(ActualValueT&& value) { SetActualValue(std::forward<ActualValueT>(value)); return *this;}
70 m_actualValueHasBeenSet = true; m_actualValue.emplace(key, value); return *this;
71 }
73
75
78 inline const Aws::String& GetAppId() const { return m_appId; }
79 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
80 template<typename AppIdT = Aws::String>
81 void SetAppId(AppIdT&& value) { m_appIdHasBeenSet = true; m_appId = std::forward<AppIdT>(value); }
82 template<typename AppIdT = Aws::String>
83 ComplianceDrift& WithAppId(AppIdT&& value) { SetAppId(std::forward<AppIdT>(value)); return *this;}
85
87
90 inline const Aws::String& GetAppVersion() const { return m_appVersion; }
91 inline bool AppVersionHasBeenSet() const { return m_appVersionHasBeenSet; }
92 template<typename AppVersionT = Aws::String>
93 void SetAppVersion(AppVersionT&& value) { m_appVersionHasBeenSet = true; m_appVersion = std::forward<AppVersionT>(value); }
94 template<typename AppVersionT = Aws::String>
95 ComplianceDrift& WithAppVersion(AppVersionT&& value) { SetAppVersion(std::forward<AppVersionT>(value)); return *this;}
97
99
104 inline DifferenceType GetDiffType() const { return m_diffType; }
105 inline bool DiffTypeHasBeenSet() const { return m_diffTypeHasBeenSet; }
106 inline void SetDiffType(DifferenceType value) { m_diffTypeHasBeenSet = true; m_diffType = value; }
107 inline ComplianceDrift& WithDiffType(DifferenceType value) { SetDiffType(value); return *this;}
109
111
115 inline DriftType GetDriftType() const { return m_driftType; }
116 inline bool DriftTypeHasBeenSet() const { return m_driftTypeHasBeenSet; }
117 inline void SetDriftType(DriftType value) { m_driftTypeHasBeenSet = true; m_driftType = value; }
118 inline ComplianceDrift& WithDriftType(DriftType value) { SetDriftType(value); return *this;}
120
122
126 inline const Aws::String& GetEntityId() const { return m_entityId; }
127 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
128 template<typename EntityIdT = Aws::String>
129 void SetEntityId(EntityIdT&& value) { m_entityIdHasBeenSet = true; m_entityId = std::forward<EntityIdT>(value); }
130 template<typename EntityIdT = Aws::String>
131 ComplianceDrift& WithEntityId(EntityIdT&& value) { SetEntityId(std::forward<EntityIdT>(value)); return *this;}
133
135
140 inline const Aws::String& GetEntityType() const { return m_entityType; }
141 inline bool EntityTypeHasBeenSet() const { return m_entityTypeHasBeenSet; }
142 template<typename EntityTypeT = Aws::String>
143 void SetEntityType(EntityTypeT&& value) { m_entityTypeHasBeenSet = true; m_entityType = std::forward<EntityTypeT>(value); }
144 template<typename EntityTypeT = Aws::String>
145 ComplianceDrift& WithEntityType(EntityTypeT&& value) { SetEntityType(std::forward<EntityTypeT>(value)); return *this;}
147
149
155 inline const Aws::String& GetExpectedReferenceId() const { return m_expectedReferenceId; }
156 inline bool ExpectedReferenceIdHasBeenSet() const { return m_expectedReferenceIdHasBeenSet; }
157 template<typename ExpectedReferenceIdT = Aws::String>
158 void SetExpectedReferenceId(ExpectedReferenceIdT&& value) { m_expectedReferenceIdHasBeenSet = true; m_expectedReferenceId = std::forward<ExpectedReferenceIdT>(value); }
159 template<typename ExpectedReferenceIdT = Aws::String>
160 ComplianceDrift& WithExpectedReferenceId(ExpectedReferenceIdT&& value) { SetExpectedReferenceId(std::forward<ExpectedReferenceIdT>(value)); return *this;}
162
164
167 inline const Aws::Map<DisruptionType, DisruptionCompliance>& GetExpectedValue() const { return m_expectedValue; }
168 inline bool ExpectedValueHasBeenSet() const { return m_expectedValueHasBeenSet; }
169 template<typename ExpectedValueT = Aws::Map<DisruptionType, DisruptionCompliance>>
170 void SetExpectedValue(ExpectedValueT&& value) { m_expectedValueHasBeenSet = true; m_expectedValue = std::forward<ExpectedValueT>(value); }
171 template<typename ExpectedValueT = Aws::Map<DisruptionType, DisruptionCompliance>>
172 ComplianceDrift& WithExpectedValue(ExpectedValueT&& value) { SetExpectedValue(std::forward<ExpectedValueT>(value)); return *this;}
174 m_expectedValueHasBeenSet = true; m_expectedValue.emplace(key, value); return *this;
175 }
177 private:
178
179 Aws::String m_actualReferenceId;
180 bool m_actualReferenceIdHasBeenSet = false;
181
183 bool m_actualValueHasBeenSet = false;
184
185 Aws::String m_appId;
186 bool m_appIdHasBeenSet = false;
187
188 Aws::String m_appVersion;
189 bool m_appVersionHasBeenSet = false;
190
192 bool m_diffTypeHasBeenSet = false;
193
194 DriftType m_driftType{DriftType::NOT_SET};
195 bool m_driftTypeHasBeenSet = false;
196
197 Aws::String m_entityId;
198 bool m_entityIdHasBeenSet = false;
199
200 Aws::String m_entityType;
201 bool m_entityTypeHasBeenSet = false;
202
203 Aws::String m_expectedReferenceId;
204 bool m_expectedReferenceIdHasBeenSet = false;
205
207 bool m_expectedValueHasBeenSet = false;
208 };
209
210} // namespace Model
211} // namespace ResilienceHub
212} // 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