AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ChangeSetSummary.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/ChangeSetStatus.h>
9#include <aws/cloudformation/model/ExecutionStatus.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Xml {
19class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace CloudFormation {
23namespace Model {
24
32 public:
33 AWS_CLOUDFORMATION_API ChangeSetSummary() = default;
34 AWS_CLOUDFORMATION_API ChangeSetSummary(const Aws::Utils::Xml::XmlNode& xmlNode);
35 AWS_CLOUDFORMATION_API ChangeSetSummary& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
36
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
38 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
39
41
44 inline const Aws::String& GetStackId() const { return m_stackId; }
45 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
46 template <typename StackIdT = Aws::String>
47 void SetStackId(StackIdT&& value) {
48 m_stackIdHasBeenSet = true;
49 m_stackId = std::forward<StackIdT>(value);
50 }
51 template <typename StackIdT = Aws::String>
52 ChangeSetSummary& WithStackId(StackIdT&& value) {
53 SetStackId(std::forward<StackIdT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetStackName() const { return m_stackName; }
63 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
64 template <typename StackNameT = Aws::String>
65 void SetStackName(StackNameT&& value) {
66 m_stackNameHasBeenSet = true;
67 m_stackName = std::forward<StackNameT>(value);
68 }
69 template <typename StackNameT = Aws::String>
70 ChangeSetSummary& WithStackName(StackNameT&& value) {
71 SetStackName(std::forward<StackNameT>(value));
72 return *this;
73 }
75
77
80 inline const Aws::String& GetChangeSetId() const { return m_changeSetId; }
81 inline bool ChangeSetIdHasBeenSet() const { return m_changeSetIdHasBeenSet; }
82 template <typename ChangeSetIdT = Aws::String>
83 void SetChangeSetId(ChangeSetIdT&& value) {
84 m_changeSetIdHasBeenSet = true;
85 m_changeSetId = std::forward<ChangeSetIdT>(value);
86 }
87 template <typename ChangeSetIdT = Aws::String>
88 ChangeSetSummary& WithChangeSetId(ChangeSetIdT&& value) {
89 SetChangeSetId(std::forward<ChangeSetIdT>(value));
90 return *this;
91 }
93
95
98 inline const Aws::String& GetChangeSetName() const { return m_changeSetName; }
99 inline bool ChangeSetNameHasBeenSet() const { return m_changeSetNameHasBeenSet; }
100 template <typename ChangeSetNameT = Aws::String>
101 void SetChangeSetName(ChangeSetNameT&& value) {
102 m_changeSetNameHasBeenSet = true;
103 m_changeSetName = std::forward<ChangeSetNameT>(value);
104 }
105 template <typename ChangeSetNameT = Aws::String>
106 ChangeSetSummary& WithChangeSetName(ChangeSetNameT&& value) {
107 SetChangeSetName(std::forward<ChangeSetNameT>(value));
108 return *this;
109 }
111
113
120 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
121 inline bool ExecutionStatusHasBeenSet() const { return m_executionStatusHasBeenSet; }
123 m_executionStatusHasBeenSet = true;
124 m_executionStatus = value;
125 }
127 SetExecutionStatus(value);
128 return *this;
129 }
131
133
137 inline ChangeSetStatus GetStatus() const { return m_status; }
138 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
139 inline void SetStatus(ChangeSetStatus value) {
140 m_statusHasBeenSet = true;
141 m_status = value;
142 }
144 SetStatus(value);
145 return *this;
146 }
148
150
154 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
155 inline bool StatusReasonHasBeenSet() const { return m_statusReasonHasBeenSet; }
156 template <typename StatusReasonT = Aws::String>
157 void SetStatusReason(StatusReasonT&& value) {
158 m_statusReasonHasBeenSet = true;
159 m_statusReason = std::forward<StatusReasonT>(value);
160 }
161 template <typename StatusReasonT = Aws::String>
162 ChangeSetSummary& WithStatusReason(StatusReasonT&& value) {
163 SetStatusReason(std::forward<StatusReasonT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
173 inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; }
174 template <typename CreationTimeT = Aws::Utils::DateTime>
175 void SetCreationTime(CreationTimeT&& value) {
176 m_creationTimeHasBeenSet = true;
177 m_creationTime = std::forward<CreationTimeT>(value);
178 }
179 template <typename CreationTimeT = Aws::Utils::DateTime>
180 ChangeSetSummary& WithCreationTime(CreationTimeT&& value) {
181 SetCreationTime(std::forward<CreationTimeT>(value));
182 return *this;
183 }
185
187
190 inline const Aws::String& GetDescription() const { return m_description; }
191 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
192 template <typename DescriptionT = Aws::String>
193 void SetDescription(DescriptionT&& value) {
194 m_descriptionHasBeenSet = true;
195 m_description = std::forward<DescriptionT>(value);
196 }
197 template <typename DescriptionT = Aws::String>
198 ChangeSetSummary& WithDescription(DescriptionT&& value) {
199 SetDescription(std::forward<DescriptionT>(value));
200 return *this;
201 }
203
205
209 inline bool GetIncludeNestedStacks() const { return m_includeNestedStacks; }
210 inline bool IncludeNestedStacksHasBeenSet() const { return m_includeNestedStacksHasBeenSet; }
211 inline void SetIncludeNestedStacks(bool value) {
212 m_includeNestedStacksHasBeenSet = true;
213 m_includeNestedStacks = value;
214 }
217 return *this;
218 }
220
222
225 inline const Aws::String& GetParentChangeSetId() const { return m_parentChangeSetId; }
226 inline bool ParentChangeSetIdHasBeenSet() const { return m_parentChangeSetIdHasBeenSet; }
227 template <typename ParentChangeSetIdT = Aws::String>
228 void SetParentChangeSetId(ParentChangeSetIdT&& value) {
229 m_parentChangeSetIdHasBeenSet = true;
230 m_parentChangeSetId = std::forward<ParentChangeSetIdT>(value);
231 }
232 template <typename ParentChangeSetIdT = Aws::String>
233 ChangeSetSummary& WithParentChangeSetId(ParentChangeSetIdT&& value) {
234 SetParentChangeSetId(std::forward<ParentChangeSetIdT>(value));
235 return *this;
236 }
238
240
243 inline const Aws::String& GetRootChangeSetId() const { return m_rootChangeSetId; }
244 inline bool RootChangeSetIdHasBeenSet() const { return m_rootChangeSetIdHasBeenSet; }
245 template <typename RootChangeSetIdT = Aws::String>
246 void SetRootChangeSetId(RootChangeSetIdT&& value) {
247 m_rootChangeSetIdHasBeenSet = true;
248 m_rootChangeSetId = std::forward<RootChangeSetIdT>(value);
249 }
250 template <typename RootChangeSetIdT = Aws::String>
251 ChangeSetSummary& WithRootChangeSetId(RootChangeSetIdT&& value) {
252 SetRootChangeSetId(std::forward<RootChangeSetIdT>(value));
253 return *this;
254 }
256
258
261 inline bool GetImportExistingResources() const { return m_importExistingResources; }
262 inline bool ImportExistingResourcesHasBeenSet() const { return m_importExistingResourcesHasBeenSet; }
263 inline void SetImportExistingResources(bool value) {
264 m_importExistingResourcesHasBeenSet = true;
265 m_importExistingResources = value;
266 }
269 return *this;
270 }
272 private:
273 Aws::String m_stackId;
274
275 Aws::String m_stackName;
276
277 Aws::String m_changeSetId;
278
279 Aws::String m_changeSetName;
280
281 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
282
284
285 Aws::String m_statusReason;
286
287 Aws::Utils::DateTime m_creationTime{};
288
289 Aws::String m_description;
290
291 bool m_includeNestedStacks{false};
292
293 Aws::String m_parentChangeSetId;
294
295 Aws::String m_rootChangeSetId;
296
297 bool m_importExistingResources{false};
298 bool m_stackIdHasBeenSet = false;
299 bool m_stackNameHasBeenSet = false;
300 bool m_changeSetIdHasBeenSet = false;
301 bool m_changeSetNameHasBeenSet = false;
302 bool m_executionStatusHasBeenSet = false;
303 bool m_statusHasBeenSet = false;
304 bool m_statusReasonHasBeenSet = false;
305 bool m_creationTimeHasBeenSet = false;
306 bool m_descriptionHasBeenSet = false;
307 bool m_includeNestedStacksHasBeenSet = false;
308 bool m_parentChangeSetIdHasBeenSet = false;
309 bool m_rootChangeSetIdHasBeenSet = false;
310 bool m_importExistingResourcesHasBeenSet = false;
311};
312
313} // namespace Model
314} // namespace CloudFormation
315} // namespace Aws
ChangeSetSummary & WithExecutionStatus(ExecutionStatus value)
void SetParentChangeSetId(ParentChangeSetIdT &&value)
AWS_CLOUDFORMATION_API ChangeSetSummary()=default
ChangeSetSummary & WithStackId(StackIdT &&value)
ChangeSetSummary & WithImportExistingResources(bool value)
ChangeSetSummary & WithStatus(ChangeSetStatus value)
ChangeSetSummary & WithIncludeNestedStacks(bool value)
ChangeSetSummary & WithStatusReason(StatusReasonT &&value)
ChangeSetSummary & WithChangeSetId(ChangeSetIdT &&value)
ChangeSetSummary & WithCreationTime(CreationTimeT &&value)
ChangeSetSummary & WithRootChangeSetId(RootChangeSetIdT &&value)
AWS_CLOUDFORMATION_API ChangeSetSummary & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetParentChangeSetId() const
ChangeSetSummary & WithDescription(DescriptionT &&value)
ChangeSetSummary & WithParentChangeSetId(ParentChangeSetIdT &&value)
AWS_CLOUDFORMATION_API ChangeSetSummary(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::Utils::DateTime & GetCreationTime() const
void SetRootChangeSetId(RootChangeSetIdT &&value)
ChangeSetSummary & WithStackName(StackNameT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
ChangeSetSummary & WithChangeSetName(ChangeSetNameT &&value)
void SetChangeSetName(ChangeSetNameT &&value)
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