AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
DescribeChangeSetResult.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/model/Capability.h>
9#include <aws/cloudformation/model/Change.h>
10#include <aws/cloudformation/model/ChangeSetStatus.h>
11#include <aws/cloudformation/model/DeploymentConfig.h>
12#include <aws/cloudformation/model/DeploymentMode.h>
13#include <aws/cloudformation/model/ExecutionStatus.h>
14#include <aws/cloudformation/model/OnStackFailure.h>
15#include <aws/cloudformation/model/Parameter.h>
16#include <aws/cloudformation/model/ResponseMetadata.h>
17#include <aws/cloudformation/model/RollbackConfiguration.h>
18#include <aws/cloudformation/model/StackDriftStatus.h>
19#include <aws/cloudformation/model/Tag.h>
20#include <aws/core/http/HttpResponse.h>
21#include <aws/core/utils/DateTime.h>
22#include <aws/core/utils/memory/stl/AWSString.h>
23#include <aws/core/utils/memory/stl/AWSVector.h>
24
25#include <utility>
26
27namespace Aws {
28template <typename RESULT_TYPE>
29class AmazonWebServiceResult;
30
31namespace Utils {
32namespace Xml {
33class XmlDocument;
34} // namespace Xml
35} // namespace Utils
36namespace CloudFormation {
37namespace Model {
45 public:
46 AWS_CLOUDFORMATION_API DescribeChangeSetResult() = default;
49
51
54 inline const Aws::String& GetChangeSetName() const { return m_changeSetName; }
55 template <typename ChangeSetNameT = Aws::String>
56 void SetChangeSetName(ChangeSetNameT&& value) {
57 m_changeSetNameHasBeenSet = true;
58 m_changeSetName = std::forward<ChangeSetNameT>(value);
59 }
60 template <typename ChangeSetNameT = Aws::String>
61 DescribeChangeSetResult& WithChangeSetName(ChangeSetNameT&& value) {
62 SetChangeSetName(std::forward<ChangeSetNameT>(value));
63 return *this;
64 }
66
68
71 inline const Aws::String& GetChangeSetId() const { return m_changeSetId; }
72 template <typename ChangeSetIdT = Aws::String>
73 void SetChangeSetId(ChangeSetIdT&& value) {
74 m_changeSetIdHasBeenSet = true;
75 m_changeSetId = std::forward<ChangeSetIdT>(value);
76 }
77 template <typename ChangeSetIdT = Aws::String>
79 SetChangeSetId(std::forward<ChangeSetIdT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::String& GetStackId() const { return m_stackId; }
90 template <typename StackIdT = Aws::String>
91 void SetStackId(StackIdT&& value) {
92 m_stackIdHasBeenSet = true;
93 m_stackId = std::forward<StackIdT>(value);
94 }
95 template <typename StackIdT = Aws::String>
97 SetStackId(std::forward<StackIdT>(value));
98 return *this;
99 }
101
103
106 inline const Aws::String& GetStackName() const { return m_stackName; }
107 template <typename StackNameT = Aws::String>
108 void SetStackName(StackNameT&& value) {
109 m_stackNameHasBeenSet = true;
110 m_stackName = std::forward<StackNameT>(value);
111 }
112 template <typename StackNameT = Aws::String>
114 SetStackName(std::forward<StackNameT>(value));
115 return *this;
116 }
118
120
123 inline const Aws::String& GetDescription() const { return m_description; }
124 template <typename DescriptionT = Aws::String>
125 void SetDescription(DescriptionT&& value) {
126 m_descriptionHasBeenSet = true;
127 m_description = std::forward<DescriptionT>(value);
128 }
129 template <typename DescriptionT = Aws::String>
131 SetDescription(std::forward<DescriptionT>(value));
132 return *this;
133 }
135
137
144 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
145 template <typename ParametersT = Aws::Vector<Parameter>>
146 void SetParameters(ParametersT&& value) {
147 m_parametersHasBeenSet = true;
148 m_parameters = std::forward<ParametersT>(value);
149 }
150 template <typename ParametersT = Aws::Vector<Parameter>>
152 SetParameters(std::forward<ParametersT>(value));
153 return *this;
154 }
155 template <typename ParametersT = Parameter>
157 m_parametersHasBeenSet = true;
158 m_parameters.emplace_back(std::forward<ParametersT>(value));
159 return *this;
160 }
162
164
167 inline const Aws::Utils::DateTime& GetCreationTime() const { return m_creationTime; }
168 template <typename CreationTimeT = Aws::Utils::DateTime>
169 void SetCreationTime(CreationTimeT&& value) {
170 m_creationTimeHasBeenSet = true;
171 m_creationTime = std::forward<CreationTimeT>(value);
172 }
173 template <typename CreationTimeT = Aws::Utils::DateTime>
175 SetCreationTime(std::forward<CreationTimeT>(value));
176 return *this;
177 }
179
181
188 inline ExecutionStatus GetExecutionStatus() const { return m_executionStatus; }
190 m_executionStatusHasBeenSet = true;
191 m_executionStatus = value;
192 }
194 SetExecutionStatus(value);
195 return *this;
196 }
198
200
204 inline ChangeSetStatus GetStatus() const { return m_status; }
205 inline void SetStatus(ChangeSetStatus value) {
206 m_statusHasBeenSet = true;
207 m_status = value;
208 }
210 SetStatus(value);
211 return *this;
212 }
214
216
220 inline const Aws::String& GetStatusReason() const { return m_statusReason; }
221 template <typename StatusReasonT = Aws::String>
222 void SetStatusReason(StatusReasonT&& value) {
223 m_statusReasonHasBeenSet = true;
224 m_statusReason = std::forward<StatusReasonT>(value);
225 }
226 template <typename StatusReasonT = Aws::String>
228 SetStatusReason(std::forward<StatusReasonT>(value));
229 return *this;
230 }
232
234
243 inline StackDriftStatus GetStackDriftStatus() const { return m_stackDriftStatus; }
245 m_stackDriftStatusHasBeenSet = true;
246 m_stackDriftStatus = value;
247 }
249 SetStackDriftStatus(value);
250 return *this;
251 }
253
255
259 inline const Aws::Vector<Aws::String>& GetNotificationARNs() const { return m_notificationARNs; }
260 template <typename NotificationARNsT = Aws::Vector<Aws::String>>
261 void SetNotificationARNs(NotificationARNsT&& value) {
262 m_notificationARNsHasBeenSet = true;
263 m_notificationARNs = std::forward<NotificationARNsT>(value);
264 }
265 template <typename NotificationARNsT = Aws::Vector<Aws::String>>
266 DescribeChangeSetResult& WithNotificationARNs(NotificationARNsT&& value) {
267 SetNotificationARNs(std::forward<NotificationARNsT>(value));
268 return *this;
269 }
270 template <typename NotificationARNsT = Aws::String>
271 DescribeChangeSetResult& AddNotificationARNs(NotificationARNsT&& value) {
272 m_notificationARNsHasBeenSet = true;
273 m_notificationARNs.emplace_back(std::forward<NotificationARNsT>(value));
274 return *this;
275 }
277
279
283 inline const RollbackConfiguration& GetRollbackConfiguration() const { return m_rollbackConfiguration; }
284 template <typename RollbackConfigurationT = RollbackConfiguration>
285 void SetRollbackConfiguration(RollbackConfigurationT&& value) {
286 m_rollbackConfigurationHasBeenSet = true;
287 m_rollbackConfiguration = std::forward<RollbackConfigurationT>(value);
288 }
289 template <typename RollbackConfigurationT = RollbackConfiguration>
290 DescribeChangeSetResult& WithRollbackConfiguration(RollbackConfigurationT&& value) {
291 SetRollbackConfiguration(std::forward<RollbackConfigurationT>(value));
292 return *this;
293 }
295
297
301 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
302 template <typename CapabilitiesT = Aws::Vector<Capability>>
303 void SetCapabilities(CapabilitiesT&& value) {
304 m_capabilitiesHasBeenSet = true;
305 m_capabilities = std::forward<CapabilitiesT>(value);
306 }
307 template <typename CapabilitiesT = Aws::Vector<Capability>>
309 SetCapabilities(std::forward<CapabilitiesT>(value));
310 return *this;
311 }
313 m_capabilitiesHasBeenSet = true;
314 m_capabilities.push_back(value);
315 return *this;
316 }
318
320
324 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
325 template <typename TagsT = Aws::Vector<Tag>>
326 void SetTags(TagsT&& value) {
327 m_tagsHasBeenSet = true;
328 m_tags = std::forward<TagsT>(value);
329 }
330 template <typename TagsT = Aws::Vector<Tag>>
332 SetTags(std::forward<TagsT>(value));
333 return *this;
334 }
335 template <typename TagsT = Tag>
337 m_tagsHasBeenSet = true;
338 m_tags.emplace_back(std::forward<TagsT>(value));
339 return *this;
340 }
342
344
348 inline const Aws::Vector<Change>& GetChanges() const { return m_changes; }
349 template <typename ChangesT = Aws::Vector<Change>>
350 void SetChanges(ChangesT&& value) {
351 m_changesHasBeenSet = true;
352 m_changes = std::forward<ChangesT>(value);
353 }
354 template <typename ChangesT = Aws::Vector<Change>>
356 SetChanges(std::forward<ChangesT>(value));
357 return *this;
358 }
359 template <typename ChangesT = Change>
361 m_changesHasBeenSet = true;
362 m_changes.emplace_back(std::forward<ChangesT>(value));
363 return *this;
364 }
366
368
372 inline const Aws::String& GetNextToken() const { return m_nextToken; }
373 template <typename NextTokenT = Aws::String>
374 void SetNextToken(NextTokenT&& value) {
375 m_nextTokenHasBeenSet = true;
376 m_nextToken = std::forward<NextTokenT>(value);
377 }
378 template <typename NextTokenT = Aws::String>
380 SetNextToken(std::forward<NextTokenT>(value));
381 return *this;
382 }
384
386
389 inline bool GetIncludeNestedStacks() const { return m_includeNestedStacks; }
390 inline void SetIncludeNestedStacks(bool value) {
391 m_includeNestedStacksHasBeenSet = true;
392 m_includeNestedStacks = value;
393 }
396 return *this;
397 }
399
401
405 inline const Aws::String& GetParentChangeSetId() const { return m_parentChangeSetId; }
406 template <typename ParentChangeSetIdT = Aws::String>
407 void SetParentChangeSetId(ParentChangeSetIdT&& value) {
408 m_parentChangeSetIdHasBeenSet = true;
409 m_parentChangeSetId = std::forward<ParentChangeSetIdT>(value);
410 }
411 template <typename ParentChangeSetIdT = Aws::String>
412 DescribeChangeSetResult& WithParentChangeSetId(ParentChangeSetIdT&& value) {
413 SetParentChangeSetId(std::forward<ParentChangeSetIdT>(value));
414 return *this;
415 }
417
419
423 inline const Aws::String& GetRootChangeSetId() const { return m_rootChangeSetId; }
424 template <typename RootChangeSetIdT = Aws::String>
425 void SetRootChangeSetId(RootChangeSetIdT&& value) {
426 m_rootChangeSetIdHasBeenSet = true;
427 m_rootChangeSetId = std::forward<RootChangeSetIdT>(value);
428 }
429 template <typename RootChangeSetIdT = Aws::String>
430 DescribeChangeSetResult& WithRootChangeSetId(RootChangeSetIdT&& value) {
431 SetRootChangeSetId(std::forward<RootChangeSetIdT>(value));
432 return *this;
433 }
435
437
455 inline OnStackFailure GetOnStackFailure() const { return m_onStackFailure; }
457 m_onStackFailureHasBeenSet = true;
458 m_onStackFailure = value;
459 }
461 SetOnStackFailure(value);
462 return *this;
463 }
465
467
476 inline bool GetImportExistingResources() const { return m_importExistingResources; }
477 inline void SetImportExistingResources(bool value) {
478 m_importExistingResourcesHasBeenSet = true;
479 m_importExistingResources = value;
480 }
483 return *this;
484 }
486
488
492 inline DeploymentMode GetDeploymentMode() const { return m_deploymentMode; }
494 m_deploymentModeHasBeenSet = true;
495 m_deploymentMode = value;
496 }
498 SetDeploymentMode(value);
499 return *this;
500 }
502
504
507 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
508 template <typename DeploymentConfigT = DeploymentConfig>
509 void SetDeploymentConfig(DeploymentConfigT&& value) {
510 m_deploymentConfigHasBeenSet = true;
511 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
512 }
513 template <typename DeploymentConfigT = DeploymentConfig>
514 DescribeChangeSetResult& WithDeploymentConfig(DeploymentConfigT&& value) {
515 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
516 return *this;
517 }
519
521
522 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
523 template <typename ResponseMetadataT = ResponseMetadata>
524 void SetResponseMetadata(ResponseMetadataT&& value) {
525 m_responseMetadataHasBeenSet = true;
526 m_responseMetadata = std::forward<ResponseMetadataT>(value);
527 }
528 template <typename ResponseMetadataT = ResponseMetadata>
529 DescribeChangeSetResult& WithResponseMetadata(ResponseMetadataT&& value) {
530 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
531 return *this;
532 }
534 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
535
536 private:
537 Aws::String m_changeSetName;
538
539 Aws::String m_changeSetId;
540
541 Aws::String m_stackId;
542
543 Aws::String m_stackName;
544
545 Aws::String m_description;
546
547 Aws::Vector<Parameter> m_parameters;
548
549 Aws::Utils::DateTime m_creationTime{};
550
551 ExecutionStatus m_executionStatus{ExecutionStatus::NOT_SET};
552
554
555 Aws::String m_statusReason;
556
558
559 Aws::Vector<Aws::String> m_notificationARNs;
560
561 RollbackConfiguration m_rollbackConfiguration;
562
563 Aws::Vector<Capability> m_capabilities;
564
565 Aws::Vector<Tag> m_tags;
566
567 Aws::Vector<Change> m_changes;
568
569 Aws::String m_nextToken;
570
571 bool m_includeNestedStacks{false};
572
573 Aws::String m_parentChangeSetId;
574
575 Aws::String m_rootChangeSetId;
576
577 OnStackFailure m_onStackFailure{OnStackFailure::NOT_SET};
578
579 bool m_importExistingResources{false};
580
581 DeploymentMode m_deploymentMode{DeploymentMode::NOT_SET};
582
583 DeploymentConfig m_deploymentConfig;
584
585 ResponseMetadata m_responseMetadata;
586 Aws::Http::HttpResponseCode m_HttpResponseCode;
587 bool m_changeSetNameHasBeenSet = false;
588 bool m_changeSetIdHasBeenSet = false;
589 bool m_stackIdHasBeenSet = false;
590 bool m_stackNameHasBeenSet = false;
591 bool m_descriptionHasBeenSet = false;
592 bool m_parametersHasBeenSet = false;
593 bool m_creationTimeHasBeenSet = false;
594 bool m_executionStatusHasBeenSet = false;
595 bool m_statusHasBeenSet = false;
596 bool m_statusReasonHasBeenSet = false;
597 bool m_stackDriftStatusHasBeenSet = false;
598 bool m_notificationARNsHasBeenSet = false;
599 bool m_rollbackConfigurationHasBeenSet = false;
600 bool m_capabilitiesHasBeenSet = false;
601 bool m_tagsHasBeenSet = false;
602 bool m_changesHasBeenSet = false;
603 bool m_nextTokenHasBeenSet = false;
604 bool m_includeNestedStacksHasBeenSet = false;
605 bool m_parentChangeSetIdHasBeenSet = false;
606 bool m_rootChangeSetIdHasBeenSet = false;
607 bool m_onStackFailureHasBeenSet = false;
608 bool m_importExistingResourcesHasBeenSet = false;
609 bool m_deploymentModeHasBeenSet = false;
610 bool m_deploymentConfigHasBeenSet = false;
611 bool m_responseMetadataHasBeenSet = false;
612};
613
614} // namespace Model
615} // namespace CloudFormation
616} // namespace Aws
DescribeChangeSetResult & WithChangeSetId(ChangeSetIdT &&value)
DescribeChangeSetResult & WithStackDriftStatus(StackDriftStatus value)
DescribeChangeSetResult & WithRollbackConfiguration(RollbackConfigurationT &&value)
DescribeChangeSetResult & WithDeploymentMode(DeploymentMode value)
DescribeChangeSetResult & WithOnStackFailure(OnStackFailure value)
DescribeChangeSetResult & WithNotificationARNs(NotificationARNsT &&value)
DescribeChangeSetResult & WithParentChangeSetId(ParentChangeSetIdT &&value)
DescribeChangeSetResult & WithChangeSetName(ChangeSetNameT &&value)
DescribeChangeSetResult & WithIncludeNestedStacks(bool value)
DescribeChangeSetResult & WithDeploymentConfig(DeploymentConfigT &&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