AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateChangeSetRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/Capability.h>
10#include <aws/cloudformation/model/ChangeSetType.h>
11#include <aws/cloudformation/model/DeploymentConfig.h>
12#include <aws/cloudformation/model/DeploymentMode.h>
13#include <aws/cloudformation/model/OnStackFailure.h>
14#include <aws/cloudformation/model/Parameter.h>
15#include <aws/cloudformation/model/ResourceToImport.h>
16#include <aws/cloudformation/model/RollbackConfiguration.h>
17#include <aws/cloudformation/model/Tag.h>
18#include <aws/core/utils/memory/stl/AWSString.h>
19#include <aws/core/utils/memory/stl/AWSVector.h>
20
21#include <utility>
22
23namespace Aws {
24namespace CloudFormation {
25namespace Model {
26
34 public:
35 AWS_CLOUDFORMATION_API CreateChangeSetRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateChangeSet"; }
42
43 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
44
45 protected:
46 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
47
48 public:
50
56 inline const Aws::String& GetStackName() const { return m_stackName; }
57 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
58 template <typename StackNameT = Aws::String>
59 void SetStackName(StackNameT&& value) {
60 m_stackNameHasBeenSet = true;
61 m_stackName = std::forward<StackNameT>(value);
62 }
63 template <typename StackNameT = Aws::String>
65 SetStackName(std::forward<StackNameT>(value));
66 return *this;
67 }
69
71
79 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
80 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
81 template <typename TemplateBodyT = Aws::String>
82 void SetTemplateBody(TemplateBodyT&& value) {
83 m_templateBodyHasBeenSet = true;
84 m_templateBody = std::forward<TemplateBodyT>(value);
85 }
86 template <typename TemplateBodyT = Aws::String>
87 CreateChangeSetRequest& WithTemplateBody(TemplateBodyT&& value) {
88 SetTemplateBody(std::forward<TemplateBodyT>(value));
89 return *this;
90 }
92
94
104 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
105 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
106 template <typename TemplateURLT = Aws::String>
107 void SetTemplateURL(TemplateURLT&& value) {
108 m_templateURLHasBeenSet = true;
109 m_templateURL = std::forward<TemplateURLT>(value);
110 }
111 template <typename TemplateURLT = Aws::String>
113 SetTemplateURL(std::forward<TemplateURLT>(value));
114 return *this;
115 }
117
119
131 inline bool GetUsePreviousTemplate() const { return m_usePreviousTemplate; }
132 inline bool UsePreviousTemplateHasBeenSet() const { return m_usePreviousTemplateHasBeenSet; }
133 inline void SetUsePreviousTemplate(bool value) {
134 m_usePreviousTemplateHasBeenSet = true;
135 m_usePreviousTemplate = value;
136 }
139 return *this;
140 }
142
144
148 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
149 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
150 template <typename ParametersT = Aws::Vector<Parameter>>
151 void SetParameters(ParametersT&& value) {
152 m_parametersHasBeenSet = true;
153 m_parameters = std::forward<ParametersT>(value);
154 }
155 template <typename ParametersT = Aws::Vector<Parameter>>
157 SetParameters(std::forward<ParametersT>(value));
158 return *this;
159 }
160 template <typename ParametersT = Parameter>
161 CreateChangeSetRequest& AddParameters(ParametersT&& value) {
162 m_parametersHasBeenSet = true;
163 m_parameters.emplace_back(std::forward<ParametersT>(value));
164 return *this;
165 }
167
169
229 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
230 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
231 template <typename CapabilitiesT = Aws::Vector<Capability>>
232 void SetCapabilities(CapabilitiesT&& value) {
233 m_capabilitiesHasBeenSet = true;
234 m_capabilities = std::forward<CapabilitiesT>(value);
235 }
236 template <typename CapabilitiesT = Aws::Vector<Capability>>
237 CreateChangeSetRequest& WithCapabilities(CapabilitiesT&& value) {
238 SetCapabilities(std::forward<CapabilitiesT>(value));
239 return *this;
240 }
242 m_capabilitiesHasBeenSet = true;
243 m_capabilities.push_back(value);
244 return *this;
245 }
247
249
262 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
263 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
264 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
265 void SetResourceTypes(ResourceTypesT&& value) {
266 m_resourceTypesHasBeenSet = true;
267 m_resourceTypes = std::forward<ResourceTypesT>(value);
268 }
269 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
270 CreateChangeSetRequest& WithResourceTypes(ResourceTypesT&& value) {
271 SetResourceTypes(std::forward<ResourceTypesT>(value));
272 return *this;
273 }
274 template <typename ResourceTypesT = Aws::String>
275 CreateChangeSetRequest& AddResourceTypes(ResourceTypesT&& value) {
276 m_resourceTypesHasBeenSet = true;
277 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
278 return *this;
279 }
281
283
294 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
295 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
296 template <typename RoleARNT = Aws::String>
297 void SetRoleARN(RoleARNT&& value) {
298 m_roleARNHasBeenSet = true;
299 m_roleARN = std::forward<RoleARNT>(value);
300 }
301 template <typename RoleARNT = Aws::String>
303 SetRoleARN(std::forward<RoleARNT>(value));
304 return *this;
305 }
307
309
313 inline const RollbackConfiguration& GetRollbackConfiguration() const { return m_rollbackConfiguration; }
314 inline bool RollbackConfigurationHasBeenSet() const { return m_rollbackConfigurationHasBeenSet; }
315 template <typename RollbackConfigurationT = RollbackConfiguration>
316 void SetRollbackConfiguration(RollbackConfigurationT&& value) {
317 m_rollbackConfigurationHasBeenSet = true;
318 m_rollbackConfiguration = std::forward<RollbackConfigurationT>(value);
319 }
320 template <typename RollbackConfigurationT = RollbackConfiguration>
321 CreateChangeSetRequest& WithRollbackConfiguration(RollbackConfigurationT&& value) {
322 SetRollbackConfiguration(std::forward<RollbackConfigurationT>(value));
323 return *this;
324 }
326
328
333 inline const Aws::Vector<Aws::String>& GetNotificationARNs() const { return m_notificationARNs; }
334 inline bool NotificationARNsHasBeenSet() const { return m_notificationARNsHasBeenSet; }
335 template <typename NotificationARNsT = Aws::Vector<Aws::String>>
336 void SetNotificationARNs(NotificationARNsT&& value) {
337 m_notificationARNsHasBeenSet = true;
338 m_notificationARNs = std::forward<NotificationARNsT>(value);
339 }
340 template <typename NotificationARNsT = Aws::Vector<Aws::String>>
341 CreateChangeSetRequest& WithNotificationARNs(NotificationARNsT&& value) {
342 SetNotificationARNs(std::forward<NotificationARNsT>(value));
343 return *this;
344 }
345 template <typename NotificationARNsT = Aws::String>
346 CreateChangeSetRequest& AddNotificationARNs(NotificationARNsT&& value) {
347 m_notificationARNsHasBeenSet = true;
348 m_notificationARNs.emplace_back(std::forward<NotificationARNsT>(value));
349 return *this;
350 }
352
354
358 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
359 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
360 template <typename TagsT = Aws::Vector<Tag>>
361 void SetTags(TagsT&& value) {
362 m_tagsHasBeenSet = true;
363 m_tags = std::forward<TagsT>(value);
364 }
365 template <typename TagsT = Aws::Vector<Tag>>
367 SetTags(std::forward<TagsT>(value));
368 return *this;
369 }
370 template <typename TagsT = Tag>
372 m_tagsHasBeenSet = true;
373 m_tags.emplace_back(std::forward<TagsT>(value));
374 return *this;
375 }
377
379
385 inline const Aws::String& GetChangeSetName() const { return m_changeSetName; }
386 inline bool ChangeSetNameHasBeenSet() const { return m_changeSetNameHasBeenSet; }
387 template <typename ChangeSetNameT = Aws::String>
388 void SetChangeSetName(ChangeSetNameT&& value) {
389 m_changeSetNameHasBeenSet = true;
390 m_changeSetName = std::forward<ChangeSetNameT>(value);
391 }
392 template <typename ChangeSetNameT = Aws::String>
393 CreateChangeSetRequest& WithChangeSetName(ChangeSetNameT&& value) {
394 SetChangeSetName(std::forward<ChangeSetNameT>(value));
395 return *this;
396 }
398
400
407 inline const Aws::String& GetClientToken() const { return m_clientToken; }
408 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
409 template <typename ClientTokenT = Aws::String>
410 void SetClientToken(ClientTokenT&& value) {
411 m_clientTokenHasBeenSet = true;
412 m_clientToken = std::forward<ClientTokenT>(value);
413 }
414 template <typename ClientTokenT = Aws::String>
416 SetClientToken(std::forward<ClientTokenT>(value));
417 return *this;
418 }
420
422
425 inline const Aws::String& GetDescription() const { return m_description; }
426 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
427 template <typename DescriptionT = Aws::String>
428 void SetDescription(DescriptionT&& value) {
429 m_descriptionHasBeenSet = true;
430 m_description = std::forward<DescriptionT>(value);
431 }
432 template <typename DescriptionT = Aws::String>
434 SetDescription(std::forward<DescriptionT>(value));
435 return *this;
436 }
438
440
452 inline ChangeSetType GetChangeSetType() const { return m_changeSetType; }
453 inline bool ChangeSetTypeHasBeenSet() const { return m_changeSetTypeHasBeenSet; }
454 inline void SetChangeSetType(ChangeSetType value) {
455 m_changeSetTypeHasBeenSet = true;
456 m_changeSetType = value;
457 }
459 SetChangeSetType(value);
460 return *this;
461 }
463
465
468 inline const Aws::Vector<ResourceToImport>& GetResourcesToImport() const { return m_resourcesToImport; }
469 inline bool ResourcesToImportHasBeenSet() const { return m_resourcesToImportHasBeenSet; }
470 template <typename ResourcesToImportT = Aws::Vector<ResourceToImport>>
471 void SetResourcesToImport(ResourcesToImportT&& value) {
472 m_resourcesToImportHasBeenSet = true;
473 m_resourcesToImport = std::forward<ResourcesToImportT>(value);
474 }
475 template <typename ResourcesToImportT = Aws::Vector<ResourceToImport>>
476 CreateChangeSetRequest& WithResourcesToImport(ResourcesToImportT&& value) {
477 SetResourcesToImport(std::forward<ResourcesToImportT>(value));
478 return *this;
479 }
480 template <typename ResourcesToImportT = ResourceToImport>
481 CreateChangeSetRequest& AddResourcesToImport(ResourcesToImportT&& value) {
482 m_resourcesToImportHasBeenSet = true;
483 m_resourcesToImport.emplace_back(std::forward<ResourcesToImportT>(value));
484 return *this;
485 }
487
489
494 inline bool GetIncludeNestedStacks() const { return m_includeNestedStacks; }
495 inline bool IncludeNestedStacksHasBeenSet() const { return m_includeNestedStacksHasBeenSet; }
496 inline void SetIncludeNestedStacks(bool value) {
497 m_includeNestedStacksHasBeenSet = true;
498 m_includeNestedStacks = value;
499 }
502 return *this;
503 }
505
507
528 inline OnStackFailure GetOnStackFailure() const { return m_onStackFailure; }
529 inline bool OnStackFailureHasBeenSet() const { return m_onStackFailureHasBeenSet; }
531 m_onStackFailureHasBeenSet = true;
532 m_onStackFailure = value;
533 }
535 SetOnStackFailure(value);
536 return *this;
537 }
539
541
554 inline bool GetImportExistingResources() const { return m_importExistingResources; }
555 inline bool ImportExistingResourcesHasBeenSet() const { return m_importExistingResourcesHasBeenSet; }
556 inline void SetImportExistingResources(bool value) {
557 m_importExistingResourcesHasBeenSet = true;
558 m_importExistingResources = value;
559 }
562 return *this;
563 }
565
567
576 inline DeploymentMode GetDeploymentMode() const { return m_deploymentMode; }
577 inline bool DeploymentModeHasBeenSet() const { return m_deploymentModeHasBeenSet; }
579 m_deploymentModeHasBeenSet = true;
580 m_deploymentMode = value;
581 }
583 SetDeploymentMode(value);
584 return *this;
585 }
587
589
593 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
594 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
595 template <typename DeploymentConfigT = DeploymentConfig>
596 void SetDeploymentConfig(DeploymentConfigT&& value) {
597 m_deploymentConfigHasBeenSet = true;
598 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
599 }
600 template <typename DeploymentConfigT = DeploymentConfig>
601 CreateChangeSetRequest& WithDeploymentConfig(DeploymentConfigT&& value) {
602 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
603 return *this;
604 }
606
608
612 inline bool GetDisableValidation() const { return m_disableValidation; }
613 inline bool DisableValidationHasBeenSet() const { return m_disableValidationHasBeenSet; }
614 inline void SetDisableValidation(bool value) {
615 m_disableValidationHasBeenSet = true;
616 m_disableValidation = value;
617 }
620 return *this;
621 }
623 private:
624 Aws::String m_stackName;
625
626 Aws::String m_templateBody;
627
628 Aws::String m_templateURL;
629
630 bool m_usePreviousTemplate{false};
631
632 Aws::Vector<Parameter> m_parameters;
633
634 Aws::Vector<Capability> m_capabilities;
635
636 Aws::Vector<Aws::String> m_resourceTypes;
637
638 Aws::String m_roleARN;
639
640 RollbackConfiguration m_rollbackConfiguration;
641
642 Aws::Vector<Aws::String> m_notificationARNs;
643
644 Aws::Vector<Tag> m_tags;
645
646 Aws::String m_changeSetName;
647
648 Aws::String m_clientToken;
649
650 Aws::String m_description;
651
652 ChangeSetType m_changeSetType{ChangeSetType::NOT_SET};
653
654 Aws::Vector<ResourceToImport> m_resourcesToImport;
655
656 bool m_includeNestedStacks{false};
657
658 OnStackFailure m_onStackFailure{OnStackFailure::NOT_SET};
659
660 bool m_importExistingResources{false};
661
662 DeploymentMode m_deploymentMode{DeploymentMode::NOT_SET};
663
664 DeploymentConfig m_deploymentConfig;
665
666 bool m_disableValidation{false};
667 bool m_stackNameHasBeenSet = false;
668 bool m_templateBodyHasBeenSet = false;
669 bool m_templateURLHasBeenSet = false;
670 bool m_usePreviousTemplateHasBeenSet = false;
671 bool m_parametersHasBeenSet = false;
672 bool m_capabilitiesHasBeenSet = false;
673 bool m_resourceTypesHasBeenSet = false;
674 bool m_roleARNHasBeenSet = false;
675 bool m_rollbackConfigurationHasBeenSet = false;
676 bool m_notificationARNsHasBeenSet = false;
677 bool m_tagsHasBeenSet = false;
678 bool m_changeSetNameHasBeenSet = false;
679 bool m_clientTokenHasBeenSet = false;
680 bool m_descriptionHasBeenSet = false;
681 bool m_changeSetTypeHasBeenSet = false;
682 bool m_resourcesToImportHasBeenSet = false;
683 bool m_includeNestedStacksHasBeenSet = false;
684 bool m_onStackFailureHasBeenSet = false;
685 bool m_importExistingResourcesHasBeenSet = false;
686 bool m_deploymentModeHasBeenSet = false;
687 bool m_deploymentConfigHasBeenSet = false;
688 bool m_disableValidationHasBeenSet = false;
689};
690
691} // namespace Model
692} // namespace CloudFormation
693} // namespace Aws
CreateChangeSetRequest & WithChangeSetName(ChangeSetNameT &&value)
CreateChangeSetRequest & AddResourceTypes(ResourceTypesT &&value)
CreateChangeSetRequest & WithOnStackFailure(OnStackFailure value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetResourceTypes() const
CreateChangeSetRequest & AddResourcesToImport(ResourcesToImportT &&value)
CreateChangeSetRequest & AddCapabilities(Capability value)
CreateChangeSetRequest & WithCapabilities(CapabilitiesT &&value)
CreateChangeSetRequest & WithResourcesToImport(ResourcesToImportT &&value)
CreateChangeSetRequest & WithTags(TagsT &&value)
CreateChangeSetRequest & WithIncludeNestedStacks(bool value)
CreateChangeSetRequest & AddParameters(ParametersT &&value)
CreateChangeSetRequest & WithImportExistingResources(bool value)
CreateChangeSetRequest & WithDisableValidation(bool value)
CreateChangeSetRequest & WithStackName(StackNameT &&value)
const RollbackConfiguration & GetRollbackConfiguration() const
CreateChangeSetRequest & WithTemplateURL(TemplateURLT &&value)
void SetRollbackConfiguration(RollbackConfigurationT &&value)
CreateChangeSetRequest & WithTemplateBody(TemplateBodyT &&value)
const Aws::Vector< Parameter > & GetParameters() const
CreateChangeSetRequest & WithRoleARN(RoleARNT &&value)
const Aws::Vector< ResourceToImport > & GetResourcesToImport() const
CreateChangeSetRequest & WithParameters(ParametersT &&value)
CreateChangeSetRequest & AddTags(TagsT &&value)
CreateChangeSetRequest & WithRollbackConfiguration(RollbackConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateChangeSetRequest & WithDeploymentMode(DeploymentMode value)
CreateChangeSetRequest & WithUsePreviousTemplate(bool value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateChangeSetRequest & WithResourceTypes(ResourceTypesT &&value)
CreateChangeSetRequest & WithChangeSetType(ChangeSetType value)
CreateChangeSetRequest & AddNotificationARNs(NotificationARNsT &&value)
const Aws::Vector< Aws::String > & GetNotificationARNs() const
AWS_CLOUDFORMATION_API CreateChangeSetRequest()=default
CreateChangeSetRequest & WithClientToken(ClientTokenT &&value)
CreateChangeSetRequest & WithDeploymentConfig(DeploymentConfigT &&value)
const Aws::Vector< Capability > & GetCapabilities() const
CreateChangeSetRequest & WithNotificationARNs(NotificationARNsT &&value)
CreateChangeSetRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector