AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackResource.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
32 public:
33 AWS_CLOUDFORMATION_API StackResource() = default;
34 AWS_CLOUDFORMATION_API StackResource(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDFORMATION_API StackResource& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetStackName() const { return m_stackName; }
45 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
46 template <typename StackNameT = Aws::String>
47 void SetStackName(StackNameT&& value) {
48 m_stackNameHasBeenSet = true;
49 m_stackName = std::forward<StackNameT>(value);
50 }
51 template <typename StackNameT = Aws::String>
52 StackResource& WithStackName(StackNameT&& value) {
53 SetStackName(std::forward<StackNameT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetStackId() const { return m_stackId; }
63 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
64 template <typename StackIdT = Aws::String>
65 void SetStackId(StackIdT&& value) {
66 m_stackIdHasBeenSet = true;
67 m_stackId = std::forward<StackIdT>(value);
68 }
69 template <typename StackIdT = Aws::String>
70 StackResource& WithStackId(StackIdT&& value) {
71 SetStackId(std::forward<StackIdT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
81 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
82 template <typename LogicalResourceIdT = Aws::String>
83 void SetLogicalResourceId(LogicalResourceIdT&& value) {
84 m_logicalResourceIdHasBeenSet = true;
85 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
86 }
87 template <typename LogicalResourceIdT = Aws::String>
88 StackResource& WithLogicalResourceId(LogicalResourceIdT&& value) {
89 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
90 return *this;
91 }
93
95
99 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
100 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
101 template <typename PhysicalResourceIdT = Aws::String>
102 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
103 m_physicalResourceIdHasBeenSet = true;
104 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
105 }
106 template <typename PhysicalResourceIdT = Aws::String>
107 StackResource& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
108 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
109 return *this;
110 }
112
114
120 inline const Aws::String& GetResourceType() const { return m_resourceType; }
121 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
122 template <typename ResourceTypeT = Aws::String>
123 void SetResourceType(ResourceTypeT&& value) {
124 m_resourceTypeHasBeenSet = true;
125 m_resourceType = std::forward<ResourceTypeT>(value);
126 }
127 template <typename ResourceTypeT = Aws::String>
128 StackResource& WithResourceType(ResourceTypeT&& value) {
129 SetResourceType(std::forward<ResourceTypeT>(value));
130 return *this;
131 }
133
135
138 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
139 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
140 template <typename TimestampT = Aws::Utils::DateTime>
141 void SetTimestamp(TimestampT&& value) {
142 m_timestampHasBeenSet = true;
143 m_timestamp = std::forward<TimestampT>(value);
144 }
145 template <typename TimestampT = Aws::Utils::DateTime>
146 StackResource& WithTimestamp(TimestampT&& value) {
147 SetTimestamp(std::forward<TimestampT>(value));
148 return *this;
149 }
151
153
156 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
157 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
159 m_resourceStatusHasBeenSet = true;
160 m_resourceStatus = value;
161 }
163 SetResourceStatus(value);
164 return *this;
165 }
167
169
172 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
173 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
174 template <typename ResourceStatusReasonT = Aws::String>
175 void SetResourceStatusReason(ResourceStatusReasonT&& value) {
176 m_resourceStatusReasonHasBeenSet = true;
177 m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value);
178 }
179 template <typename ResourceStatusReasonT = Aws::String>
180 StackResource& WithResourceStatusReason(ResourceStatusReasonT&& value) {
181 SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetDescription() const { return m_description; }
191 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
192 template <typename DescriptionT = Aws::String>
193 void SetDescription(DescriptionT&& value) {
194 m_descriptionHasBeenSet = true;
195 m_description = std::forward<DescriptionT>(value);
196 }
197 template <typename DescriptionT = Aws::String>
198 StackResource& WithDescription(DescriptionT&& value) {
199 SetDescription(std::forward<DescriptionT>(value));
200 return *this;
201 }
203
205
214 inline const StackResourceDriftInformation& GetDriftInformation() const { return m_driftInformation; }
215 inline bool DriftInformationHasBeenSet() const { return m_driftInformationHasBeenSet; }
216 template <typename DriftInformationT = StackResourceDriftInformation>
217 void SetDriftInformation(DriftInformationT&& value) {
218 m_driftInformationHasBeenSet = true;
219 m_driftInformation = std::forward<DriftInformationT>(value);
220 }
221 template <typename DriftInformationT = StackResourceDriftInformation>
222 StackResource& WithDriftInformation(DriftInformationT&& value) {
223 SetDriftInformation(std::forward<DriftInformationT>(value));
224 return *this;
225 }
227
229
233 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
234 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
235 template <typename ModuleInfoT = ModuleInfo>
236 void SetModuleInfo(ModuleInfoT&& value) {
237 m_moduleInfoHasBeenSet = true;
238 m_moduleInfo = std::forward<ModuleInfoT>(value);
239 }
240 template <typename ModuleInfoT = ModuleInfo>
241 StackResource& WithModuleInfo(ModuleInfoT&& value) {
242 SetModuleInfo(std::forward<ModuleInfoT>(value));
243 return *this;
244 }
246 private:
247 Aws::String m_stackName;
248
249 Aws::String m_stackId;
250
251 Aws::String m_logicalResourceId;
252
253 Aws::String m_physicalResourceId;
254
255 Aws::String m_resourceType;
256
257 Aws::Utils::DateTime m_timestamp{};
258
259 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
260
261 Aws::String m_resourceStatusReason;
262
263 Aws::String m_description;
264
265 StackResourceDriftInformation m_driftInformation;
266
267 ModuleInfo m_moduleInfo;
268 bool m_stackNameHasBeenSet = false;
269 bool m_stackIdHasBeenSet = false;
270 bool m_logicalResourceIdHasBeenSet = false;
271 bool m_physicalResourceIdHasBeenSet = false;
272 bool m_resourceTypeHasBeenSet = false;
273 bool m_timestampHasBeenSet = false;
274 bool m_resourceStatusHasBeenSet = false;
275 bool m_resourceStatusReasonHasBeenSet = false;
276 bool m_descriptionHasBeenSet = false;
277 bool m_driftInformationHasBeenSet = false;
278 bool m_moduleInfoHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace CloudFormation
283} // namespace Aws
const Aws::String & GetPhysicalResourceId() const
void SetDriftInformation(DriftInformationT &&value)
StackResource & WithPhysicalResourceId(PhysicalResourceIdT &&value)
void SetDescription(DescriptionT &&value)
const Aws::String & GetLogicalResourceId() const
const Aws::String & GetStackName() const
StackResource & WithModuleInfo(ModuleInfoT &&value)
const Aws::String & GetResourceType() const
const Aws::String & GetStackId() const
AWS_CLOUDFORMATION_API StackResource()=default
StackResource & WithDriftInformation(DriftInformationT &&value)
void SetResourceStatus(ResourceStatus value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
const ModuleInfo & GetModuleInfo() const
AWS_CLOUDFORMATION_API StackResource & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResource & WithResourceType(ResourceTypeT &&value)
const Aws::String & GetResourceStatusReason() const
AWS_CLOUDFORMATION_API StackResource(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceStatusReason(ResourceStatusReasonT &&value)
const StackResourceDriftInformation & GetDriftInformation() const
StackResource & WithStackId(StackIdT &&value)
StackResource & WithDescription(DescriptionT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackResource & WithResourceStatus(ResourceStatus value)
StackResource & WithStackName(StackNameT &&value)
StackResource & WithResourceStatusReason(ResourceStatusReasonT &&value)
void SetLogicalResourceId(LogicalResourceIdT &&value)
StackResource & WithTimestamp(TimestampT &&value)
void SetResourceType(ResourceTypeT &&value)
StackResource & WithLogicalResourceId(LogicalResourceIdT &&value)
void SetModuleInfo(ModuleInfoT &&value)
const Aws::Utils::DateTime & GetTimestamp() const
const Aws::String & GetDescription() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream