AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackResourceDrift.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/StackResourceDriftStatus.h>
12#include <aws/core/utils/DateTime.h>
13#include <aws/cloudformation/model/ModuleInfo.h>
14#include <aws/cloudformation/model/PhysicalResourceIdContextKeyValuePair.h>
15#include <aws/cloudformation/model/PropertyDifference.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace CloudFormation
28{
29namespace Model
30{
31
50 {
51 public:
52 AWS_CLOUDFORMATION_API StackResourceDrift() = default;
53 AWS_CLOUDFORMATION_API StackResourceDrift(const Aws::Utils::Xml::XmlNode& xmlNode);
54 AWS_CLOUDFORMATION_API StackResourceDrift& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
55
56 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
57 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
58
59
61
64 inline const Aws::String& GetStackId() const { return m_stackId; }
65 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
66 template<typename StackIdT = Aws::String>
67 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
68 template<typename StackIdT = Aws::String>
69 StackResourceDrift& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
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) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
80 template<typename LogicalResourceIdT = Aws::String>
81 StackResourceDrift& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
83
85
89 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
90 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
91 template<typename PhysicalResourceIdT = Aws::String>
92 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
93 template<typename PhysicalResourceIdT = Aws::String>
94 StackResourceDrift& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
96
98
105 inline const Aws::Vector<PhysicalResourceIdContextKeyValuePair>& GetPhysicalResourceIdContext() const { return m_physicalResourceIdContext; }
106 inline bool PhysicalResourceIdContextHasBeenSet() const { return m_physicalResourceIdContextHasBeenSet; }
107 template<typename PhysicalResourceIdContextT = Aws::Vector<PhysicalResourceIdContextKeyValuePair>>
108 void SetPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext = std::forward<PhysicalResourceIdContextT>(value); }
109 template<typename PhysicalResourceIdContextT = Aws::Vector<PhysicalResourceIdContextKeyValuePair>>
110 StackResourceDrift& WithPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) { SetPhysicalResourceIdContext(std::forward<PhysicalResourceIdContextT>(value)); return *this;}
111 template<typename PhysicalResourceIdContextT = PhysicalResourceIdContextKeyValuePair>
112 StackResourceDrift& AddPhysicalResourceIdContext(PhysicalResourceIdContextT&& value) { m_physicalResourceIdContextHasBeenSet = true; m_physicalResourceIdContext.emplace_back(std::forward<PhysicalResourceIdContextT>(value)); return *this; }
114
116
119 inline const Aws::String& GetResourceType() const { return m_resourceType; }
120 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
121 template<typename ResourceTypeT = Aws::String>
122 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
123 template<typename ResourceTypeT = Aws::String>
124 StackResourceDrift& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
126
128
134 inline const Aws::String& GetExpectedProperties() const { return m_expectedProperties; }
135 inline bool ExpectedPropertiesHasBeenSet() const { return m_expectedPropertiesHasBeenSet; }
136 template<typename ExpectedPropertiesT = Aws::String>
137 void SetExpectedProperties(ExpectedPropertiesT&& value) { m_expectedPropertiesHasBeenSet = true; m_expectedProperties = std::forward<ExpectedPropertiesT>(value); }
138 template<typename ExpectedPropertiesT = Aws::String>
139 StackResourceDrift& WithExpectedProperties(ExpectedPropertiesT&& value) { SetExpectedProperties(std::forward<ExpectedPropertiesT>(value)); return *this;}
141
143
148 inline const Aws::String& GetActualProperties() const { return m_actualProperties; }
149 inline bool ActualPropertiesHasBeenSet() const { return m_actualPropertiesHasBeenSet; }
150 template<typename ActualPropertiesT = Aws::String>
151 void SetActualProperties(ActualPropertiesT&& value) { m_actualPropertiesHasBeenSet = true; m_actualProperties = std::forward<ActualPropertiesT>(value); }
152 template<typename ActualPropertiesT = Aws::String>
153 StackResourceDrift& WithActualProperties(ActualPropertiesT&& value) { SetActualProperties(std::forward<ActualPropertiesT>(value)); return *this;}
155
157
162 inline const Aws::Vector<PropertyDifference>& GetPropertyDifferences() const { return m_propertyDifferences; }
163 inline bool PropertyDifferencesHasBeenSet() const { return m_propertyDifferencesHasBeenSet; }
164 template<typename PropertyDifferencesT = Aws::Vector<PropertyDifference>>
165 void SetPropertyDifferences(PropertyDifferencesT&& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences = std::forward<PropertyDifferencesT>(value); }
166 template<typename PropertyDifferencesT = Aws::Vector<PropertyDifference>>
167 StackResourceDrift& WithPropertyDifferences(PropertyDifferencesT&& value) { SetPropertyDifferences(std::forward<PropertyDifferencesT>(value)); return *this;}
168 template<typename PropertyDifferencesT = PropertyDifference>
169 StackResourceDrift& AddPropertyDifferences(PropertyDifferencesT&& value) { m_propertyDifferencesHasBeenSet = true; m_propertyDifferences.emplace_back(std::forward<PropertyDifferencesT>(value)); return *this; }
171
173
186 inline StackResourceDriftStatus GetStackResourceDriftStatus() const { return m_stackResourceDriftStatus; }
187 inline bool StackResourceDriftStatusHasBeenSet() const { return m_stackResourceDriftStatusHasBeenSet; }
188 inline void SetStackResourceDriftStatus(StackResourceDriftStatus value) { m_stackResourceDriftStatusHasBeenSet = true; m_stackResourceDriftStatus = value; }
191
193
197 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
198 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
199 template<typename TimestampT = Aws::Utils::DateTime>
200 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
201 template<typename TimestampT = Aws::Utils::DateTime>
202 StackResourceDrift& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
204
206
210 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
211 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
212 template<typename ModuleInfoT = ModuleInfo>
213 void SetModuleInfo(ModuleInfoT&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::forward<ModuleInfoT>(value); }
214 template<typename ModuleInfoT = ModuleInfo>
215 StackResourceDrift& WithModuleInfo(ModuleInfoT&& value) { SetModuleInfo(std::forward<ModuleInfoT>(value)); return *this;}
217
219
222 inline const Aws::String& GetDriftStatusReason() const { return m_driftStatusReason; }
223 inline bool DriftStatusReasonHasBeenSet() const { return m_driftStatusReasonHasBeenSet; }
224 template<typename DriftStatusReasonT = Aws::String>
225 void SetDriftStatusReason(DriftStatusReasonT&& value) { m_driftStatusReasonHasBeenSet = true; m_driftStatusReason = std::forward<DriftStatusReasonT>(value); }
226 template<typename DriftStatusReasonT = Aws::String>
227 StackResourceDrift& WithDriftStatusReason(DriftStatusReasonT&& value) { SetDriftStatusReason(std::forward<DriftStatusReasonT>(value)); return *this;}
229 private:
230
231 Aws::String m_stackId;
232 bool m_stackIdHasBeenSet = false;
233
234 Aws::String m_logicalResourceId;
235 bool m_logicalResourceIdHasBeenSet = false;
236
237 Aws::String m_physicalResourceId;
238 bool m_physicalResourceIdHasBeenSet = false;
239
240 Aws::Vector<PhysicalResourceIdContextKeyValuePair> m_physicalResourceIdContext;
241 bool m_physicalResourceIdContextHasBeenSet = false;
242
243 Aws::String m_resourceType;
244 bool m_resourceTypeHasBeenSet = false;
245
246 Aws::String m_expectedProperties;
247 bool m_expectedPropertiesHasBeenSet = false;
248
249 Aws::String m_actualProperties;
250 bool m_actualPropertiesHasBeenSet = false;
251
252 Aws::Vector<PropertyDifference> m_propertyDifferences;
253 bool m_propertyDifferencesHasBeenSet = false;
254
256 bool m_stackResourceDriftStatusHasBeenSet = false;
257
258 Aws::Utils::DateTime m_timestamp{};
259 bool m_timestampHasBeenSet = false;
260
261 ModuleInfo m_moduleInfo;
262 bool m_moduleInfoHasBeenSet = false;
263
264 Aws::String m_driftStatusReason;
265 bool m_driftStatusReasonHasBeenSet = false;
266 };
267
268} // namespace Model
269} // namespace CloudFormation
270} // 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::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream