AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
StackResourceSummary.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/StackResourceDriftInformationSummary.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
33 public:
34 AWS_CLOUDFORMATION_API StackResourceSummary() = default;
35 AWS_CLOUDFORMATION_API StackResourceSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
36 AWS_CLOUDFORMATION_API StackResourceSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
37
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
39 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
40
42
45 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
46 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
47 template <typename LogicalResourceIdT = Aws::String>
48 void SetLogicalResourceId(LogicalResourceIdT&& value) {
49 m_logicalResourceIdHasBeenSet = true;
50 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
51 }
52 template <typename LogicalResourceIdT = Aws::String>
53 StackResourceSummary& WithLogicalResourceId(LogicalResourceIdT&& value) {
54 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
55 return *this;
56 }
58
60
64 inline const Aws::String& GetPhysicalResourceId() const { return m_physicalResourceId; }
65 inline bool PhysicalResourceIdHasBeenSet() const { return m_physicalResourceIdHasBeenSet; }
66 template <typename PhysicalResourceIdT = Aws::String>
67 void SetPhysicalResourceId(PhysicalResourceIdT&& value) {
68 m_physicalResourceIdHasBeenSet = true;
69 m_physicalResourceId = std::forward<PhysicalResourceIdT>(value);
70 }
71 template <typename PhysicalResourceIdT = Aws::String>
72 StackResourceSummary& WithPhysicalResourceId(PhysicalResourceIdT&& value) {
73 SetPhysicalResourceId(std::forward<PhysicalResourceIdT>(value));
74 return *this;
75 }
77
79
85 inline const Aws::String& GetResourceType() const { return m_resourceType; }
86 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
87 template <typename ResourceTypeT = Aws::String>
88 void SetResourceType(ResourceTypeT&& value) {
89 m_resourceTypeHasBeenSet = true;
90 m_resourceType = std::forward<ResourceTypeT>(value);
91 }
92 template <typename ResourceTypeT = Aws::String>
93 StackResourceSummary& WithResourceType(ResourceTypeT&& value) {
94 SetResourceType(std::forward<ResourceTypeT>(value));
95 return *this;
96 }
98
100
103 inline const Aws::Utils::DateTime& GetLastUpdatedTimestamp() const { return m_lastUpdatedTimestamp; }
104 inline bool LastUpdatedTimestampHasBeenSet() const { return m_lastUpdatedTimestampHasBeenSet; }
105 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
106 void SetLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
107 m_lastUpdatedTimestampHasBeenSet = true;
108 m_lastUpdatedTimestamp = std::forward<LastUpdatedTimestampT>(value);
109 }
110 template <typename LastUpdatedTimestampT = Aws::Utils::DateTime>
111 StackResourceSummary& WithLastUpdatedTimestamp(LastUpdatedTimestampT&& value) {
112 SetLastUpdatedTimestamp(std::forward<LastUpdatedTimestampT>(value));
113 return *this;
114 }
116
118
121 inline ResourceStatus GetResourceStatus() const { return m_resourceStatus; }
122 inline bool ResourceStatusHasBeenSet() const { return m_resourceStatusHasBeenSet; }
124 m_resourceStatusHasBeenSet = true;
125 m_resourceStatus = value;
126 }
128 SetResourceStatus(value);
129 return *this;
130 }
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) {
141 m_resourceStatusReasonHasBeenSet = true;
142 m_resourceStatusReason = std::forward<ResourceStatusReasonT>(value);
143 }
144 template <typename ResourceStatusReasonT = Aws::String>
145 StackResourceSummary& WithResourceStatusReason(ResourceStatusReasonT&& value) {
146 SetResourceStatusReason(std::forward<ResourceStatusReasonT>(value));
147 return *this;
148 }
150
152
161 inline const StackResourceDriftInformationSummary& GetDriftInformation() const { return m_driftInformation; }
162 inline bool DriftInformationHasBeenSet() const { return m_driftInformationHasBeenSet; }
163 template <typename DriftInformationT = StackResourceDriftInformationSummary>
164 void SetDriftInformation(DriftInformationT&& value) {
165 m_driftInformationHasBeenSet = true;
166 m_driftInformation = std::forward<DriftInformationT>(value);
167 }
168 template <typename DriftInformationT = StackResourceDriftInformationSummary>
169 StackResourceSummary& WithDriftInformation(DriftInformationT&& value) {
170 SetDriftInformation(std::forward<DriftInformationT>(value));
171 return *this;
172 }
174
176
180 inline const ModuleInfo& GetModuleInfo() const { return m_moduleInfo; }
181 inline bool ModuleInfoHasBeenSet() const { return m_moduleInfoHasBeenSet; }
182 template <typename ModuleInfoT = ModuleInfo>
183 void SetModuleInfo(ModuleInfoT&& value) {
184 m_moduleInfoHasBeenSet = true;
185 m_moduleInfo = std::forward<ModuleInfoT>(value);
186 }
187 template <typename ModuleInfoT = ModuleInfo>
188 StackResourceSummary& WithModuleInfo(ModuleInfoT&& value) {
189 SetModuleInfo(std::forward<ModuleInfoT>(value));
190 return *this;
191 }
193 private:
194 Aws::String m_logicalResourceId;
195
196 Aws::String m_physicalResourceId;
197
198 Aws::String m_resourceType;
199
200 Aws::Utils::DateTime m_lastUpdatedTimestamp{};
201
202 ResourceStatus m_resourceStatus{ResourceStatus::NOT_SET};
203
204 Aws::String m_resourceStatusReason;
205
206 StackResourceDriftInformationSummary m_driftInformation;
207
208 ModuleInfo m_moduleInfo;
209 bool m_logicalResourceIdHasBeenSet = false;
210 bool m_physicalResourceIdHasBeenSet = false;
211 bool m_resourceTypeHasBeenSet = false;
212 bool m_lastUpdatedTimestampHasBeenSet = false;
213 bool m_resourceStatusHasBeenSet = false;
214 bool m_resourceStatusReasonHasBeenSet = false;
215 bool m_driftInformationHasBeenSet = false;
216 bool m_moduleInfoHasBeenSet = false;
217};
218
219} // namespace Model
220} // namespace CloudFormation
221} // namespace Aws
const Aws::Utils::DateTime & GetLastUpdatedTimestamp() const
void SetLogicalResourceId(LogicalResourceIdT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetResourceStatusReason(ResourceStatusReasonT &&value)
StackResourceSummary & WithResourceType(ResourceTypeT &&value)
StackResourceSummary & WithDriftInformation(DriftInformationT &&value)
StackResourceSummary & WithModuleInfo(ModuleInfoT &&value)
StackResourceSummary & WithPhysicalResourceId(PhysicalResourceIdT &&value)
StackResourceSummary & WithLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
void SetLastUpdatedTimestamp(LastUpdatedTimestampT &&value)
StackResourceSummary & WithLogicalResourceId(LogicalResourceIdT &&value)
void SetPhysicalResourceId(PhysicalResourceIdT &&value)
AWS_CLOUDFORMATION_API StackResourceSummary()=default
AWS_CLOUDFORMATION_API StackResourceSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
StackResourceSummary & WithResourceStatus(ResourceStatus value)
const StackResourceDriftInformationSummary & GetDriftInformation() const
StackResourceSummary & WithResourceStatusReason(ResourceStatusReasonT &&value)
AWS_CLOUDFORMATION_API StackResourceSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream