AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
CreateStackSetRequest.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/ManagedExecution.h>
13#include <aws/cloudformation/model/Parameter.h>
14#include <aws/cloudformation/model/PermissionModels.h>
15#include <aws/cloudformation/model/Tag.h>
16#include <aws/core/utils/UUID.h>
17#include <aws/core/utils/memory/stl/AWSString.h>
18#include <aws/core/utils/memory/stl/AWSVector.h>
19
20#include <utility>
21
22namespace Aws {
23namespace CloudFormation {
24namespace Model {
25
29 public:
30 AWS_CLOUDFORMATION_API CreateStackSetRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateStackSet"; }
37
38 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
42
43 public:
45
51 inline const Aws::String& GetStackSetName() const { return m_stackSetName; }
52 inline bool StackSetNameHasBeenSet() const { return m_stackSetNameHasBeenSet; }
53 template <typename StackSetNameT = Aws::String>
54 void SetStackSetName(StackSetNameT&& value) {
55 m_stackSetNameHasBeenSet = true;
56 m_stackSetName = std::forward<StackSetNameT>(value);
57 }
58 template <typename StackSetNameT = Aws::String>
59 CreateStackSetRequest& WithStackSetName(StackSetNameT&& value) {
60 SetStackSetName(std::forward<StackSetNameT>(value));
61 return *this;
62 }
64
66
70 inline const Aws::String& GetDescription() const { return m_description; }
71 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
72 template <typename DescriptionT = Aws::String>
73 void SetDescription(DescriptionT&& value) {
74 m_descriptionHasBeenSet = true;
75 m_description = std::forward<DescriptionT>(value);
76 }
77 template <typename DescriptionT = Aws::String>
78 CreateStackSetRequest& WithDescription(DescriptionT&& value) {
79 SetDescription(std::forward<DescriptionT>(value));
80 return *this;
81 }
83
85
91 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
92 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
93 template <typename TemplateBodyT = Aws::String>
94 void SetTemplateBody(TemplateBodyT&& value) {
95 m_templateBodyHasBeenSet = true;
96 m_templateBody = std::forward<TemplateBodyT>(value);
97 }
98 template <typename TemplateBodyT = Aws::String>
99 CreateStackSetRequest& WithTemplateBody(TemplateBodyT&& value) {
100 SetTemplateBody(std::forward<TemplateBodyT>(value));
101 return *this;
102 }
104
106
114 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
115 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
116 template <typename TemplateURLT = Aws::String>
117 void SetTemplateURL(TemplateURLT&& value) {
118 m_templateURLHasBeenSet = true;
119 m_templateURL = std::forward<TemplateURLT>(value);
120 }
121 template <typename TemplateURLT = Aws::String>
122 CreateStackSetRequest& WithTemplateURL(TemplateURLT&& value) {
123 SetTemplateURL(std::forward<TemplateURLT>(value));
124 return *this;
125 }
127
129
133 inline const Aws::String& GetStackId() const { return m_stackId; }
134 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
135 template <typename StackIdT = Aws::String>
136 void SetStackId(StackIdT&& value) {
137 m_stackIdHasBeenSet = true;
138 m_stackId = std::forward<StackIdT>(value);
139 }
140 template <typename StackIdT = Aws::String>
142 SetStackId(std::forward<StackIdT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
152 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
153 template <typename ParametersT = Aws::Vector<Parameter>>
154 void SetParameters(ParametersT&& value) {
155 m_parametersHasBeenSet = true;
156 m_parameters = std::forward<ParametersT>(value);
157 }
158 template <typename ParametersT = Aws::Vector<Parameter>>
159 CreateStackSetRequest& WithParameters(ParametersT&& value) {
160 SetParameters(std::forward<ParametersT>(value));
161 return *this;
162 }
163 template <typename ParametersT = Parameter>
164 CreateStackSetRequest& AddParameters(ParametersT&& value) {
165 m_parametersHasBeenSet = true;
166 m_parameters.emplace_back(std::forward<ParametersT>(value));
167 return *this;
168 }
170
172
228 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
229 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
230 template <typename CapabilitiesT = Aws::Vector<Capability>>
231 void SetCapabilities(CapabilitiesT&& value) {
232 m_capabilitiesHasBeenSet = true;
233 m_capabilities = std::forward<CapabilitiesT>(value);
234 }
235 template <typename CapabilitiesT = Aws::Vector<Capability>>
236 CreateStackSetRequest& WithCapabilities(CapabilitiesT&& value) {
237 SetCapabilities(std::forward<CapabilitiesT>(value));
238 return *this;
239 }
241 m_capabilitiesHasBeenSet = true;
242 m_capabilities.push_back(value);
243 return *this;
244 }
246
248
257 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
258 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
259 template <typename TagsT = Aws::Vector<Tag>>
260 void SetTags(TagsT&& value) {
261 m_tagsHasBeenSet = true;
262 m_tags = std::forward<TagsT>(value);
263 }
264 template <typename TagsT = Aws::Vector<Tag>>
266 SetTags(std::forward<TagsT>(value));
267 return *this;
268 }
269 template <typename TagsT = Tag>
271 m_tagsHasBeenSet = true;
272 m_tags.emplace_back(std::forward<TagsT>(value));
273 return *this;
274 }
276
278
287 inline const Aws::String& GetAdministrationRoleARN() const { return m_administrationRoleARN; }
288 inline bool AdministrationRoleARNHasBeenSet() const { return m_administrationRoleARNHasBeenSet; }
289 template <typename AdministrationRoleARNT = Aws::String>
290 void SetAdministrationRoleARN(AdministrationRoleARNT&& value) {
291 m_administrationRoleARNHasBeenSet = true;
292 m_administrationRoleARN = std::forward<AdministrationRoleARNT>(value);
293 }
294 template <typename AdministrationRoleARNT = Aws::String>
295 CreateStackSetRequest& WithAdministrationRoleARN(AdministrationRoleARNT&& value) {
296 SetAdministrationRoleARN(std::forward<AdministrationRoleARNT>(value));
297 return *this;
298 }
300
302
314 inline const Aws::String& GetExecutionRoleName() const { return m_executionRoleName; }
315 inline bool ExecutionRoleNameHasBeenSet() const { return m_executionRoleNameHasBeenSet; }
316 template <typename ExecutionRoleNameT = Aws::String>
317 void SetExecutionRoleName(ExecutionRoleNameT&& value) {
318 m_executionRoleNameHasBeenSet = true;
319 m_executionRoleName = std::forward<ExecutionRoleNameT>(value);
320 }
321 template <typename ExecutionRoleNameT = Aws::String>
322 CreateStackSetRequest& WithExecutionRoleName(ExecutionRoleNameT&& value) {
323 SetExecutionRoleName(std::forward<ExecutionRoleNameT>(value));
324 return *this;
325 }
327
329
343 inline PermissionModels GetPermissionModel() const { return m_permissionModel; }
344 inline bool PermissionModelHasBeenSet() const { return m_permissionModelHasBeenSet; }
346 m_permissionModelHasBeenSet = true;
347 m_permissionModel = value;
348 }
350 SetPermissionModel(value);
351 return *this;
352 }
354
356
365 inline const AutoDeployment& GetAutoDeployment() const { return m_autoDeployment; }
366 inline bool AutoDeploymentHasBeenSet() const { return m_autoDeploymentHasBeenSet; }
367 template <typename AutoDeploymentT = AutoDeployment>
368 void SetAutoDeployment(AutoDeploymentT&& value) {
369 m_autoDeploymentHasBeenSet = true;
370 m_autoDeployment = std::forward<AutoDeploymentT>(value);
371 }
372 template <typename AutoDeploymentT = AutoDeployment>
373 CreateStackSetRequest& WithAutoDeployment(AutoDeploymentT&& value) {
374 SetAutoDeployment(std::forward<AutoDeploymentT>(value));
375 return *this;
376 }
378
380
398 inline CallAs GetCallAs() const { return m_callAs; }
399 inline bool CallAsHasBeenSet() const { return m_callAsHasBeenSet; }
400 inline void SetCallAs(CallAs value) {
401 m_callAsHasBeenSet = true;
402 m_callAs = value;
403 }
405 SetCallAs(value);
406 return *this;
407 }
409
411
419 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
420 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
421 template <typename ClientRequestTokenT = Aws::String>
422 void SetClientRequestToken(ClientRequestTokenT&& value) {
423 m_clientRequestTokenHasBeenSet = true;
424 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
425 }
426 template <typename ClientRequestTokenT = Aws::String>
427 CreateStackSetRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
428 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
429 return *this;
430 }
432
434
438 inline const ManagedExecution& GetManagedExecution() const { return m_managedExecution; }
439 inline bool ManagedExecutionHasBeenSet() const { return m_managedExecutionHasBeenSet; }
440 template <typename ManagedExecutionT = ManagedExecution>
441 void SetManagedExecution(ManagedExecutionT&& value) {
442 m_managedExecutionHasBeenSet = true;
443 m_managedExecution = std::forward<ManagedExecutionT>(value);
444 }
445 template <typename ManagedExecutionT = ManagedExecution>
446 CreateStackSetRequest& WithManagedExecution(ManagedExecutionT&& value) {
447 SetManagedExecution(std::forward<ManagedExecutionT>(value));
448 return *this;
449 }
451
453
461 inline const Aws::String& GetExecutionRoleTemplateBody() const { return m_executionRoleTemplateBody; }
462 inline bool ExecutionRoleTemplateBodyHasBeenSet() const { return m_executionRoleTemplateBodyHasBeenSet; }
463 template <typename ExecutionRoleTemplateBodyT = Aws::String>
464 void SetExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT&& value) {
465 m_executionRoleTemplateBodyHasBeenSet = true;
466 m_executionRoleTemplateBody = std::forward<ExecutionRoleTemplateBodyT>(value);
467 }
468 template <typename ExecutionRoleTemplateBodyT = Aws::String>
469 CreateStackSetRequest& WithExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT&& value) {
470 SetExecutionRoleTemplateBody(std::forward<ExecutionRoleTemplateBodyT>(value));
471 return *this;
472 }
474
476
485 inline const Aws::String& GetExecutionRoleTemplateUrl() const { return m_executionRoleTemplateUrl; }
486 inline bool ExecutionRoleTemplateUrlHasBeenSet() const { return m_executionRoleTemplateUrlHasBeenSet; }
487 template <typename ExecutionRoleTemplateUrlT = Aws::String>
488 void SetExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT&& value) {
489 m_executionRoleTemplateUrlHasBeenSet = true;
490 m_executionRoleTemplateUrl = std::forward<ExecutionRoleTemplateUrlT>(value);
491 }
492 template <typename ExecutionRoleTemplateUrlT = Aws::String>
493 CreateStackSetRequest& WithExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT&& value) {
494 SetExecutionRoleTemplateUrl(std::forward<ExecutionRoleTemplateUrlT>(value));
495 return *this;
496 }
498
500
505 inline const Aws::String& GetStackSetOutputBucket() const { return m_stackSetOutputBucket; }
506 inline bool StackSetOutputBucketHasBeenSet() const { return m_stackSetOutputBucketHasBeenSet; }
507 template <typename StackSetOutputBucketT = Aws::String>
508 void SetStackSetOutputBucket(StackSetOutputBucketT&& value) {
509 m_stackSetOutputBucketHasBeenSet = true;
510 m_stackSetOutputBucket = std::forward<StackSetOutputBucketT>(value);
511 }
512 template <typename StackSetOutputBucketT = Aws::String>
513 CreateStackSetRequest& WithStackSetOutputBucket(StackSetOutputBucketT&& value) {
514 SetStackSetOutputBucket(std::forward<StackSetOutputBucketT>(value));
515 return *this;
516 }
518 private:
519 Aws::String m_stackSetName;
520
521 Aws::String m_description;
522
523 Aws::String m_templateBody;
524
525 Aws::String m_templateURL;
526
527 Aws::String m_stackId;
528
529 Aws::Vector<Parameter> m_parameters;
530
531 Aws::Vector<Capability> m_capabilities;
532
533 Aws::Vector<Tag> m_tags;
534
535 Aws::String m_administrationRoleARN;
536
537 Aws::String m_executionRoleName;
538
540
541 AutoDeployment m_autoDeployment;
542
543 CallAs m_callAs{CallAs::NOT_SET};
544
545 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
546
547 ManagedExecution m_managedExecution;
548
549 Aws::String m_executionRoleTemplateBody;
550
551 Aws::String m_executionRoleTemplateUrl;
552
553 Aws::String m_stackSetOutputBucket;
554 bool m_stackSetNameHasBeenSet = false;
555 bool m_descriptionHasBeenSet = false;
556 bool m_templateBodyHasBeenSet = false;
557 bool m_templateURLHasBeenSet = false;
558 bool m_stackIdHasBeenSet = false;
559 bool m_parametersHasBeenSet = false;
560 bool m_capabilitiesHasBeenSet = false;
561 bool m_tagsHasBeenSet = false;
562 bool m_administrationRoleARNHasBeenSet = false;
563 bool m_executionRoleNameHasBeenSet = false;
564 bool m_permissionModelHasBeenSet = false;
565 bool m_autoDeploymentHasBeenSet = false;
566 bool m_callAsHasBeenSet = false;
567 bool m_clientRequestTokenHasBeenSet = true;
568 bool m_managedExecutionHasBeenSet = false;
569 bool m_executionRoleTemplateBodyHasBeenSet = false;
570 bool m_executionRoleTemplateUrlHasBeenSet = false;
571 bool m_stackSetOutputBucketHasBeenSet = false;
572};
573
574} // namespace Model
575} // namespace CloudFormation
576} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateStackSetRequest & WithStackSetOutputBucket(StackSetOutputBucketT &&value)
CreateStackSetRequest & WithCapabilities(CapabilitiesT &&value)
CreateStackSetRequest & WithClientRequestToken(ClientRequestTokenT &&value)
CreateStackSetRequest & WithManagedExecution(ManagedExecutionT &&value)
CreateStackSetRequest & WithTemplateURL(TemplateURLT &&value)
CreateStackSetRequest & AddParameters(ParametersT &&value)
void SetStackSetOutputBucket(StackSetOutputBucketT &&value)
CreateStackSetRequest & WithExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT &&value)
CreateStackSetRequest & WithDescription(DescriptionT &&value)
CreateStackSetRequest & WithTemplateBody(TemplateBodyT &&value)
CreateStackSetRequest & WithTags(TagsT &&value)
AWS_CLOUDFORMATION_API CreateStackSetRequest()=default
CreateStackSetRequest & WithStackSetName(StackSetNameT &&value)
CreateStackSetRequest & WithExecutionRoleName(ExecutionRoleNameT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateStackSetRequest & WithExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT &&value)
CreateStackSetRequest & WithStackId(StackIdT &&value)
const Aws::Vector< Parameter > & GetParameters() const
const Aws::Vector< Capability > & GetCapabilities() const
void SetExecutionRoleTemplateUrl(ExecutionRoleTemplateUrlT &&value)
CreateStackSetRequest & WithAdministrationRoleARN(AdministrationRoleARNT &&value)
CreateStackSetRequest & WithAutoDeployment(AutoDeploymentT &&value)
CreateStackSetRequest & WithParameters(ParametersT &&value)
void SetAdministrationRoleARN(AdministrationRoleARNT &&value)
CreateStackSetRequest & AddTags(TagsT &&value)
void SetExecutionRoleTemplateBody(ExecutionRoleTemplateBodyT &&value)
CreateStackSetRequest & AddCapabilities(Capability value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
CreateStackSetRequest & WithCallAs(CallAs value)
CreateStackSetRequest & WithPermissionModel(PermissionModels 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