AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
UpdateStackSetRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormationRequest.h>
8#include <aws/cloudformation/CloudFormation_EXPORTS.h>
9#include <aws/cloudformation/model/AutoDeployment.h>
10#include <aws/cloudformation/model/CallAs.h>
11#include <aws/cloudformation/model/Capability.h>
12#include <aws/cloudformation/model/DeploymentTargets.h>
13#include <aws/cloudformation/model/ManagedExecution.h>
14#include <aws/cloudformation/model/Parameter.h>
15#include <aws/cloudformation/model/PermissionModels.h>
16#include <aws/cloudformation/model/StackSetOperationPreferences.h>
17#include <aws/cloudformation/model/Tag.h>
18#include <aws/core/utils/UUID.h>
19#include <aws/core/utils/memory/stl/AWSString.h>
20#include <aws/core/utils/memory/stl/AWSVector.h>
21
22#include <utility>
23
24namespace Aws {
25namespace CloudFormation {
26namespace Model {
27
31 public:
32 AWS_CLOUDFORMATION_API UpdateStackSetRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "UpdateStackSet"; }
39
40 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
44
45 public:
47
50 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
51 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
52 template <typename StackSetNameT = Aws::String>
53 void SetStackSetName(StackSetNameT&& value) {
54 m_stackSetNameHasBeenSet = true;
55 m_stackSetName = std::forward<StackSetNameT>(value);
56 }
57 template <typename StackSetNameT = Aws::String>
58 UpdateStackSetRequest& WithStackSetName(StackSetNameT&& value) {
59 SetStackSetName(std::forward<StackSetNameT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetDescription() const { return m_description; }
69 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
70 template <typename DescriptionT = Aws::String>
71 void SetDescription(DescriptionT&& value) {
72 m_descriptionHasBeenSet = true;
73 m_description = std::forward<DescriptionT>(value);
74 }
75 template <typename DescriptionT = Aws::String>
76 UpdateStackSetRequest& WithDescription(DescriptionT&& value) {
77 SetDescription(std::forward<DescriptionT>(value));
78 return *this;
79 }
81
83
89 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
90 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
91 template <typename TemplateBodyT = Aws::String>
92 void SetTemplateBody(TemplateBodyT&& value) {
93 m_templateBodyHasBeenSet = true;
94 m_templateBody = std::forward<TemplateBodyT>(value);
95 }
96 template <typename TemplateBodyT = Aws::String>
97 UpdateStackSetRequest& WithTemplateBody(TemplateBodyT&& value) {
98 SetTemplateBody(std::forward<TemplateBodyT>(value));
99 return *this;
100 }
102
104
113 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
114 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
115 template <typename TemplateURLT = Aws::String>
116 void SetTemplateURL(TemplateURLT&& value) {
117 m_templateURLHasBeenSet = true;
118 m_templateURL = std::forward<TemplateURLT>(value);
119 }
120 template <typename TemplateURLT = Aws::String>
121 UpdateStackSetRequest& WithTemplateURL(TemplateURLT&& value) {
122 SetTemplateURL(std::forward<TemplateURLT>(value));
123 return *this;
124 }
126
128
134 inline bool GetUsePreviousTemplate() const { return m_usePreviousTemplate; }
135 inline bool UsePreviousTemplateHasBeenSet() const { return m_usePreviousTemplateHasBeenSet; }
136 inline void SetUsePreviousTemplate(bool value) {
137 m_usePreviousTemplateHasBeenSet = true;
138 m_usePreviousTemplate = value;
139 }
142 return *this;
143 }
145
147
150 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
151 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
152 template <typename ParametersT = Aws::Vector<Parameter>>
153 void SetParameters(ParametersT&& value) {
154 m_parametersHasBeenSet = true;
155 m_parameters = std::forward<ParametersT>(value);
156 }
157 template <typename ParametersT = Aws::Vector<Parameter>>
158 UpdateStackSetRequest& WithParameters(ParametersT&& value) {
159 SetParameters(std::forward<ParametersT>(value));
160 return *this;
161 }
162 template <typename ParametersT = Parameter>
163 UpdateStackSetRequest& AddParameters(ParametersT&& value) {
164 m_parametersHasBeenSet = true;
165 m_parameters.emplace_back(std::forward<ParametersT>(value));
166 return *this;
167 }
169
171
227 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
228 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
229 template <typename CapabilitiesT = Aws::Vector<Capability>>
230 void SetCapabilities(CapabilitiesT&& value) {
231 m_capabilitiesHasBeenSet = true;
232 m_capabilities = std::forward<CapabilitiesT>(value);
233 }
234 template <typename CapabilitiesT = Aws::Vector<Capability>>
235 UpdateStackSetRequest& WithCapabilities(CapabilitiesT&& value) {
236 SetCapabilities(std::forward<CapabilitiesT>(value));
237 return *this;
238 }
240 m_capabilitiesHasBeenSet = true;
241 m_capabilities.push_back(value);
242 return *this;
243 }
245
247
270 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
271 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
272 template <typename TagsT = Aws::Vector<Tag>>
273 void SetTags(TagsT&& value) {
274 m_tagsHasBeenSet = true;
275 m_tags = std::forward<TagsT>(value);
276 }
277 template <typename TagsT = Aws::Vector<Tag>>
279 SetTags(std::forward<TagsT>(value));
280 return *this;
281 }
282 template <typename TagsT = Tag>
284 m_tagsHasBeenSet = true;
285 m_tags.emplace_back(std::forward<TagsT>(value));
286 return *this;
287 }
289
291
294 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
295 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
296 template <typename OperationPreferencesT = StackSetOperationPreferences>
297 void SetOperationPreferences(OperationPreferencesT&& value) {
298 m_operationPreferencesHasBeenSet = true;
299 m_operationPreferences = std::forward<OperationPreferencesT>(value);
300 }
301 template <typename OperationPreferencesT = StackSetOperationPreferences>
302 UpdateStackSetRequest& WithOperationPreferences(OperationPreferencesT&& value) {
303 SetOperationPreferences(std::forward<OperationPreferencesT>(value));
304 return *this;
305 }
307
309
321 inline const Aws::String& GetAdministrationRoleARN() const { return m_administrationRoleARN; }
322 inline bool AdministrationRoleARNHasBeenSet() const { return m_administrationRoleARNHasBeenSet; }
323 template <typename AdministrationRoleARNT = Aws::String>
324 void SetAdministrationRoleARN(AdministrationRoleARNT&& value) {
325 m_administrationRoleARNHasBeenSet = true;
326 m_administrationRoleARN = std::forward<AdministrationRoleARNT>(value);
327 }
328 template <typename AdministrationRoleARNT = Aws::String>
329 UpdateStackSetRequest& WithAdministrationRoleARN(AdministrationRoleARNT&& value) {
330 SetAdministrationRoleARN(std::forward<AdministrationRoleARNT>(value));
331 return *this;
332 }
334
336
355 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
356 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
357 template <typename ExecutionRoleNameT = Aws::String>
358 void SetExecutionRoleName(ExecutionRoleNameT&& value) {
359 m_executionRoleNameHasBeenSet = true;
360 m_executionRoleName = std::forward<ExecutionRoleNameT>(value);
361 }
362 template <typename ExecutionRoleNameT = Aws::String>
363 UpdateStackSetRequest& WithExecutionRoleName(ExecutionRoleNameT&& value) {
364 SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value));
365 return *this;
366 }
368
370
384 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
385 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
386 template <typename DeploymentTargetsT = DeploymentTargets>
387 void SetDeploymentTargets(DeploymentTargetsT&& value) {
388 m_deploymentTargetsHasBeenSet = true;
389 m_deploymentTargets = std::forward<DeploymentTargetsT>(value);
390 }
391 template <typename DeploymentTargetsT = DeploymentTargets>
392 UpdateStackSetRequest& WithDeploymentTargets(DeploymentTargetsT&& value) {
393 SetDeploymentTargets(std::forward<DeploymentTargetsT>(value));
394 return *this;
395 }
397
399
413 inline PermissionModels GetPermissionModel() const { return m_permissionModel; }
414 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
416 m_permissionModelHasBeenSet = true;
417 m_permissionModel = value;
418 }
420 SetPermissionModel(value);
421 return *this;
422 }
424
426
436 inline const AutoDeployment& GetAutoDeployment() const { return m_autoDeployment; }
437 inline bool AutoDeploymentHasBeenSet() const { return m_autoDeploymentHasBeenSet; }
438 template <typename AutoDeploymentT = AutoDeployment>
439 void SetAutoDeployment(AutoDeploymentT&& value) {
440 m_autoDeploymentHasBeenSet = true;
441 m_autoDeployment = std::forward<AutoDeploymentT>(value);
442 }
443 template <typename AutoDeploymentT = AutoDeployment>
444 UpdateStackSetRequest& WithAutoDeployment(AutoDeploymentT&& value) {
445 SetAutoDeployment(std::forward<AutoDeploymentT>(value));
446 return *this;
447 }
449
451
461 inline const Aws::String& GetOperationId() const { return m_operationId; }
462 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
463 template <typename OperationIdT = Aws::String>
464 void SetOperationId(OperationIdT&& value) {
465 m_operationIdHasBeenSet = true;
466 m_operationId = std::forward<OperationIdT>(value);
467 }
468 template <typename OperationIdT = Aws::String>
469 UpdateStackSetRequest& WithOperationId(OperationIdT&& value) {
470 SetOperationId(std::forward<OperationIdT>(value));
471 return *this;
472 }
474
476
492 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
493 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
494 template <typename AccountsT = Aws::Vector<Aws::String>>
495 void SetAccounts(AccountsT&& value) {
496 m_accountsHasBeenSet = true;
497 m_accounts = std::forward<AccountsT>(value);
498 }
499 template <typename AccountsT = Aws::Vector<Aws::String>>
501 SetAccounts(std::forward<AccountsT>(value));
502 return *this;
503 }
504 template <typename AccountsT = Aws::String>
505 UpdateStackSetRequest& AddAccounts(AccountsT&& value) {
506 m_accountsHasBeenSet = true;
507 m_accounts.emplace_back(std::forward<AccountsT>(value));
508 return *this;
509 }
511
513
528 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
529 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
530 template <typename RegionsT = Aws::Vector<Aws::String>>
531 void SetRegions(RegionsT&& value) {
532 m_regionsHasBeenSet = true;
533 m_regions = std::forward<RegionsT>(value);
534 }
535 template <typename RegionsT = Aws::Vector<Aws::String>>
537 SetRegions(std::forward<RegionsT>(value));
538 return *this;
539 }
540 template <typename RegionsT = Aws::String>
542 m_regionsHasBeenSet = true;
543 m_regions.emplace_back(std::forward<RegionsT>(value));
544 return *this;
545 }
547
549
563 inline CallAs GetCallAs() const { return m_callAs; }
564 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
565 inline void SetCallAs(CallAs value) {
566 m_callAsHasBeenSet = true;
567 m_callAs = value;
568 }
570 SetCallAs(value);
571 return *this;
572 }
574
576
580 inline const ManagedExecution& GetManagedExecution() const { return m_managedExecution; }
581 inline bool ManagedExecutionHasBeenSet() const { return m_managedExecutionHasBeenSet; }
582 template <typename ManagedExecutionT = ManagedExecution>
583 void SetManagedExecution(ManagedExecutionT&& value) {
584 m_managedExecutionHasBeenSet = true;
585 m_managedExecution = std::forward<ManagedExecutionT>(value);
586 }
587 template <typename ManagedExecutionT = ManagedExecution>
588 UpdateStackSetRequest& WithManagedExecution(ManagedExecutionT&& value) {
589 SetManagedExecution(std::forward<ManagedExecutionT>(value));
590 return *this;
591 }
593
595
603 inline const Aws::String& GetExecutionRoleTemplateBody() const { return m_executionRoleTemplateBody; }
604 inline bool ExecutionRoleTemplateBodyHasBeenSet() const { return m_executionRoleTemplateBodyHasBeenSet; }
605 template <typename ExecutionRoleTemplateBodyT = Aws::String>
606 void SetExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT&& value) {
607 m_executionRoleTemplateBodyHasBeenSet = true;
608 m_executionRoleTemplateBody = std::forward<ExecutionRoleTemplateBodyT>(value);
609 }
610 template <typename ExecutionRoleTemplateBodyT = Aws::String>
611 UpdateStackSetRequest& WithExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT&& value) {
612 SetExecutionRoleTemplateBody(std::forward<ExecutionRoleTemplateBodyT>(value));
613 return *this;
614 }
616
618
627 inline const Aws::String& GetExecutionRoleTemplateUrl() const { return m_executionRoleTemplateUrl; }
628 inline bool ExecutionRoleTemplateUrlHasBeenSet() const { return m_executionRoleTemplateUrlHasBeenSet; }
629 template <typename ExecutionRoleTemplateUrlT = Aws::String>
630 void SetExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT&& value) {
631 m_executionRoleTemplateUrlHasBeenSet = true;
632 m_executionRoleTemplateUrl = std::forward<ExecutionRoleTemplateUrlT>(value);
633 }
634 template <typename ExecutionRoleTemplateUrlT = Aws::String>
635 UpdateStackSetRequest& WithExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT&& value) {
636 SetExecutionRoleTemplateUrl(std::forward<ExecutionRoleTemplateUrlT>(value));
637 return *this;
638 }
640
642
649 inline bool GetUseAdminExecutionRole() const { return m_useAdminExecutionRole; }
650 inline bool UseAdminExecutionRoleHasBeenSet() const { return m_useAdminExecutionRoleHasBeenSet; }
651 inline void SetUseAdminExecutionRole(bool value) {
652 m_useAdminExecutionRoleHasBeenSet = true;
653 m_useAdminExecutionRole = value;
654 }
657 return *this;
658 }
660
662
667 inline const Aws::String& GetStackSetOutputBucket() const { return m_stackSetOutputBucket; }
668 inline bool StackSetOutputBucketHasBeenSet() const { return m_stackSetOutputBucketHasBeenSet; }
669 template <typename StackSetOutputBucketT = Aws::String>
670 void SetStackSetOutputBucket(StackSetOutputBucketT&& value) {
671 m_stackSetOutputBucketHasBeenSet = true;
672 m_stackSetOutputBucket = std::forward<StackSetOutputBucketT>(value);
673 }
674 template <typename StackSetOutputBucketT = Aws::String>
675 UpdateStackSetRequest& WithStackSetOutputBucket(StackSetOutputBucketT&& value) {
676 SetStackSetOutputBucket(std::forward<StackSetOutputBucketT>(value));
677 return *this;
678 }
680 private:
681 Aws::String m_stackSetName;
682
683 Aws::String m_description;
684
685 Aws::String m_templateBody;
686
687 Aws::String m_templateURL;
688
689 bool m_usePreviousTemplate{false};
690
691 Aws::Vector<Parameter> m_parameters;
692
693 Aws::Vector<Capability> m_capabilities;
694
695 Aws::Vector<Tag> m_tags;
696
697 StackSetOperationPreferences m_operationPreferences;
698
699 Aws::String m_administrationRoleARN;
700
701 Aws::String m_executionRoleName;
702
703 DeploymentTargets m_deploymentTargets;
704
706
707 AutoDeployment m_autoDeployment;
708
710
711 Aws::Vector<Aws::String> m_accounts;
712
713 Aws::Vector<Aws::String> m_regions;
714
715 CallAs m_callAs{CallAs::NOT_SET};
716
717 ManagedExecution m_managedExecution;
718
719 Aws::String m_executionRoleTemplateBody;
720
721 Aws::String m_executionRoleTemplateUrl;
722
723 bool m_useAdminExecutionRole{false};
724
725 Aws::String m_stackSetOutputBucket;
726 bool m_stackSetNameHasBeenSet = false;
727 bool m_descriptionHasBeenSet = false;
728 bool m_templateBodyHasBeenSet = false;
729 bool m_templateURLHasBeenSet = false;
730 bool m_usePreviousTemplateHasBeenSet = false;
731 bool m_parametersHasBeenSet = false;
732 bool m_capabilitiesHasBeenSet = false;
733 bool m_tagsHasBeenSet = false;
734 bool m_operationPreferencesHasBeenSet = false;
735 bool m_administrationRoleARNHasBeenSet = false;
736 bool m_executionRoleNameHasBeenSet = false;
737 bool m_deploymentTargetsHasBeenSet = false;
738 bool m_permissionModelHasBeenSet = false;
739 bool m_autoDeploymentHasBeenSet = false;
740 bool m_operationIdHasBeenSet = true;
741 bool m_accountsHasBeenSet = false;
742 bool m_regionsHasBeenSet = false;
743 bool m_callAsHasBeenSet = false;
744 bool m_managedExecutionHasBeenSet = false;
745 bool m_executionRoleTemplateBodyHasBeenSet = false;
746 bool m_executionRoleTemplateUrlHasBeenSet = false;
747 bool m_useAdminExecutionRoleHasBeenSet = false;
748 bool m_stackSetOutputBucketHasBeenSet = false;
749};
750
751} // namespace Model
752} // namespace CloudFormation
753} // namespace Aws
UpdateStackSetRequest & WithTags(TagsT &&value)
UpdateStackSetRequest & WithAccounts(AccountsT &&value)
void SetAdministrationRoleARN(AdministrationRoleARNT &&value)
void SetExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT &&value)
UpdateStackSetRequest & WithDeploymentTargets(DeploymentTargetsT &&value)
UpdateStackSetRequest & AddCapabilities(Capability value)
UpdateStackSetRequest & WithAutoDeployment(AutoDeploymentT &&value)
const Aws::Vector< Parameter > & GetParameters() const
UpdateStackSetRequest & WithTemplateBody(TemplateBodyT &&value)
UpdateStackSetRequest & WithOperationPreferences(OperationPreferencesT &&value)
UpdateStackSetRequest & WithUsePreviousTemplate(bool value)
UpdateStackSetRequest & WithDescription(DescriptionT &&value)
UpdateStackSetRequest & AddParameters(ParametersT &&value)
UpdateStackSetRequest & WithCapabilities(CapabilitiesT &&value)
void SetOperationPreferences(OperationPreferencesT &&value)
UpdateStackSetRequest & WithPermissionModel(PermissionModels value)
void SetExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateStackSetRequest & WithExecutionRoleName(ExecutionRoleNameT &&value)
UpdateStackSetRequest & WithStackSetName(StackSetNameT &&value)
UpdateStackSetRequest & WithParameters(ParametersT &&value)
UpdateStackSetRequest & AddAccounts(AccountsT &&value)
UpdateStackSetRequest & WithUseAdminExecutionRole(bool value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetRegions() const
UpdateStackSetRequest & WithRegions(RegionsT &&value)
AWS_CLOUDFORMATION_API UpdateStackSetRequest()=default
UpdateStackSetRequest & WithOperationId(OperationIdT &&value)
UpdateStackSetRequest & WithStackSetOutputBucket(StackSetOutputBucketT &&value)
const Aws::Vector< Capability > & GetCapabilities() const
UpdateStackSetRequest & WithTemplateURL(TemplateURLT &&value)
UpdateStackSetRequest & AddRegions(RegionsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateStackSetRequest & AddTags(TagsT &&value)
const StackSetOperationPreferences & GetOperationPreferences() const
const Aws::Vector< Aws::String > & GetAccounts() const
UpdateStackSetRequest & WithCallAs(CallAs value)
void SetStackSetOutputBucket(StackSetOutputBucketT &&value)
UpdateStackSetRequest & WithManagedExecution(ManagedExecutionT &&value)
UpdateStackSetRequest & WithAdministrationRoleARN(AdministrationRoleARNT &&value)
UpdateStackSetRequest & WithExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT &&value)
UpdateStackSetRequest & WithExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector