AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StackResource.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
36 {
37 public:
38 AWS_CLOUDFORMATION_API StackResource();
39 AWS_CLOUDFORMATION_API StackResource(const Aws::Utils::Xml::XmlNode& xmlNode);
40 AWS_CLOUDFORMATION_API StackResource& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
41
42 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
43 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
44
45
47
50 inline const Aws::String& GetStackName() const{ return m_stackName; }
51 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
52 inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
53 inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = std::move(value); }
54 inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
55 inline StackResource& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
56 inline StackResource& WithStackName(Aws::String&& value) { SetStackName(std::move(value)); return *this;}
57 inline StackResource& WithStackName(const char* value) { SetStackName(value); return *this;}
59
61
64 inline const Aws::String& GetStackId() const{ return m_stackId; }
65 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
66 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
67 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
68 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
69 inline StackResource& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
70 inline StackResource& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
71 inline StackResource& WithStackId(const char* value) { SetStackId(value); return *this;}
73
75
78 inline const Aws::String& GetLogicalResourceId() const{ return m_logicalResourceId; }
79 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
80 inline void SetLogicalResourceId(const Aws::String& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = value; }
81 inline void SetLogicalResourceId(Aws::String&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::move(value); }
82 inline void SetLogicalResourceId(const char* value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId.assign(value); }
83 inline StackResource& WithLogicalResourceId(const Aws::String& value) { SetLogicalResourceId(value); return *this;}
84 inline StackResource& WithLogicalResourceId(Aws::String&& value) { SetLogicalResourceId(std::move(value)); return *this;}
85 inline StackResource& WithLogicalResourceId(const char* value) { SetLogicalResourceId(value); return *this;}
87
89
93 inline const Aws::String& GetPhysicalResourceId() const{ return m_physicalResourceId; }
94 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
95 inline void SetPhysicalResourceId(const Aws::String& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = value; }
96 inline void SetPhysicalResourceId(Aws::String&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::move(value); }
97 inline void SetPhysicalResourceId(const char* value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId.assign(value); }
98 inline StackResource& WithPhysicalResourceId(const Aws::String& value) { SetPhysicalResourceId(value); return *this;}
99 inline StackResource& WithPhysicalResourceId(Aws::String&& value) { SetPhysicalResourceId(std::move(value)); return *this;}
100 inline StackResource& WithPhysicalResourceId(const char* value) { SetPhysicalResourceId(value); return *this;}
102
104
110 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
111 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
112 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
113 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
114 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
115 inline StackResource& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
116 inline StackResource& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
117 inline StackResource& WithResourceType(const char* value) { SetResourceType(value); return *this;}
119
121
124 inline const Aws::Utils::DateTime& GetTimestamp() const{ return m_timestamp; }
125 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
126 inline void SetTimestamp(const Aws::Utils::DateTime& value) { m_timestampHasBeenSet = true; m_timestamp = value; }
127 inline void SetTimestamp(Aws::Utils::DateTime&& value) { m_timestampHasBeenSet = true; m_timestamp = std::move(value); }
128 inline StackResource& WithTimestamp(const Aws::Utils::DateTime& value) { SetTimestamp(value); return *this;}
129 inline StackResource& WithTimestamp(Aws::Utils::DateTime&& value) { SetTimestamp(std::move(value)); return *this;}
131
133
136 inline const ResourceStatus& GetResourceStatus() const{ return m_resourceStatus; }
137 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
138 inline void SetResourceStatus(const ResourceStatus& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
139 inline void SetResourceStatus(ResourceStatus&& value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = std::move(value); }
140 inline StackResource& WithResourceStatus(const ResourceStatus& value) { SetResourceStatus(value); return *this;}
141 inline StackResource& WithResourceStatus(ResourceStatus&& value) { SetResourceStatus(std::move(value)); return *this;}
143
145
148 inline const Aws::String& GetResourceStatusReason() const{ return m_resourceStatusReason; }
149 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
150 inline void SetResourceStatusReason(const Aws::String& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = value; }
151 inline void SetResourceStatusReason(Aws::String&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::move(value); }
152 inline void SetResourceStatusReason(const char* value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason.assign(value); }
153 inline StackResource& WithResourceStatusReason(const Aws::String& value) { SetResourceStatusReason(value); return *this;}
154 inline StackResource& WithResourceStatusReason(Aws::String&& value) { SetResourceStatusReason(std::move(value)); return *this;}
155 inline StackResource& WithResourceStatusReason(const char* value) { SetResourceStatusReason(value); return *this;}
157
159
162 inline const Aws::String& GetDescription() const{ return m_description; }
163 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
164 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
165 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
166 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
167 inline StackResource& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
168 inline StackResource& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
169 inline StackResource& WithDescription(const char* value) { SetDescription(value); return *this;}
171
173
182 inline const StackResourceDriftInformation& GetDriftInformation() const{ return m_driftInformation; }
183 inline bool DriftInformationHasBeenSet() const { return m_driftInformationHasBeenSet; }
184 inline void SetDriftInformation(const StackResourceDriftInformation& value) { m_driftInformationHasBeenSet = true; m_driftInformation = value; }
185 inline void SetDriftInformation(StackResourceDriftInformation&& value) { m_driftInformationHasBeenSet = true; m_driftInformation = std::move(value); }
187 inline StackResource& WithDriftInformation(StackResourceDriftInformation&& value) { SetDriftInformation(std::move(value)); return *this;}
189
191
195 inline const ModuleInfo& GetModuleInfo() const{ return m_moduleInfo; }
196 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
197 inline void SetModuleInfo(const ModuleInfo& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = value; }
198 inline void SetModuleInfo(ModuleInfo&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::move(value); }
199 inline StackResource& WithModuleInfo(const ModuleInfo& value) { SetModuleInfo(value); return *this;}
200 inline StackResource& WithModuleInfo(ModuleInfo&& value) { SetModuleInfo(std::move(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_timestamp;
220 bool m_timestampHasBeenSet = false;
221
222 ResourceStatus m_resourceStatus;
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 StackResourceDriftInformation m_driftInformation;
232 bool m_driftInformationHasBeenSet = false;
233
234 ModuleInfo m_moduleInfo;
235 bool m_moduleInfoHasBeenSet = false;
236 };
237
238} // namespace Model
239} // namespace CloudFormation
240} // namespace Aws
void SetResourceStatus(ResourceStatus &&value)
void SetLogicalResourceId(const char *value)
const Aws::String & GetPhysicalResourceId() const
StackResource & WithResourceStatus(const ResourceStatus &value)
AWS_CLOUDFORMATION_API StackResource()
StackResource & WithStackName(const char *value)
StackResource & WithResourceType(Aws::String &&value)
void SetResourceType(const Aws::String &value)
void SetLogicalResourceId(Aws::String &&value)
void SetStackName(const Aws::String &value)
const Aws::String & GetLogicalResourceId() const
void SetStackName(Aws::String &&value)
StackResource & WithStackId(const char *value)
const Aws::String & GetStackName() const
StackResource & WithDescription(Aws::String &&value)
StackResource & WithResourceType(const Aws::String &value)
const ResourceStatus & GetResourceStatus() const
void SetDriftInformation(StackResourceDriftInformation &&value)
void SetDescription(Aws::String &&value)
void SetResourceStatusReason(const char *value)
void SetResourceStatus(const ResourceStatus &value)
void SetResourceStatusReason(const Aws::String &value)
const Aws::String & GetResourceType() const
const Aws::String & GetStackId() const
StackResource & WithModuleInfo(ModuleInfo &&value)
void SetTimestamp(Aws::Utils::DateTime &&value)
StackResource & WithResourceStatus(ResourceStatus &&value)
void SetLogicalResourceId(const Aws::String &value)
StackResource & WithDriftInformation(const StackResourceDriftInformation &value)
StackResource & WithPhysicalResourceId(const char *value)
StackResource & WithTimestamp(Aws::Utils::DateTime &&value)
StackResource & WithResourceType(const char *value)
const ModuleInfo & GetModuleInfo() const
StackResource & WithModuleInfo(const ModuleInfo &value)
AWS_CLOUDFORMATION_API StackResource & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetResourceStatusReason(Aws::String &&value)
StackResource & WithLogicalResourceId(const Aws::String &value)
const Aws::String & GetResourceStatusReason() const
StackResource & WithDriftInformation(StackResourceDriftInformation &&value)
StackResource & WithDescription(const Aws::String &value)
AWS_CLOUDFORMATION_API StackResource(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResource & WithResourceStatusReason(const char *value)
const StackResourceDriftInformation & GetDriftInformation() const
void SetDescription(const Aws::String &value)
void SetStackId(const Aws::String &value)
void SetPhysicalResourceId(const char *value)
StackResource & WithPhysicalResourceId(const Aws::String &value)
void SetPhysicalResourceId(Aws::String &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPhysicalResourceId(const Aws::String &value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
StackResource & WithLogicalResourceId(const char *value)
StackResource & WithStackName(Aws::String &&value)
StackResource & WithDescription(const char *value)
StackResource & WithStackId(Aws::String &&value)
StackResource & WithStackId(const Aws::String &value)
StackResource & WithPhysicalResourceId(Aws::String &&value)
void SetTimestamp(const Aws::Utils::DateTime &value)
StackResource & WithStackName(const Aws::String &value)
StackResource & WithLogicalResourceId(Aws::String &&value)
const Aws::Utils::DateTime & GetTimestamp() const
StackResource & WithResourceStatusReason(const Aws::String &value)
StackResource & WithTimestamp(const Aws::Utils::DateTime &value)
void SetResourceType(Aws::String &&value)
StackResource & WithResourceStatusReason(Aws::String &&value)
void SetDriftInformation(const StackResourceDriftInformation &value)
const Aws::String & GetDescription() const
void SetModuleInfo(const ModuleInfo &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream