AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
DescribeChangeSetResult.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/cloudformation/model/ExecutionStatus.h>
12#include <aws/cloudformation/model/ChangeSetStatus.h>
13#include <aws/cloudformation/model/RollbackConfiguration.h>
14#include <aws/cloudformation/model/OnStackFailure.h>
15#include <aws/cloudformation/model/ResponseMetadata.h>
16#include <aws/cloudformation/model/Parameter.h>
17#include <aws/cloudformation/model/Capability.h>
18#include <aws/cloudformation/model/Tag.h>
19#include <aws/cloudformation/model/Change.h>
20#include <utility>
21
22namespace Aws
23{
24template<typename RESULT_TYPE>
25class AmazonWebServiceResult;
26
27namespace Utils
28{
29namespace Xml
30{
31 class XmlDocument;
32} // namespace Xml
33} // namespace Utils
34namespace CloudFormation
35{
36namespace Model
37{
45 {
46 public:
47 AWS_CLOUDFORMATION_API DescribeChangeSetResult() = default;
50
51
53
56 inline const Aws::String& GetChangeSetName() const { return m_changeSetName; }
57 template<typename ChangeSetNameT = Aws::String>
58 void SetChangeSetName(ChangeSetNameT&& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = std::forward<ChangeSetNameT>(value); }
59 template<typename ChangeSetNameT = Aws::String>
60 DescribeChangeSetResult& WithChangeSetName(ChangeSetNameT&& value) { SetChangeSetName(std::forward<ChangeSetNameT>(value)); return *this;}
62
64
67 inline const Aws::String& GetChangeSetId() const { return m_changeSetId; }
68 template<typename ChangeSetIdT = Aws::String>
69 void SetChangeSetId(ChangeSetIdT&& value) { m_changeSetIdHasBeenSet = true; m_changeSetId = std::forward<ChangeSetIdT>(value); }
70 template<typename ChangeSetIdT = Aws::String>
71 DescribeChangeSetResult& WithChangeSetId(ChangeSetIdT&& value) { SetChangeSetId(std::forward<ChangeSetIdT>(value)); return *this;}
73
75
79 inline const Aws::String& GetStackId() const { return m_stackId; }
80 template<typename StackIdT = Aws::String>
81 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
82 template<typename StackIdT = Aws::String>
83 DescribeChangeSetResult& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
85
87
90 inline const Aws::String& GetStackName() const { return m_stackName; }
91 template<typename StackNameT = Aws::String>
92 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
93 template<typename StackNameT = Aws::String>
94 DescribeChangeSetResult& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
96
98
101 inline const Aws::String& GetDescription() const { return m_description; }
102 template<typename DescriptionT = Aws::String>
103 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
104 template<typename DescriptionT = Aws::String>
105 DescribeChangeSetResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
107
109
116 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
117 template<typename ParametersT = Aws::Vector<Parameter>>
118 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
119 template<typename ParametersT = Aws::Vector<Parameter>>
120 DescribeChangeSetResult& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
121 template<typename ParametersT = Parameter>
122 DescribeChangeSetResult& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
124
126
129 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
130 template<typename CreationTimeT = Aws::Utils::DateTime>
131 void SetCreationTime(CreationTimeT&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::forward<CreationTimeT>(value); }
132 template<typename CreationTimeT = Aws::Utils::DateTime>
133 DescribeChangeSetResult& WithCreationTime(CreationTimeT&& value) { SetCreationTime(std::forward<CreationTimeT>(value)); return *this;}
135
137
144 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
145 inline void SetExecutionStatus(ExecutionStatus value) { m_executionStatusHasBeenSet = true; m_executionStatus = value; }
148
150
154 inline ChangeSetStatus GetStatus() const { return m_status; }
155 inline void SetStatus(ChangeSetStatus value) { m_statusHasBeenSet = true; m_status = value; }
156 inline DescribeChangeSetResult& WithStatus(ChangeSetStatus value) { SetStatus(value); return *this;}
158
160
164 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
165 template<typename StatusReasonT = Aws::String>
166 void SetStatusReason(StatusReasonT&& value) { m_statusReasonHasBeenSet = true; m_statusReason = std::forward<StatusReasonT>(value); }
167 template<typename StatusReasonT = Aws::String>
168 DescribeChangeSetResult& WithStatusReason(StatusReasonT&& value) { SetStatusReason(std::forward<StatusReasonT>(value)); return *this;}
170
172
176 inline const Aws::Vector<Aws::String>& GetNotificationARNs() const { return m_notificationARNs; }
177 template<typename NotificationARNsT = Aws::Vector<Aws::String>>
178 void SetNotificationARNs(NotificationARNsT&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = std::forward<NotificationARNsT>(value); }
179 template<typename NotificationARNsT = Aws::Vector<Aws::String>>
180 DescribeChangeSetResult& WithNotificationARNs(NotificationARNsT&& value) { SetNotificationARNs(std::forward<NotificationARNsT>(value)); return *this;}
181 template<typename NotificationARNsT = Aws::String>
182 DescribeChangeSetResult& AddNotificationARNs(NotificationARNsT&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.emplace_back(std::forward<NotificationARNsT>(value)); return *this; }
184
186
190 inline const RollbackConfiguration& GetRollbackConfiguration() const { return m_rollbackConfiguration; }
191 template<typename RollbackConfigurationT = RollbackConfiguration>
192 void SetRollbackConfiguration(RollbackConfigurationT&& value) { m_rollbackConfigurationHasBeenSet = true; m_rollbackConfiguration = std::forward<RollbackConfigurationT>(value); }
193 template<typename RollbackConfigurationT = RollbackConfiguration>
194 DescribeChangeSetResult& WithRollbackConfiguration(RollbackConfigurationT&& value) { SetRollbackConfiguration(std::forward<RollbackConfigurationT>(value)); return *this;}
196
198
202 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
203 template<typename CapabilitiesT = Aws::Vector<Capability>>
204 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
205 template<typename CapabilitiesT = Aws::Vector<Capability>>
206 DescribeChangeSetResult& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
207 inline DescribeChangeSetResult& AddCapabilities(Capability value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
209
211
215 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
216 template<typename TagsT = Aws::Vector<Tag>>
217 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
218 template<typename TagsT = Aws::Vector<Tag>>
219 DescribeChangeSetResult& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
220 template<typename TagsT = Tag>
221 DescribeChangeSetResult& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
223
225
229 inline const Aws::Vector<Change>& GetChanges() const { return m_changes; }
230 template<typename ChangesT = Aws::Vector<Change>>
231 void SetChanges(ChangesT&& value) { m_changesHasBeenSet = true; m_changes = std::forward<ChangesT>(value); }
232 template<typename ChangesT = Aws::Vector<Change>>
233 DescribeChangeSetResult& WithChanges(ChangesT&& value) { SetChanges(std::forward<ChangesT>(value)); return *this;}
234 template<typename ChangesT = Change>
235 DescribeChangeSetResult& AddChanges(ChangesT&& value) { m_changesHasBeenSet = true; m_changes.emplace_back(std::forward<ChangesT>(value)); return *this; }
237
239
243 inline const Aws::String& GetNextToken() const { return m_nextToken; }
244 template<typename NextTokenT = Aws::String>
245 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
246 template<typename NextTokenT = Aws::String>
247 DescribeChangeSetResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
249
251
254 inline bool GetIncludeNestedStacks() const { return m_includeNestedStacks; }
255 inline void SetIncludeNestedStacks(bool value) { m_includeNestedStacksHasBeenSet = true; m_includeNestedStacks = value; }
256 inline DescribeChangeSetResult& WithIncludeNestedStacks(bool value) { SetIncludeNestedStacks(value); return *this;}
258
260
264 inline const Aws::String& GetParentChangeSetId() const { return m_parentChangeSetId; }
265 template<typename ParentChangeSetIdT = Aws::String>
266 void SetParentChangeSetId(ParentChangeSetIdT&& value) { m_parentChangeSetIdHasBeenSet = true; m_parentChangeSetId = std::forward<ParentChangeSetIdT>(value); }
267 template<typename ParentChangeSetIdT = Aws::String>
268 DescribeChangeSetResult& WithParentChangeSetId(ParentChangeSetIdT&& value) { SetParentChangeSetId(std::forward<ParentChangeSetIdT>(value)); return *this;}
270
272
276 inline const Aws::String& GetRootChangeSetId() const { return m_rootChangeSetId; }
277 template<typename RootChangeSetIdT = Aws::String>
278 void SetRootChangeSetId(RootChangeSetIdT&& value) { m_rootChangeSetIdHasBeenSet = true; m_rootChangeSetId = std::forward<RootChangeSetIdT>(value); }
279 template<typename RootChangeSetIdT = Aws::String>
280 DescribeChangeSetResult& WithRootChangeSetId(RootChangeSetIdT&& value) { SetRootChangeSetId(std::forward<RootChangeSetIdT>(value)); return *this;}
282
284
302 inline OnStackFailure GetOnStackFailure() const { return m_onStackFailure; }
303 inline void SetOnStackFailure(OnStackFailure value) { m_onStackFailureHasBeenSet = true; m_onStackFailure = value; }
306
308
317 inline bool GetImportExistingResources() const { return m_importExistingResources; }
318 inline void SetImportExistingResources(bool value) { m_importExistingResourcesHasBeenSet = true; m_importExistingResources = value; }
321
323
324 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
325 template<typename ResponseMetadataT = ResponseMetadata>
326 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
327 template<typename ResponseMetadataT = ResponseMetadata>
328 DescribeChangeSetResult& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
330 private:
331
332 Aws::String m_changeSetName;
333 bool m_changeSetNameHasBeenSet = false;
334
335 Aws::String m_changeSetId;
336 bool m_changeSetIdHasBeenSet = false;
337
338 Aws::String m_stackId;
339 bool m_stackIdHasBeenSet = false;
340
341 Aws::String m_stackName;
342 bool m_stackNameHasBeenSet = false;
343
344 Aws::String m_description;
345 bool m_descriptionHasBeenSet = false;
346
347 Aws::Vector<Parameter> m_parameters;
348 bool m_parametersHasBeenSet = false;
349
350 Aws::Utils::DateTime m_creationTime{};
351 bool m_creationTimeHasBeenSet = false;
352
353 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
354 bool m_executionStatusHasBeenSet = false;
355
357 bool m_statusHasBeenSet = false;
358
359 Aws::String m_statusReason;
360 bool m_statusReasonHasBeenSet = false;
361
362 Aws::Vector<Aws::String> m_notificationARNs;
363 bool m_notificationARNsHasBeenSet = false;
364
365 RollbackConfiguration m_rollbackConfiguration;
366 bool m_rollbackConfigurationHasBeenSet = false;
367
368 Aws::Vector<Capability> m_capabilities;
369 bool m_capabilitiesHasBeenSet = false;
370
371 Aws::Vector<Tag> m_tags;
372 bool m_tagsHasBeenSet = false;
373
374 Aws::Vector<Change> m_changes;
375 bool m_changesHasBeenSet = false;
376
377 Aws::String m_nextToken;
378 bool m_nextTokenHasBeenSet = false;
379
380 bool m_includeNestedStacks{false};
381 bool m_includeNestedStacksHasBeenSet = false;
382
383 Aws::String m_parentChangeSetId;
384 bool m_parentChangeSetIdHasBeenSet = false;
385
386 Aws::String m_rootChangeSetId;
387 bool m_rootChangeSetIdHasBeenSet = false;
388
389 OnStackFailure m_onStackFailure{OnStackFailure::NOT_SET};
390 bool m_onStackFailureHasBeenSet = false;
391
392 bool m_importExistingResources{false};
393 bool m_importExistingResourcesHasBeenSet = false;
394
395 ResponseMetadata m_responseMetadata;
396 bool m_responseMetadataHasBeenSet = false;
397 };
398
399} // namespace Model
400} // namespace CloudFormation
401} // namespace Aws
DescribeChangeSetResult & WithChangeSetId(ChangeSetIdT &&value)
DescribeChangeSetResult & WithRollbackConfiguration(RollbackConfigurationT &&value)
DescribeChangeSetResult & WithOnStackFailure(OnStackFailure value)
DescribeChangeSetResult & WithNotificationARNs(NotificationARNsT &&value)
DescribeChangeSetResult & WithParentChangeSetId(ParentChangeSetIdT &&value)
DescribeChangeSetResult & WithChangeSetName(ChangeSetNameT &&value)
DescribeChangeSetResult & WithIncludeNestedStacks(bool value)
DescribeChangeSetResult & WithCreationTime(CreationTimeT &&value)
const Aws::Vector< Aws::String > & GetNotificationARNs() const
DescribeChangeSetResult & WithResponseMetadata(ResponseMetadataT &&value)
DescribeChangeSetResult & WithRootChangeSetId(RootChangeSetIdT &&value)
DescribeChangeSetResult & WithTags(TagsT &&value)
DescribeChangeSetResult & WithStatusReason(StatusReasonT &&value)
DescribeChangeSetResult & WithParameters(ParametersT &&value)
DescribeChangeSetResult & AddNotificationARNs(NotificationARNsT &&value)
DescribeChangeSetResult & WithImportExistingResources(bool value)
DescribeChangeSetResult & WithDescription(DescriptionT &&value)
const Aws::Vector< Capability > & GetCapabilities() const
DescribeChangeSetResult & WithCapabilities(CapabilitiesT &&value)
DescribeChangeSetResult & AddChanges(ChangesT &&value)
DescribeChangeSetResult & WithChanges(ChangesT &&value)
DescribeChangeSetResult & WithNextToken(NextTokenT &&value)
const RollbackConfiguration & GetRollbackConfiguration() const
const Aws::Vector< Parameter > & GetParameters() const
AWS_CLOUDFORMATION_API DescribeChangeSetResult(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DescribeChangeSetResult & WithStatus(ChangeSetStatus value)
DescribeChangeSetResult & WithExecutionStatus(ExecutionStatus value)
DescribeChangeSetResult & WithStackId(StackIdT &&value)
DescribeChangeSetResult & AddCapabilities(Capability value)
AWS_CLOUDFORMATION_API DescribeChangeSetResult()=default
DescribeChangeSetResult & AddParameters(ParametersT &&value)
DescribeChangeSetResult & WithStackName(StackNameT &&value)
AWS_CLOUDFORMATION_API DescribeChangeSetResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetRollbackConfiguration(RollbackConfigurationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument