AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackResourceDrift.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ModuleInfo.h>
9#include <aws/cloudformation/model/PhysicalResourceIdContextKeyValuePair.h>
10#include <aws/cloudformation/model/PropertyDifference.h>
11#include <aws/cloudformation/model/StackResourceDriftStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Xml {
22class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFormation {
26namespace Model {
27
46 public:
47 AWS_CLOUDFORMATION_API StackResourceDrift() = default;
48 AWS_CLOUDFORMATION_API StackResourceDrift(const Aws::Utils::Xml::XmlNode& xmlNode);
49 AWS_CLOUDFORMATION_API StackResourceDrift& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
50
51 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
52 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
53
55
58 inline const Aws::String& GetStackId() const { return m_stackId; }
59 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
60 template <typename StackIdT = Aws::String>
61 void SetStackId(StackIdT&& value) {
62 m_stackIdHasBeenSet = true;
63 m_stackId = std::forward<StackIdT>(value);
64 }
65 template <typename StackIdT = Aws::String>
66 StackResourceDrift& WithStackId(StackIdT&& value) {
67 SetStackId(std::forward<StackIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
77 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
78 template <typename LogicalResourceIdT = Aws::String>
79 void SetLogicalResourceId(LogicalResourceIdT&& value) {
80 m_logicalResourceIdHasBeenSet = true;
81 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
82 }
83 template <typename LogicalResourceIdT = Aws::String>
84 StackResourceDrift& WithLogicalResourceId(LogicalResourceIdT&& value) {
85 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
86 return *this;
87 }
89
91
95 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
96 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
97 template <typename PhysicalResourceIdT = Aws::String>
98 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
99 m_physicalResourceIdHasBeenSet = true;
100 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
101 }
102 template <typename PhysicalResourceIdT = Aws::String>
103 StackResourceDrift& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
104 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
105 return *this;
106 }
108
110
118 return m_physicalResourceIdContext;
119 }
120 inline bool PhysicalResourceIdContextHasBeenSet() const { return m_physicalResourceIdContextHasBeenSet; }
121 template <typename PhysicalResourceIdContextT = Aws::Vector<PhysicalResourceIdContextKeyValuePair>>
122 void SetPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) {
123 m_physicalResourceIdContextHasBeenSet = true;
124 m_physicalResourceIdContext = std::forward<PhysicalResourceIdContextT>(value);
125 }
126 template <typename PhysicalResourceIdContextT = Aws::Vector<PhysicalResourceIdContextKeyValuePair>>
127 StackResourceDrift& WithPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) {
128 SetPhysicalResourceIdContext(std::forward<PhysicalResourceIdContextT>(value));
129 return *this;
130 }
131 template <typename PhysicalResourceIdContextT = PhysicalResourceIdContextKeyValuePair>
132 StackResourceDrift& AddPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) {
133 m_physicalResourceIdContextHasBeenSet = true;
134 m_physicalResourceIdContext.emplace_back(std::forward<PhysicalResourceIdContextT>(value));
135 return *this;
136 }
138
140
143 inline const Aws::String& GetResourceType() const { return m_resourceType; }
144 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
145 template <typename ResourceTypeT = Aws::String>
146 void SetResourceType(ResourceTypeT&& value) {
147 m_resourceTypeHasBeenSet = true;
148 m_resourceType = std::forward<ResourceTypeT>(value);
149 }
150 template <typename ResourceTypeT = Aws::String>
151 StackResourceDrift& WithResourceType(ResourceTypeT&& value) {
152 SetResourceType(std::forward<ResourceTypeT>(value));
153 return *this;
154 }
156
158
164 inline const Aws::String& GetExpectedProperties() const { return m_expectedProperties; }
165 inline bool ExpectedPropertiesHasBeenSet() const { return m_expectedPropertiesHasBeenSet; }
166 template <typename ExpectedPropertiesT = Aws::String>
167 void SetExpectedProperties(ExpectedPropertiesT&& value) {
168 m_expectedPropertiesHasBeenSet = true;
169 m_expectedProperties = std::forward<ExpectedPropertiesT>(value);
170 }
171 template <typename ExpectedPropertiesT = Aws::String>
172 StackResourceDrift& WithExpectedProperties(ExpectedPropertiesT&& value) {
173 SetExpectedProperties(std::forward<ExpectedPropertiesT>(value));
174 return *this;
175 }
177
179
184 inline const Aws::String& GetActualProperties() const { return m_actualProperties; }
185 inline bool ActualPropertiesHasBeenSet() const { return m_actualPropertiesHasBeenSet; }
186 template <typename ActualPropertiesT = Aws::String>
187 void SetActualProperties(ActualPropertiesT&& value) {
188 m_actualPropertiesHasBeenSet = true;
189 m_actualProperties = std::forward<ActualPropertiesT>(value);
190 }
191 template <typename ActualPropertiesT = Aws::String>
192 StackResourceDrift& WithActualProperties(ActualPropertiesT&& value) {
193 SetActualProperties(std::forward<ActualPropertiesT>(value));
194 return *this;
195 }
197
199
204 inline const Aws::Vector<PropertyDifference>& GetPropertyDifferences() const { return m_propertyDifferences; }
205 inline bool PropertyDifferencesHasBeenSet() const { return m_propertyDifferencesHasBeenSet; }
206 template <typename PropertyDifferencesT = Aws::Vector<PropertyDifference>>
207 void SetPropertyDifferences(PropertyDifferencesT&& value) {
208 m_propertyDifferencesHasBeenSet = true;
209 m_propertyDifferences = std::forward<PropertyDifferencesT>(value);
210 }
211 template <typename PropertyDifferencesT = Aws::Vector<PropertyDifference>>
212 StackResourceDrift& WithPropertyDifferences(PropertyDifferencesT&& value) {
213 SetPropertyDifferences(std::forward<PropertyDifferencesT>(value));
214 return *this;
215 }
216 template <typename PropertyDifferencesT = PropertyDifference>
217 StackResourceDrift& AddPropertyDifferences(PropertyDifferencesT&& value) {
218 m_propertyDifferencesHasBeenSet = true;
219 m_propertyDifferences.emplace_back(std::forward<PropertyDifferencesT>(value));
220 return *this;
221 }
223
225
238 inline StackResourceDriftStatus GetStackResourceDriftStatus() const { return m_stackResourceDriftStatus; }
239 inline bool StackResourceDriftStatusHasBeenSet() const { return m_stackResourceDriftStatusHasBeenSet; }
241 m_stackResourceDriftStatusHasBeenSet = true;
242 m_stackResourceDriftStatus = value;
243 }
249
251
255 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
256 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
257 template <typename TimestampT = Aws::Utils::DateTime>
258 void SetTimestamp(TimestampT&& value) {
259 m_timestampHasBeenSet = true;
260 m_timestamp = std::forward<TimestampT>(value);
261 }
262 template <typename TimestampT = Aws::Utils::DateTime>
263 StackResourceDrift& WithTimestamp(TimestampT&& value) {
264 SetTimestamp(std::forward<TimestampT>(value));
265 return *this;
266 }
268
270
274 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
275 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
276 template <typename ModuleInfoT = ModuleInfo>
277 void SetModuleInfo(ModuleInfoT&& value) {
278 m_moduleInfoHasBeenSet = true;
279 m_moduleInfo = std::forward<ModuleInfoT>(value);
280 }
281 template <typename ModuleInfoT = ModuleInfo>
282 StackResourceDrift& WithModuleInfo(ModuleInfoT&& value) {
283 SetModuleInfo(std::forward<ModuleInfoT>(value));
284 return *this;
285 }
287
289
292 inline const Aws::String& GetDriftStatusReason() const { return m_driftStatusReason; }
293 inline bool DriftStatusReasonHasBeenSet() const { return m_driftStatusReasonHasBeenSet; }
294 template <typename DriftStatusReasonT = Aws::String>
295 void SetDriftStatusReason(DriftStatusReasonT&& value) {
296 m_driftStatusReasonHasBeenSet = true;
297 m_driftStatusReason = std::forward<DriftStatusReasonT>(value);
298 }
299 template <typename DriftStatusReasonT = Aws::String>
300 StackResourceDrift& WithDriftStatusReason(DriftStatusReasonT&& value) {
301 SetDriftStatusReason(std::forward<DriftStatusReasonT>(value));
302 return *this;
303 }
305 private:
306 Aws::String m_stackId;
307
308 Aws::String m_logicalResourceId;
309
310 Aws::String m_physicalResourceId;
311
312 Aws::Vector<PhysicalResourceIdContextKeyValuePair> m_physicalResourceIdContext;
313
314 Aws::String m_resourceType;
315
316 Aws::String m_expectedProperties;
317
318 Aws::String m_actualProperties;
319
320 Aws::Vector<PropertyDifference> m_propertyDifferences;
321
323
324 Aws::Utils::DateTime m_timestamp{};
325
326 ModuleInfo m_moduleInfo;
327
328 Aws::String m_driftStatusReason;
329 bool m_stackIdHasBeenSet = false;
330 bool m_logicalResourceIdHasBeenSet = false;
331 bool m_physicalResourceIdHasBeenSet = false;
332 bool m_physicalResourceIdContextHasBeenSet = false;
333 bool m_resourceTypeHasBeenSet = false;
334 bool m_expectedPropertiesHasBeenSet = false;
335 bool m_actualPropertiesHasBeenSet = false;
336 bool m_propertyDifferencesHasBeenSet = false;
337 bool m_stackResourceDriftStatusHasBeenSet = false;
338 bool m_timestampHasBeenSet = false;
339 bool m_moduleInfoHasBeenSet = false;
340 bool m_driftStatusReasonHasBeenSet = false;
341};
342
343} // namespace Model
344} // namespace CloudFormation
345} // namespace Aws
StackResourceDrift & WithPhysicalResourceIdContext(PhysicalResourceIdContextT &&value)
StackResourceDrift & AddPhysicalResourceIdContext(PhysicalResourceIdContextT &&value)
void SetDriftStatusReason(DriftStatusReasonT &&value)
void SetPropertyDifferences(PropertyDifferencesT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
void SetExpectedProperties(ExpectedPropertiesT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetStackResourceDriftStatus(StackResourceDriftStatus value)
StackResourceDrift & WithResourceType(ResourceTypeT &&value)
StackResourceDrift & WithStackId(StackIdT &&value)
StackResourceDrift & WithLogicalResourceId(LogicalResourceIdT &&value)
StackResourceDrift & WithTimestamp(TimestampT &&value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
void SetPhysicalResourceIdContext(PhysicalResourceIdContextT &&value)
const Aws::Vector< PropertyDifference > & GetPropertyDifferences() const
const Aws::Vector< PhysicalResourceIdContextKeyValuePair > & GetPhysicalResourceIdContext() const
AWS_CLOUDFORMATION_API StackResourceDrift(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResourceDrift & WithPropertyDifferences(PropertyDifferencesT &&value)
StackResourceDrift & WithPhysicalResourceId(PhysicalResourceIdT &&value)
StackResourceDrift & WithActualProperties(ActualPropertiesT &&value)
void SetActualProperties(ActualPropertiesT &&value)
StackResourceDrift & WithDriftStatusReason(DriftStatusReasonT &&value)
StackResourceDrift & WithModuleInfo(ModuleInfoT &&value)
StackResourceDrift & WithExpectedProperties(ExpectedPropertiesT &&value)
void SetLogicalResourceId(LogicalResourceIdT &&value)
AWS_CLOUDFORMATION_API StackResourceDrift & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackResourceDriftStatus GetStackResourceDriftStatus() const
StackResourceDrift & WithStackResourceDriftStatus(StackResourceDriftStatus value)
AWS_CLOUDFORMATION_API StackResourceDrift()=default
StackResourceDrift & AddPropertyDifferences(PropertyDifferencesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream
std::vector< T, Aws::Allocator< T > > Vector