AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StackInstance.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/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/StackInstanceStatus.h>
12#include <aws/cloudformation/model/StackInstanceComprehensiveStatus.h>
13#include <aws/cloudformation/model/StackDriftStatus.h>
14#include <aws/core/utils/DateTime.h>
15#include <aws/cloudformation/model/Parameter.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace CloudFormation
28{
29namespace Model
30{
31
44 {
45 public:
46 AWS_CLOUDFORMATION_API StackInstance();
47 AWS_CLOUDFORMATION_API StackInstance(const Aws::Utils::Xml::XmlNode& xmlNode);
48 AWS_CLOUDFORMATION_API StackInstance& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
49
50 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
51 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
52
53
55
59 inline const Aws::String& GetStackSetId() const{ return m_stackSetId; }
60 inline bool StackSetIdHasBeenSet() const { return m_stackSetIdHasBeenSet; }
61 inline void SetStackSetId(const Aws::String& value) { m_stackSetIdHasBeenSet = true; m_stackSetId = value; }
62 inline void SetStackSetId(Aws::String&& value) { m_stackSetIdHasBeenSet = true; m_stackSetId = std::move(value); }
63 inline void SetStackSetId(const char* value) { m_stackSetIdHasBeenSet = true; m_stackSetId.assign(value); }
64 inline StackInstance& WithStackSetId(const Aws::String& value) { SetStackSetId(value); return *this;}
65 inline StackInstance& WithStackSetId(Aws::String&& value) { SetStackSetId(std::move(value)); return *this;}
66 inline StackInstance& WithStackSetId(const char* value) { SetStackSetId(value); return *this;}
68
70
74 inline const Aws::String& GetRegion() const{ return m_region; }
75 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
76 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
77 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
78 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
79 inline StackInstance& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
80 inline StackInstance& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
81 inline StackInstance& WithRegion(const char* value) { SetRegion(value); return *this;}
83
85
89 inline const Aws::String& GetAccount() const{ return m_account; }
90 inline bool AccountHasBeenSet() const { return m_accountHasBeenSet; }
91 inline void SetAccount(const Aws::String& value) { m_accountHasBeenSet = true; m_account = value; }
92 inline void SetAccount(Aws::String&& value) { m_accountHasBeenSet = true; m_account = std::move(value); }
93 inline void SetAccount(const char* value) { m_accountHasBeenSet = true; m_account.assign(value); }
94 inline StackInstance& WithAccount(const Aws::String& value) { SetAccount(value); return *this;}
95 inline StackInstance& WithAccount(Aws::String&& value) { SetAccount(std::move(value)); return *this;}
96 inline StackInstance& WithAccount(const char* value) { SetAccount(value); return *this;}
98
100
103 inline const Aws::String& GetStackId() const{ return m_stackId; }
104 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
105 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
106 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
107 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
108 inline StackInstance& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
109 inline StackInstance& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
110 inline StackInstance& WithStackId(const char* value) { SetStackId(value); return *this;}
112
114
118 inline const Aws::Vector<Parameter>& GetParameterOverrides() const{ return m_parameterOverrides; }
119 inline bool ParameterOverridesHasBeenSet() const { return m_parameterOverridesHasBeenSet; }
120 inline void SetParameterOverrides(const Aws::Vector<Parameter>& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = value; }
121 inline void SetParameterOverrides(Aws::Vector<Parameter>&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides = std::move(value); }
123 inline StackInstance& WithParameterOverrides(Aws::Vector<Parameter>&& value) { SetParameterOverrides(std::move(value)); return *this;}
124 inline StackInstance& AddParameterOverrides(const Parameter& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.push_back(value); return *this; }
125 inline StackInstance& AddParameterOverrides(Parameter&& value) { m_parameterOverridesHasBeenSet = true; m_parameterOverrides.push_back(std::move(value)); return *this; }
127
129
151 inline const StackInstanceStatus& GetStatus() const{ return m_status; }
152 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
153 inline void SetStatus(const StackInstanceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
154 inline void SetStatus(StackInstanceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
155 inline StackInstance& WithStatus(const StackInstanceStatus& value) { SetStatus(value); return *this;}
156 inline StackInstance& WithStatus(StackInstanceStatus&& value) { SetStatus(std::move(value)); return *this;}
158
160
163 inline const StackInstanceComprehensiveStatus& GetStackInstanceStatus() const{ return m_stackInstanceStatus; }
164 inline bool StackInstanceStatusHasBeenSet() const { return m_stackInstanceStatusHasBeenSet; }
165 inline void SetStackInstanceStatus(const StackInstanceComprehensiveStatus& value) { m_stackInstanceStatusHasBeenSet = true; m_stackInstanceStatus = value; }
166 inline void SetStackInstanceStatus(StackInstanceComprehensiveStatus&& value) { m_stackInstanceStatusHasBeenSet = true; m_stackInstanceStatus = std::move(value); }
170
172
176 inline const Aws::String& GetStatusReason() const{ return m_statusReason; }
177 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
178 inline void SetStatusReason(const Aws::String& value) { m_statusReasonHasBeenSet = true; m_statusReason = value; }
179 inline void SetStatusReason(Aws::String&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::move(value); }
180 inline void SetStatusReason(const char* value) { m_statusReasonHasBeenSet = true; m_statusReason.assign(value); }
181 inline StackInstance& WithStatusReason(const Aws::String& value) { SetStatusReason(value); return *this;}
182 inline StackInstance& WithStatusReason(Aws::String&& value) { SetStatusReason(std::move(value)); return *this;}
183 inline StackInstance& WithStatusReason(const char* value) { SetStatusReason(value); return *this;}
185
187
192 inline const Aws::String& GetOrganizationalUnitId() const{ return m_organizationalUnitId; }
193 inline bool OrganizationalUnitIdHasBeenSet() const { return m_organizationalUnitIdHasBeenSet; }
194 inline void SetOrganizationalUnitId(const Aws::String& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = value; }
195 inline void SetOrganizationalUnitId(Aws::String&& value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId = std::move(value); }
196 inline void SetOrganizationalUnitId(const char* value) { m_organizationalUnitIdHasBeenSet = true; m_organizationalUnitId.assign(value); }
197 inline StackInstance& WithOrganizationalUnitId(const Aws::String& value) { SetOrganizationalUnitId(value); return *this;}
198 inline StackInstance& WithOrganizationalUnitId(Aws::String&& value) { SetOrganizationalUnitId(std::move(value)); return *this;}
199 inline StackInstance& WithOrganizationalUnitId(const char* value) { SetOrganizationalUnitId(value); return *this;}
201
203
216 inline const StackDriftStatus& GetDriftStatus() const{ return m_driftStatus; }
217 inline bool DriftStatusHasBeenSet() const { return m_driftStatusHasBeenSet; }
218 inline void SetDriftStatus(const StackDriftStatus& value) { m_driftStatusHasBeenSet = true; m_driftStatus = value; }
219 inline void SetDriftStatus(StackDriftStatus&& value) { m_driftStatusHasBeenSet = true; m_driftStatus = std::move(value); }
220 inline StackInstance& WithDriftStatus(const StackDriftStatus& value) { SetDriftStatus(value); return *this;}
221 inline StackInstance& WithDriftStatus(StackDriftStatus&& value) { SetDriftStatus(std::move(value)); return *this;}
223
225
230 inline const Aws::Utils::DateTime& GetLastDriftCheckTimestamp() const{ return m_lastDriftCheckTimestamp; }
231 inline bool LastDriftCheckTimestampHasBeenSet() const { return m_lastDriftCheckTimestampHasBeenSet; }
232 inline void SetLastDriftCheckTimestamp(const Aws::Utils::DateTime& value) { m_lastDriftCheckTimestampHasBeenSet = true; m_lastDriftCheckTimestamp = value; }
233 inline void SetLastDriftCheckTimestamp(Aws::Utils::DateTime&& value) { m_lastDriftCheckTimestampHasBeenSet = true; m_lastDriftCheckTimestamp = std::move(value); }
237
239
242 inline const Aws::String& GetLastOperationId() const{ return m_lastOperationId; }
243 inline bool LastOperationIdHasBeenSet() const { return m_lastOperationIdHasBeenSet; }
244 inline void SetLastOperationId(const Aws::String& value) { m_lastOperationIdHasBeenSet = true; m_lastOperationId = value; }
245 inline void SetLastOperationId(Aws::String&& value) { m_lastOperationIdHasBeenSet = true; m_lastOperationId = std::move(value); }
246 inline void SetLastOperationId(const char* value) { m_lastOperationIdHasBeenSet = true; m_lastOperationId.assign(value); }
247 inline StackInstance& WithLastOperationId(const Aws::String& value) { SetLastOperationId(value); return *this;}
248 inline StackInstance& WithLastOperationId(Aws::String&& value) { SetLastOperationId(std::move(value)); return *this;}
249 inline StackInstance& WithLastOperationId(const char* value) { SetLastOperationId(value); return *this;}
251 private:
252
253 Aws::String m_stackSetId;
254 bool m_stackSetIdHasBeenSet = false;
255
256 Aws::String m_region;
257 bool m_regionHasBeenSet = false;
258
259 Aws::String m_account;
260 bool m_accountHasBeenSet = false;
261
262 Aws::String m_stackId;
263 bool m_stackIdHasBeenSet = false;
264
265 Aws::Vector<Parameter> m_parameterOverrides;
266 bool m_parameterOverridesHasBeenSet = false;
267
268 StackInstanceStatus m_status;
269 bool m_statusHasBeenSet = false;
270
271 StackInstanceComprehensiveStatus m_stackInstanceStatus;
272 bool m_stackInstanceStatusHasBeenSet = false;
273
274 Aws::String m_statusReason;
275 bool m_statusReasonHasBeenSet = false;
276
277 Aws::String m_organizationalUnitId;
278 bool m_organizationalUnitIdHasBeenSet = false;
279
280 StackDriftStatus m_driftStatus;
281 bool m_driftStatusHasBeenSet = false;
282
283 Aws::Utils::DateTime m_lastDriftCheckTimestamp;
284 bool m_lastDriftCheckTimestampHasBeenSet = false;
285
286 Aws::String m_lastOperationId;
287 bool m_lastOperationIdHasBeenSet = false;
288 };
289
290} // namespace Model
291} // namespace CloudFormation
292} // namespace Aws
StackInstance & AddParameterOverrides(Parameter &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
StackInstance & WithStackId(const Aws::String &value)
const Aws::String & GetLastOperationId() const
const StackDriftStatus & GetDriftStatus() const
const Aws::String & GetAccount() const
StackInstance & WithStatus(StackInstanceStatus &&value)
StackInstance & WithLastOperationId(const Aws::String &value)
void SetDriftStatus(const StackDriftStatus &value)
void SetAccount(const Aws::String &value)
void SetStatus(const StackInstanceStatus &value)
AWS_CLOUDFORMATION_API StackInstance & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Vector< Parameter > & GetParameterOverrides() const
void SetStackSetId(Aws::String &&value)
StackInstance & WithStatus(const StackInstanceStatus &value)
void SetStackSetId(const Aws::String &value)
void SetLastOperationId(Aws::String &&value)
StackInstance & WithRegion(const char *value)
void SetParameterOverrides(Aws::Vector< Parameter > &&value)
void SetLastDriftCheckTimestamp(Aws::Utils::DateTime &&value)
StackInstance & WithStackInstanceStatus(StackInstanceComprehensiveStatus &&value)
const Aws::String & GetOrganizationalUnitId() const
StackInstance & WithStackSetId(const char *value)
const Aws::String & GetStackId() const
const StackInstanceStatus & GetStatus() const
StackInstance & WithStackSetId(Aws::String &&value)
const Aws::String & GetStatusReason() const
void SetLastDriftCheckTimestamp(const Aws::Utils::DateTime &value)
void SetOrganizationalUnitId(Aws::String &&value)
void SetRegion(const Aws::String &value)
void SetStatusReason(Aws::String &&value)
StackInstance & WithLastDriftCheckTimestamp(const Aws::Utils::DateTime &value)
StackInstance & WithRegion(const Aws::String &value)
StackInstance & WithDriftStatus(StackDriftStatus &&value)
const Aws::String & GetStackSetId() const
StackInstance & WithStackSetId(const Aws::String &value)
StackInstance & WithAccount(const Aws::String &value)
StackInstance & WithParameterOverrides(Aws::Vector< Parameter > &&value)
StackInstance & AddParameterOverrides(const Parameter &value)
const StackInstanceComprehensiveStatus & GetStackInstanceStatus() const
StackInstance & WithStatusReason(const Aws::String &value)
StackInstance & WithOrganizationalUnitId(Aws::String &&value)
StackInstance & WithParameterOverrides(const Aws::Vector< Parameter > &value)
StackInstance & WithStatusReason(Aws::String &&value)
void SetParameterOverrides(const Aws::Vector< Parameter > &value)
void SetOrganizationalUnitId(const char *value)
const Aws::Utils::DateTime & GetLastDriftCheckTimestamp() const
void SetStackInstanceStatus(StackInstanceComprehensiveStatus &&value)
StackInstance & WithStackId(const char *value)
StackInstance & WithAccount(const char *value)
StackInstance & WithStackId(Aws::String &&value)
void SetLastOperationId(const Aws::String &value)
void SetDriftStatus(StackDriftStatus &&value)
StackInstance & WithLastOperationId(Aws::String &&value)
AWS_CLOUDFORMATION_API StackInstance(const Aws::Utils::Xml::XmlNode &xmlNode)
StackInstance & WithLastOperationId(const char *value)
StackInstance & WithStatusReason(const char *value)
void SetStatus(StackInstanceStatus &&value)
void SetStackId(const Aws::String &value)
StackInstance & WithLastDriftCheckTimestamp(Aws::Utils::DateTime &&value)
void SetStackInstanceStatus(const StackInstanceComprehensiveStatus &value)
StackInstance & WithOrganizationalUnitId(const char *value)
const Aws::String & GetRegion() const
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetOrganizationalUnitId(const Aws::String &value)
AWS_CLOUDFORMATION_API StackInstance()
StackInstance & WithStackInstanceStatus(const StackInstanceComprehensiveStatus &value)
StackInstance & WithOrganizationalUnitId(const Aws::String &value)
void SetStatusReason(const Aws::String &value)
StackInstance & WithAccount(Aws::String &&value)
StackInstance & WithRegion(Aws::String &&value)
StackInstance & WithDriftStatus(const StackDriftStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
std::basic_ostream< char, std::char_traits< char > > OStream