AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackResourceDetail.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/DateTime.h>
11#include <aws/cloudformation/model/ResourceStatus.h>
12#include <aws/cloudformation/model/StackResourceDriftInformation.h>
13#include <aws/cloudformation/model/ModuleInfo.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Xml
21{
22 class XmlNode;
23} // namespace Xml
24} // namespace Utils
25namespace CloudFormation
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_CLOUDFORMATION_API StackResourceDetail() = default;
40 AWS_CLOUDFORMATION_API StackResourceDetail(const Aws::Utils::Xml::XmlNode& xmlNode);
41 AWS_CLOUDFORMATION_API StackResourceDetail& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
42
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
44 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
45
46
48
51 inline const Aws::String& GetStackName() const { return m_stackName; }
52 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
53 template<typename StackNameT = Aws::String>
54 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
55 template<typename StackNameT = Aws::String>
56 StackResourceDetail& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
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) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
67 template<typename StackIdT = Aws::String>
68 StackResourceDetail& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
70
72
75 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
76 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
77 template<typename LogicalResourceIdT = Aws::String>
78 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
79 template<typename LogicalResourceIdT = Aws::String>
80 StackResourceDetail& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
82
84
88 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
89 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
90 template<typename PhysicalResourceIdT = Aws::String>
91 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
92 template<typename PhysicalResourceIdT = Aws::String>
93 StackResourceDetail& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
95
97
103 inline const Aws::String& GetResourceType() const { return m_resourceType; }
104 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
105 template<typename ResourceTypeT = Aws::String>
106 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
107 template<typename ResourceTypeT = Aws::String>
108 StackResourceDetail& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
110
112
115 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
116 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
117 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
118 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value); }
119 template<typename LastUpdatedTimestampT = Aws::Utils::DateTime>
120 StackResourceDetail& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) { SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value)); return *this;}
122
124
127 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
128 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
129 inline void SetResourceStatus(ResourceStatus value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
132
134
137 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
138 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
139 template<typename ResourceStatusReasonT = Aws::String>
140 void SetResourceStatusReason(ResourceStatusReasonT&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value); }
141 template<typename ResourceStatusReasonT = Aws::String>
142 StackResourceDetail& WithResourceStatusReason(ResourceStatusReasonT&& value) { SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value)); return *this;}
144
146
149 inline const Aws::String& GetDescription() const { return m_description; }
150 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
151 template<typename DescriptionT = Aws::String>
152 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
153 template<typename DescriptionT = Aws::String>
154 StackResourceDetail& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
156
158
164 inline const Aws::String& GetMetadata() const { return m_metadata; }
165 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
166 template<typename MetadataT = Aws::String>
167 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
168 template<typename MetadataT = Aws::String>
169 StackResourceDetail& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
171
173
182 inline const StackResourceDriftInformation& GetDriftInformation() const { return m_driftInformation; }
183 inline bool DriftInformationHasBeenSet() const { return m_driftInformationHasBeenSet; }
184 template<typename DriftInformationT = StackResourceDriftInformation>
185 void SetDriftInformation(DriftInformationT&& value) { m_driftInformationHasBeenSet = true; m_driftInformation = std::forward<DriftInformationT>(value); }
186 template<typename DriftInformationT = StackResourceDriftInformation>
187 StackResourceDetail& WithDriftInformation(DriftInformationT&& value) { SetDriftInformation(std::forward<DriftInformationT>(value)); return *this;}
189
191
195 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
196 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
197 template<typename ModuleInfoT = ModuleInfo>
198 void SetModuleInfo(ModuleInfoT&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::forward<ModuleInfoT>(value); }
199 template<typename ModuleInfoT = ModuleInfo>
200 StackResourceDetail& WithModuleInfo(ModuleInfoT&& value) { SetModuleInfo(std::forward<ModuleInfoT>(value)); return *this;}
202 private:
203
204 Aws::String m_stackName;
205 bool m_stackNameHasBeenSet = false;
206
207 Aws::String m_stackId;
208 bool m_stackIdHasBeenSet = false;
209
210 Aws::String m_logicalResourceId;
211 bool m_logicalResourceIdHasBeenSet = false;
212
213 Aws::String m_physicalResourceId;
214 bool m_physicalResourceIdHasBeenSet = false;
215
216 Aws::String m_resourceType;
217 bool m_resourceTypeHasBeenSet = false;
218
219 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
220 bool m_lastUpdatedTimestampHasBeenSet = false;
221
222 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
223 bool m_resourceStatusHasBeenSet = false;
224
225 Aws::String m_resourceStatusReason;
226 bool m_resourceStatusReasonHasBeenSet = false;
227
228 Aws::String m_description;
229 bool m_descriptionHasBeenSet = false;
230
231 Aws::String m_metadata;
232 bool m_metadataHasBeenSet = false;
233
234 StackResourceDriftInformation m_driftInformation;
235 bool m_driftInformationHasBeenSet = false;
236
237 ModuleInfo m_moduleInfo;
238 bool m_moduleInfoHasBeenSet = false;
239 };
240
241} // namespace Model
242} // namespace CloudFormation
243} // 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