AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackResourceDetail.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ModuleInfo.h>
9#include <aws/cloudformation/model/ResourceStatus.h>
10#include <aws/cloudformation/model/StackResourceDriftInformation.h>
11#include <aws/core/utils/DateTime.h>
12#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Xml {
20class XmlNode;
21} // namespace Xml
22} // namespace Utils
23namespace CloudFormation {
24namespace Model {
25
33 public:
34 AWS_CLOUDFORMATION_API StackResourceDetail() = default;
35 AWS_CLOUDFORMATION_API StackResourceDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFORMATION_API StackResourceDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetStackName() const { return m_stackName; }
46 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
47 template <typename StackNameT = Aws::String>
48 void SetStackName(StackNameT&& value) {
49 m_stackNameHasBeenSet = true;
50 m_stackName = std::forward<StackNameT>(value);
51 }
52 template <typename StackNameT = Aws::String>
53 StackResourceDetail& WithStackName(StackNameT&& value) {
54 SetStackName(std::forward<StackNameT>(value));
55 return *this;
56 }
58
60
63 inline const Aws::String& GetStackId() const { return m_stackId; }
64 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
65 template <typename StackIdT = Aws::String>
66 void SetStackId(StackIdT&& value) {
67 m_stackIdHasBeenSet = true;
68 m_stackId = std::forward<StackIdT>(value);
69 }
70 template <typename StackIdT = Aws::String>
71 StackResourceDetail& WithStackId(StackIdT&& value) {
72 SetStackId(std::forward<StackIdT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
82 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
83 template <typename LogicalResourceIdT = Aws::String>
84 void SetLogicalResourceId(LogicalResourceIdT&& value) {
85 m_logicalResourceIdHasBeenSet = true;
86 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
87 }
88 template <typename LogicalResourceIdT = Aws::String>
89 StackResourceDetail& WithLogicalResourceId(LogicalResourceIdT&& value) {
90 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
101 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
102 template <typename PhysicalResourceIdT = Aws::String>
103 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
104 m_physicalResourceIdHasBeenSet = true;
105 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
106 }
107 template <typename PhysicalResourceIdT = Aws::String>
108 StackResourceDetail& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
109 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
110 return *this;
111 }
113
115
121 inline const Aws::String& GetResourceType() const { return m_resourceType; }
122 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
123 template <typename ResourceTypeT = Aws::String>
124 void SetResourceType(ResourceTypeT&& value) {
125 m_resourceTypeHasBeenSet = true;
126 m_resourceType = std::forward<ResourceTypeT>(value);
127 }
128 template <typename ResourceTypeT = Aws::String>
129 StackResourceDetail& WithResourceType(ResourceTypeT&& value) {
130 SetResourceType(std::forward<ResourceTypeT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
140 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
141 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
142 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
143 m_lastUpdatedTimestampHasBeenSet = true;
144 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
145 }
146 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
147 StackResourceDetail& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
148 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
149 return *this;
150 }
152
154
157 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
158 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
160 m_resourceStatusHasBeenSet = true;
161 m_resourceStatus = value;
162 }
164 SetResourceStatus(value);
165 return *this;
166 }
168
170
173 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
174 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
175 template <typename ResourceStatusReasonT = Aws::String>
176 void SetResourceStatusReason(ResourceStatusReasonT&& value) {
177 m_resourceStatusReasonHasBeenSet = true;
178 m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value);
179 }
180 template <typename ResourceStatusReasonT = Aws::String>
181 StackResourceDetail& WithResourceStatusReason(ResourceStatusReasonT&& value) {
182 SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetDescription() const { return m_description; }
192 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
193 template <typename DescriptionT = Aws::String>
194 void SetDescription(DescriptionT&& value) {
195 m_descriptionHasBeenSet = true;
196 m_description = std::forward<DescriptionT>(value);
197 }
198 template <typename DescriptionT = Aws::String>
199 StackResourceDetail& WithDescription(DescriptionT&& value) {
200 SetDescription(std::forward<DescriptionT>(value));
201 return *this;
202 }
204
206
212 inline const Aws::String& GetMetadata() const { return m_metadata; }
213 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
214 template <typename MetadataT = Aws::String>
215 void SetMetadata(MetadataT&& value) {
216 m_metadataHasBeenSet = true;
217 m_metadata = std::forward<MetadataT>(value);
218 }
219 template <typename MetadataT = Aws::String>
220 StackResourceDetail& WithMetadata(MetadataT&& value) {
221 SetMetadata(std::forward<MetadataT>(value));
222 return *this;
223 }
225
227
236 inline const StackResourceDriftInformation& GetDriftInformation() const { return m_driftInformation; }
237 inline bool DriftInformationHasBeenSet() const { return m_driftInformationHasBeenSet; }
238 template <typename DriftInformationT = StackResourceDriftInformation>
239 void SetDriftInformation(DriftInformationT&& value) {
240 m_driftInformationHasBeenSet = true;
241 m_driftInformation = std::forward<DriftInformationT>(value);
242 }
243 template <typename DriftInformationT = StackResourceDriftInformation>
244 StackResourceDetail& WithDriftInformation(DriftInformationT&& value) {
245 SetDriftInformation(std::forward<DriftInformationT>(value));
246 return *this;
247 }
249
251
255 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
256 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
257 template <typename ModuleInfoT = ModuleInfo>
258 void SetModuleInfo(ModuleInfoT&& value) {
259 m_moduleInfoHasBeenSet = true;
260 m_moduleInfo = std::forward<ModuleInfoT>(value);
261 }
262 template <typename ModuleInfoT = ModuleInfo>
263 StackResourceDetail& WithModuleInfo(ModuleInfoT&& value) {
264 SetModuleInfo(std::forward<ModuleInfoT>(value));
265 return *this;
266 }
268 private:
269 Aws::String m_stackName;
270
271 Aws::String m_stackId;
272
273 Aws::String m_logicalResourceId;
274
275 Aws::String m_physicalResourceId;
276
277 Aws::String m_resourceType;
278
279 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
280
281 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
282
283 Aws::String m_resourceStatusReason;
284
285 Aws::String m_description;
286
287 Aws::String m_metadata;
288
289 StackResourceDriftInformation m_driftInformation;
290
291 ModuleInfo m_moduleInfo;
292 bool m_stackNameHasBeenSet = false;
293 bool m_stackIdHasBeenSet = false;
294 bool m_logicalResourceIdHasBeenSet = false;
295 bool m_physicalResourceIdHasBeenSet = false;
296 bool m_resourceTypeHasBeenSet = false;
297 bool m_lastUpdatedTimestampHasBeenSet = false;
298 bool m_resourceStatusHasBeenSet = false;
299 bool m_resourceStatusReasonHasBeenSet = false;
300 bool m_descriptionHasBeenSet = false;
301 bool m_metadataHasBeenSet = false;
302 bool m_driftInformationHasBeenSet = false;
303 bool m_moduleInfoHasBeenSet = false;
304};
305
306} // namespace Model
307} // namespace CloudFormation
308} // namespace Aws
StackResourceDetail & WithResourceStatus(ResourceStatus value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetDriftInformation(DriftInformationT &&value)
AWS_CLOUDFORMATION_API StackResourceDetail()=default
StackResourceDetail & WithMetadata(MetadataT &&value)
StackResourceDetail & WithLogicalResourceId(LogicalResourceIdT &&value)
AWS_CLOUDFORMATION_API StackResourceDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResourceDetail & WithResourceStatusReason(ResourceStatusReasonT &&value)
StackResourceDetail & WithModuleInfo(ModuleInfoT &&value)
void SetLogicalResourceId(LogicalResourceIdT &&value)
const StackResourceDriftInformation & GetDriftInformation() const
void SetResourceStatusReason(ResourceStatusReasonT &&value)
StackResourceDetail & WithResourceType(ResourceTypeT &&value)
AWS_CLOUDFORMATION_API StackResourceDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResourceDetail & WithPhysicalResourceId(PhysicalResourceIdT &&value)
StackResourceDetail & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
StackResourceDetail & WithDriftInformation(DriftInformationT &&value)
StackResourceDetail & WithStackName(StackNameT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
StackResourceDetail & WithStackId(StackIdT &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackResourceDetail & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream