AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename StackNameT = Aws::String>
53 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
54 template<typename StackNameT = Aws::String>
55 StackResource& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
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) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
66 template<typename StackIdT = Aws::String>
67 StackResource& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
69
71
74 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
75 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
76 template<typename LogicalResourceIdT = Aws::String>
77 void SetLogicalResourceId(LogicalResourceIdT&& value) { m_logicalResourceIdHasBeenSet = true; m_logicalResourceId = std::forward<LogicalResourceIdT>(value); }
78 template<typename LogicalResourceIdT = Aws::String>
79 StackResource& WithLogicalResourceId(LogicalResourceIdT&& value) { SetLogicalResourceId(std::forward<LogicalResourceIdT>(value)); return *this;}
81
83
87 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
88 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
89 template<typename PhysicalResourceIdT = Aws::String>
90 void SetPhysicalResourceId(PhysicalResourceIdT&& value) { m_physicalResourceIdHasBeenSet = true; m_physicalResourceId = std::forward<PhysicalResourceIdT>(value); }
91 template<typename PhysicalResourceIdT = Aws::String>
92 StackResource& WithPhysicalResourceId(PhysicalResourceIdT&& value) { SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value)); return *this;}
94
96
102 inline const Aws::String& GetResourceType() const { return m_resourceType; }
103 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
104 template<typename ResourceTypeT = Aws::String>
105 void SetResourceType(ResourceTypeT&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::forward<ResourceTypeT>(value); }
106 template<typename ResourceTypeT = Aws::String>
107 StackResource& WithResourceType(ResourceTypeT&& value) { SetResourceType(std::forward<ResourceTypeT>(value)); return *this;}
109
111
114 inline const Aws::Utils::DateTime& GetTimestamp() const { return m_timestamp; }
115 inline bool TimestampHasBeenSet() const { return m_timestampHasBeenSet; }
116 template<typename TimestampT = Aws::Utils::DateTime>
117 void SetTimestamp(TimestampT&& value) { m_timestampHasBeenSet = true; m_timestamp = std::forward<TimestampT>(value); }
118 template<typename TimestampT = Aws::Utils::DateTime>
119 StackResource& WithTimestamp(TimestampT&& value) { SetTimestamp(std::forward<TimestampT>(value)); return *this;}
121
123
126 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
127 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
128 inline void SetResourceStatus(ResourceStatus value) { m_resourceStatusHasBeenSet = true; m_resourceStatus = value; }
129 inline StackResource& WithResourceStatus(ResourceStatus value) { SetResourceStatus(value); return *this;}
131
133
136 inline const Aws::String& GetResourceStatusReason() const { return m_resourceStatusReason; }
137 inline bool ResourceStatusReasonHasBeenSet() const { return m_resourceStatusReasonHasBeenSet; }
138 template<typename ResourceStatusReasonT = Aws::String>
139 void SetResourceStatusReason(ResourceStatusReasonT&& value) { m_resourceStatusReasonHasBeenSet = true; m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value); }
140 template<typename ResourceStatusReasonT = Aws::String>
141 StackResource& WithResourceStatusReason(ResourceStatusReasonT&& value) { SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value)); return *this;}
143
145
148 inline const Aws::String& GetDescription() const { return m_description; }
149 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
150 template<typename DescriptionT = Aws::String>
151 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
152 template<typename DescriptionT = Aws::String>
153 StackResource& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
155
157
166 inline const StackResourceDriftInformation& GetDriftInformation() const { return m_driftInformation; }
167 inline bool DriftInformationHasBeenSet() const { return m_driftInformationHasBeenSet; }
168 template<typename DriftInformationT = StackResourceDriftInformation>
169 void SetDriftInformation(DriftInformationT&& value) { m_driftInformationHasBeenSet = true; m_driftInformation = std::forward<DriftInformationT>(value); }
170 template<typename DriftInformationT = StackResourceDriftInformation>
171 StackResource& WithDriftInformation(DriftInformationT&& value) { SetDriftInformation(std::forward<DriftInformationT>(value)); return *this;}
173
175
179 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
180 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
181 template<typename ModuleInfoT = ModuleInfo>
182 void SetModuleInfo(ModuleInfoT&& value) { m_moduleInfoHasBeenSet = true; m_moduleInfo = std::forward<ModuleInfoT>(value); }
183 template<typename ModuleInfoT = ModuleInfo>
184 StackResource& WithModuleInfo(ModuleInfoT&& value) { SetModuleInfo(std::forward<ModuleInfoT>(value)); return *this;}
186 private:
187
188 Aws::String m_stackName;
189 bool m_stackNameHasBeenSet = false;
190
191 Aws::String m_stackId;
192 bool m_stackIdHasBeenSet = false;
193
194 Aws::String m_logicalResourceId;
195 bool m_logicalResourceIdHasBeenSet = false;
196
197 Aws::String m_physicalResourceId;
198 bool m_physicalResourceIdHasBeenSet = false;
199
200 Aws::String m_resourceType;
201 bool m_resourceTypeHasBeenSet = false;
202
203 Aws::Utils::DateTime m_timestamp{};
204 bool m_timestampHasBeenSet = false;
205
206 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
207 bool m_resourceStatusHasBeenSet = false;
208
209 Aws::String m_resourceStatusReason;
210 bool m_resourceStatusReasonHasBeenSet = false;
211
212 Aws::String m_description;
213 bool m_descriptionHasBeenSet = false;
214
215 StackResourceDriftInformation m_driftInformation;
216 bool m_driftInformationHasBeenSet = false;
217
218 ModuleInfo m_moduleInfo;
219 bool m_moduleInfoHasBeenSet = false;
220 };
221
222} // namespace Model
223} // namespace CloudFormation
224} // 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