AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
54 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
55 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
56 inline StackResourceDetail& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
57 inline StackResourceDetail& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
58 inline StackResourceDetail& WithStackName(const char* value) { SetStackName(value); return *this;}
60
62
65 inline const Aws::String& GetStackId() const{ return m_stackId; }
66 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
67 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
68 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
69 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
70 inline StackResourceDetail& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
71 inline StackResourceDetail& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
72 inline StackResourceDetail& WithStackId(const char* value) { SetStackId(value); return *this;}
74
76
79 inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
80 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
81 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
82 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
83 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
84 inline StackResourceDetail& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
85 inline StackResourceDetail& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
86 inline StackResourceDetail& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
88
90
94 inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
95 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
96 inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
97 inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
98 inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
99 inline StackResourceDetail& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
100 inline StackResourceDetail& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;}
101 inline StackResourceDetail& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
103
105
111 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
112 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
113 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
114 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
115 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
116 inline StackResourceDetail& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
117 inline StackResourceDetail& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
118 inline StackResourceDetail& WithResourceType(const char* value) { SetResourceType(value); return *this;}
120
122
125 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const{ return m_lastUpdatedTimestamp; }
126 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
127 inline void SetLastUpdatedTimestamp(const Aws::Utils::DateTime& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = value; }
128 inline void SetLastUpdatedTimestamp(Aws::Utils::DateTime&& value) { m_lastUpdatedTimestampHasBeenSet = true; m_lastUpdatedTimestamp = std::move(value); }
132
134
137 inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; }
138 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
139 inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
140 inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); }
141 inline StackResourceDetail& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;}
142 inline StackResourceDetail& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;}
144
146
149 inline const Aws::String& GetResourceStatusReason() const{ return m_resourceStatusReason; }
150 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
151 inline void SetResourceStatusReason(const Aws::String& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; }
152 inline void SetResourceStatusReason(Aws::String&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::move(value); }
153 inline void SetResourceStatusReason(const char* value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason.assign(value); }
155 inline StackResourceDetail& WithResourceStatusReason(Aws::String&& value) { SetResourceStatusReason(std::move(value)); return *this;}
156 inline StackResourceDetail& WithResourceStatusReason(const char* value) { SetResourceStatusReason(value); return *this;}
158
160
163 inline const Aws::String& GetDescription() const{ return m_description; }
164 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
165 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
166 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
167 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
168 inline StackResourceDetail& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
169 inline StackResourceDetail& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
170 inline StackResourceDetail& WithDescription(const char* value) { SetDescription(value); return *this;}
172
174
180 inline const Aws::String& GetMetadata() const{ return m_metadata; }
181 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
182 inline void SetMetadata(const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata = value; }
183 inline void SetMetadata(Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
184 inline void SetMetadata(const char* value) { m_metadataHasBeenSet = true; m_metadata.assign(value); }
185 inline StackResourceDetail& WithMetadata(const Aws::String& value) { SetMetadata(value); return *this;}
186 inline StackResourceDetail& WithMetadata(Aws::String&& value) { SetMetadata(std::move(value)); return *this;}
187 inline StackResourceDetail& WithMetadata(const char* value) { SetMetadata(value); return *this;}
189
191
200 inline const StackResourceDriftInformation& GetDriftInformation() const{ return m_driftInformation; }
201 inline bool DriftInformationHasBeenSet() const { return m_driftInformationHasBeenSet; }
202 inline void SetDriftInformation(const StackResourceDriftInformation& value) { m_driftInformationHasBeenSet = true; m_driftInformation = value; }
203 inline void SetDriftInformation(StackResourceDriftInformation&& value) { m_driftInformationHasBeenSet = true; m_driftInformation = std::move(value); }
207
209
213 inline const ModuleInfo& GetModuleInfo() const{ return m_moduleInfo; }
214 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
215 inline void SetModuleInfo(const ModuleInfo& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = value; }
216 inline void SetModuleInfo(ModuleInfo&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::move(value); }
217 inline StackResourceDetail& WithModuleInfo(const ModuleInfo& value) { SetModuleInfo(value); return *this;}
218 inline StackResourceDetail& WithModuleInfo(ModuleInfo&& value) { SetModuleInfo(std::move(value)); return *this;}
220 private:
221
222 Aws::String m_stackName;
223 bool m_stackNameHasBeenSet = false;
224
225 Aws::String m_stackId;
226 bool m_stackIdHasBeenSet = false;
227
228 Aws::String m_logicalResourceId;
229 bool m_logicalResourceIdHasBeenSet = false;
230
231 Aws::String m_physicalResourceId;
232 bool m_physicalResourceIdHasBeenSet = false;
233
234 Aws::String m_resourceType;
235 bool m_resourceTypeHasBeenSet = false;
236
237 Aws::Utils::DateTime m_lastUpdatedTimestamp;
238 bool m_lastUpdatedTimestampHasBeenSet = false;
239
240 ResourceStatus m_resourceStatus;
241 bool m_resourceStatusHasBeenSet = false;
242
243 Aws::String m_resourceStatusReason;
244 bool m_resourceStatusReasonHasBeenSet = false;
245
246 Aws::String m_description;
247 bool m_descriptionHasBeenSet = false;
248
249 Aws::String m_metadata;
250 bool m_metadataHasBeenSet = false;
251
252 StackResourceDriftInformation m_driftInformation;
253 bool m_driftInformationHasBeenSet = false;
254
255 ModuleInfo m_moduleInfo;
256 bool m_moduleInfoHasBeenSet = false;
257 };
258
259} // namespace Model
260} // namespace CloudFormation
261} // namespace Aws
StackResourceDetail & WithPhysicalResourceId(Aws::String &&value)
StackResourceDetail & WithMetadata(const Aws::String &value)
StackResourceDetail & WithStackId(const Aws::String &value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackResourceDetail & WithDriftInformation(StackResourceDriftInformation &&value)
StackResourceDetail & WithResourceStatusReason(Aws::String &&value)
void SetDriftInformation(const StackResourceDriftInformation &value)
StackResourceDetail & WithDescription(const char *value)
StackResourceDetail & WithStackId(const char *value)
StackResourceDetail & WithResourceStatusReason(const Aws::String &value)
StackResourceDetail & WithResourceType(const char *value)
StackResourceDetail & WithDescription(const Aws::String &value)
StackResourceDetail & WithLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
StackResourceDetail & WithLogicalResourceId(const char *value)
void SetResourceStatus(const ResourceStatus &value)
StackResourceDetail & WithResourceStatus(const ResourceStatus &value)
StackResourceDetail & WithResourceType(Aws::String &&value)
StackResourceDetail & WithPhysicalResourceId(const char *value)
void SetLastUpdatedTimestamp(Aws::Utils::DateTime &&value)
AWS_CLOUDFORMATION_API StackResourceDetail & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResourceDetail & WithStackName(const char *value)
StackResourceDetail & WithResourceStatus(ResourceStatus &&value)
const StackResourceDriftInformation & GetDriftInformation() const
StackResourceDetail & WithResourceStatusReason(const char *value)
AWS_CLOUDFORMATION_API StackResourceDetail(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResourceDetail & WithPhysicalResourceId(const Aws::String &value)
StackResourceDetail & WithStackId(Aws::String &&value)
StackResourceDetail & WithResourceType(const Aws::String &value)
StackResourceDetail & WithDescription(Aws::String &&value)
StackResourceDetail & WithModuleInfo(ModuleInfo &&value)
StackResourceDetail & WithLogicalResourceId(Aws::String &&value)
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetResourceStatusReason(const Aws::String &value)
void SetDriftInformation(StackResourceDriftInformation &&value)
StackResourceDetail & WithDriftInformation(const StackResourceDriftInformation &value)
StackResourceDetail & WithMetadata(const char *value)
StackResourceDetail & WithStackName(Aws::String &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackResourceDetail & WithLogicalResourceId(const Aws::String &value)
StackResourceDetail & WithLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
void SetLogicalResourceId(const Aws::String &value)
void SetLastUpdatedTimestamp(const Aws::Utils::DateTime &value)
StackResourceDetail & WithModuleInfo(const ModuleInfo &value)
void SetPhysicalResourceId(const Aws::String &value)
StackResourceDetail & WithMetadata(Aws::String &&value)
StackResourceDetail & WithStackName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream