AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateStackSetRequest.h
1
6#pragma once
7#include <aws/cloudformation/CloudFormation_EXPORTS.h>
8#include <aws/cloudformation/CloudFormationRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/cloudformation/model/StackSetOperationPreferences.h>
12#include <aws/cloudformation/model/DeploymentTargets.h>
13#include <aws/cloudformation/model/PermissionModels.h>
14#include <aws/cloudformation/model/AutoDeployment.h>
15#include <aws/cloudformation/model/CallAs.h>
16#include <aws/cloudformation/model/ManagedExecution.h>
17#include <aws/cloudformation/model/Parameter.h>
18#include <aws/cloudformation/model/Capability.h>
19#include <aws/cloudformation/model/Tag.h>
20#include <utility>
21#include <aws/core/utils/UUID.h>
22
23namespace Aws
24{
25namespace CloudFormation
26{
27namespace Model
28{
29
33 {
34 public:
35 AWS_CLOUDFORMATION_API UpdateStackSetRequest() = 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 "UpdateStackSet"; }
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:
49
51
54 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
55 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
56 template<typename StackSetNameT = Aws::String>
57 void SetStackSetName(StackSetNameT&& value) { m_stackSetNameHasBeenSet = true; m_stackSetName = std::forward<StackSetNameT>(value); }
58 template<typename StackSetNameT = Aws::String>
59 UpdateStackSetRequest& WithStackSetName(StackSetNameT&& value) { SetStackSetName(std::forward<StackSetNameT>(value)); return *this;}
61
63
66 inline const Aws::String& GetDescription() const { return m_description; }
67 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
68 template<typename DescriptionT = Aws::String>
69 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
70 template<typename DescriptionT = Aws::String>
71 UpdateStackSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
73
75
81 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
82 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
83 template<typename TemplateBodyT = Aws::String>
84 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
85 template<typename TemplateBodyT = Aws::String>
86 UpdateStackSetRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
88
90
99 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
100 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
101 template<typename TemplateURLT = Aws::String>
102 void SetTemplateURL(TemplateURLT&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::forward<TemplateURLT>(value); }
103 template<typename TemplateURLT = Aws::String>
104 UpdateStackSetRequest& WithTemplateURL(TemplateURLT&& value) { SetTemplateURL(std::forward<TemplateURLT>(value)); return *this;}
106
108
114 inline bool GetUsePreviousTemplate() const { return m_usePreviousTemplate; }
115 inline bool UsePreviousTemplateHasBeenSet() const { return m_usePreviousTemplateHasBeenSet; }
116 inline void SetUsePreviousTemplate(bool value) { m_usePreviousTemplateHasBeenSet = true; m_usePreviousTemplate = value; }
117 inline UpdateStackSetRequest& WithUsePreviousTemplate(bool value) { SetUsePreviousTemplate(value); return *this;}
119
121
124 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
125 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
126 template<typename ParametersT = Aws::Vector<Parameter>>
127 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
128 template<typename ParametersT = Aws::Vector<Parameter>>
129 UpdateStackSetRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
130 template<typename ParametersT = Parameter>
131 UpdateStackSetRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
133
135
186 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
187 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
188 template<typename CapabilitiesT = Aws::Vector<Capability>>
189 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
190 template<typename CapabilitiesT = Aws::Vector<Capability>>
191 UpdateStackSetRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
192 inline UpdateStackSetRequest& AddCapabilities(Capability value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
194
196
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template<typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
223 template<typename TagsT = Aws::Vector<Tag>>
224 UpdateStackSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
225 template<typename TagsT = Tag>
226 UpdateStackSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
228
230
233 inline const StackSetOperationPreferences& GetOperationPreferences() const { return m_operationPreferences; }
234 inline bool OperationPreferencesHasBeenSet() const { return m_operationPreferencesHasBeenSet; }
235 template<typename OperationPreferencesT = StackSetOperationPreferences>
236 void SetOperationPreferences(OperationPreferencesT&& value) { m_operationPreferencesHasBeenSet = true; m_operationPreferences = std::forward<OperationPreferencesT>(value); }
237 template<typename OperationPreferencesT = StackSetOperationPreferences>
238 UpdateStackSetRequest& WithOperationPreferences(OperationPreferencesT&& value) { SetOperationPreferences(std::forward<OperationPreferencesT>(value)); return *this;}
240
242
254 inline const Aws::String& GetAdministrationRoleARN() const { return m_administrationRoleARN; }
255 inline bool AdministrationRoleARNHasBeenSet() const { return m_administrationRoleARNHasBeenSet; }
256 template<typename AdministrationRoleARNT = Aws::String>
257 void SetAdministrationRoleARN(AdministrationRoleARNT&& value) { m_administrationRoleARNHasBeenSet = true; m_administrationRoleARN = std::forward<AdministrationRoleARNT>(value); }
258 template<typename AdministrationRoleARNT = Aws::String>
259 UpdateStackSetRequest& WithAdministrationRoleARN(AdministrationRoleARNT&& value) { SetAdministrationRoleARN(std::forward<AdministrationRoleARNT>(value)); return *this;}
261
263
275 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
276 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
277 template<typename ExecutionRoleNameT = Aws::String>
278 void SetExecutionRoleName(ExecutionRoleNameT&& value) { m_executionRoleNameHasBeenSet = true; m_executionRoleName = std::forward<ExecutionRoleNameT>(value); }
279 template<typename ExecutionRoleNameT = Aws::String>
280 UpdateStackSetRequest& WithExecutionRoleName(ExecutionRoleNameT&& value) { SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value)); return *this;}
282
284
298 inline const DeploymentTargets& GetDeploymentTargets() const { return m_deploymentTargets; }
299 inline bool DeploymentTargetsHasBeenSet() const { return m_deploymentTargetsHasBeenSet; }
300 template<typename DeploymentTargetsT = DeploymentTargets>
301 void SetDeploymentTargets(DeploymentTargetsT&& value) { m_deploymentTargetsHasBeenSet = true; m_deploymentTargets = std::forward<DeploymentTargetsT>(value); }
302 template<typename DeploymentTargetsT = DeploymentTargets>
303 UpdateStackSetRequest& WithDeploymentTargets(DeploymentTargetsT&& value) { SetDeploymentTargets(std::forward<DeploymentTargetsT>(value)); return *this;}
305
307
321 inline PermissionModels GetPermissionModel() const { return m_permissionModel; }
322 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
323 inline void SetPermissionModel(PermissionModels value) { m_permissionModelHasBeenSet = true; m_permissionModel = value; }
326
328
338 inline const AutoDeployment& GetAutoDeployment() const { return m_autoDeployment; }
339 inline bool AutoDeploymentHasBeenSet() const { return m_autoDeploymentHasBeenSet; }
340 template<typename AutoDeploymentT = AutoDeployment>
341 void SetAutoDeployment(AutoDeploymentT&& value) { m_autoDeploymentHasBeenSet = true; m_autoDeployment = std::forward<AutoDeploymentT>(value); }
342 template<typename AutoDeploymentT = AutoDeployment>
343 UpdateStackSetRequest& WithAutoDeployment(AutoDeploymentT&& value) { SetAutoDeployment(std::forward<AutoDeploymentT>(value)); return *this;}
345
347
357 inline const Aws::String& GetOperationId() const { return m_operationId; }
358 inline bool OperationIdHasBeenSet() const { return m_operationIdHasBeenSet; }
359 template<typename OperationIdT = Aws::String>
360 void SetOperationId(OperationIdT&& value) { m_operationIdHasBeenSet = true; m_operationId = std::forward<OperationIdT>(value); }
361 template<typename OperationIdT = Aws::String>
362 UpdateStackSetRequest& WithOperationId(OperationIdT&& value) { SetOperationId(std::forward<OperationIdT>(value)); return *this;}
364
366
382 inline const Aws::Vector<Aws::String>& GetAccounts() const { return m_accounts; }
383 inline bool AccountsHasBeenSet() const { return m_accountsHasBeenSet; }
384 template<typename AccountsT = Aws::Vector<Aws::String>>
385 void SetAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts = std::forward<AccountsT>(value); }
386 template<typename AccountsT = Aws::Vector<Aws::String>>
387 UpdateStackSetRequest& WithAccounts(AccountsT&& value) { SetAccounts(std::forward<AccountsT>(value)); return *this;}
388 template<typename AccountsT = Aws::String>
389 UpdateStackSetRequest& AddAccounts(AccountsT&& value) { m_accountsHasBeenSet = true; m_accounts.emplace_back(std::forward<AccountsT>(value)); return *this; }
391
393
408 inline const Aws::Vector<Aws::String>& GetRegions() const { return m_regions; }
409 inline bool RegionsHasBeenSet() const { return m_regionsHasBeenSet; }
410 template<typename RegionsT = Aws::Vector<Aws::String>>
411 void SetRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions = std::forward<RegionsT>(value); }
412 template<typename RegionsT = Aws::Vector<Aws::String>>
413 UpdateStackSetRequest& WithRegions(RegionsT&& value) { SetRegions(std::forward<RegionsT>(value)); return *this;}
414 template<typename RegionsT = Aws::String>
415 UpdateStackSetRequest& AddRegions(RegionsT&& value) { m_regionsHasBeenSet = true; m_regions.emplace_back(std::forward<RegionsT>(value)); return *this; }
417
419
433 inline CallAs GetCallAs() const { return m_callAs; }
434 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
435 inline void SetCallAs(CallAs value) { m_callAsHasBeenSet = true; m_callAs = value; }
436 inline UpdateStackSetRequest& WithCallAs(CallAs value) { SetCallAs(value); return *this;}
438
440
444 inline const ManagedExecution& GetManagedExecution() const { return m_managedExecution; }
445 inline bool ManagedExecutionHasBeenSet() const { return m_managedExecutionHasBeenSet; }
446 template<typename ManagedExecutionT = ManagedExecution>
447 void SetManagedExecution(ManagedExecutionT&& value) { m_managedExecutionHasBeenSet = true; m_managedExecution = std::forward<ManagedExecutionT>(value); }
448 template<typename ManagedExecutionT = ManagedExecution>
449 UpdateStackSetRequest& WithManagedExecution(ManagedExecutionT&& value) { SetManagedExecution(std::forward<ManagedExecutionT>(value)); return *this;}
451 private:
452
453 Aws::String m_stackSetName;
454 bool m_stackSetNameHasBeenSet = false;
455
456 Aws::String m_description;
457 bool m_descriptionHasBeenSet = false;
458
459 Aws::String m_templateBody;
460 bool m_templateBodyHasBeenSet = false;
461
462 Aws::String m_templateURL;
463 bool m_templateURLHasBeenSet = false;
464
465 bool m_usePreviousTemplate{false};
466 bool m_usePreviousTemplateHasBeenSet = false;
467
468 Aws::Vector<Parameter> m_parameters;
469 bool m_parametersHasBeenSet = false;
470
471 Aws::Vector<Capability> m_capabilities;
472 bool m_capabilitiesHasBeenSet = false;
473
474 Aws::Vector<Tag> m_tags;
475 bool m_tagsHasBeenSet = false;
476
477 StackSetOperationPreferences m_operationPreferences;
478 bool m_operationPreferencesHasBeenSet = false;
479
480 Aws::String m_administrationRoleARN;
481 bool m_administrationRoleARNHasBeenSet = false;
482
483 Aws::String m_executionRoleName;
484 bool m_executionRoleNameHasBeenSet = false;
485
486 DeploymentTargets m_deploymentTargets;
487 bool m_deploymentTargetsHasBeenSet = false;
488
490 bool m_permissionModelHasBeenSet = false;
491
492 AutoDeployment m_autoDeployment;
493 bool m_autoDeploymentHasBeenSet = false;
494
496 bool m_operationIdHasBeenSet = true;
497
498 Aws::Vector<Aws::String> m_accounts;
499 bool m_accountsHasBeenSet = false;
500
501 Aws::Vector<Aws::String> m_regions;
502 bool m_regionsHasBeenSet = false;
503
504 CallAs m_callAs{CallAs::NOT_SET};
505 bool m_callAsHasBeenSet = false;
506
507 ManagedExecution m_managedExecution;
508 bool m_managedExecutionHasBeenSet = false;
509 };
510
511} // namespace Model
512} // namespace CloudFormation
513} // namespace Aws
UpdateStackSetRequest & WithTags(TagsT &&value)
UpdateStackSetRequest & WithAccounts(AccountsT &&value)
void SetAdministrationRoleARN(AdministrationRoleARNT &&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)
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)
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)
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)
UpdateStackSetRequest & WithManagedExecution(ManagedExecutionT &&value)
UpdateStackSetRequest & WithAdministrationRoleARN(AdministrationRoleARNT &&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