AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
UpdateStackRequest.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/DeploymentConfig.h>
11#include <aws/cloudformation/model/Parameter.h>
12#include <aws/cloudformation/model/RollbackConfiguration.h>
13#include <aws/cloudformation/model/Tag.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace CloudFormation {
21namespace Model {
22
29 public:
30 AWS_CLOUDFORMATION_API UpdateStackRequest() = 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 "UpdateStack"; }
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
48 inline const Aws::String& GetStackName() const { return m_stackName; }
49 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
50 template <typename StackNameT = Aws::String>
51 void SetStackName(StackNameT&& value) {
52 m_stackNameHasBeenSet = true;
53 m_stackName = std::forward<StackNameT>(value);
54 }
55 template <typename StackNameT = Aws::String>
56 UpdateStackRequest& WithStackName(StackNameT&& value) {
57 SetStackName(std::forward<StackNameT>(value));
58 return *this;
59 }
61
63
70 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
71 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
72 template <typename TemplateBodyT = Aws::String>
73 void SetTemplateBody(TemplateBodyT&& value) {
74 m_templateBodyHasBeenSet = true;
75 m_templateBody = std::forward<TemplateBodyT>(value);
76 }
77 template <typename TemplateBodyT = Aws::String>
78 UpdateStackRequest& WithTemplateBody(TemplateBodyT&& value) {
79 SetTemplateBody(std::forward<TemplateBodyT>(value));
80 return *this;
81 }
83
85
93 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
94 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
95 template <typename TemplateURLT = Aws::String>
96 void SetTemplateURL(TemplateURLT&& value) {
97 m_templateURLHasBeenSet = true;
98 m_templateURL = std::forward<TemplateURLT>(value);
99 }
100 template <typename TemplateURLT = Aws::String>
101 UpdateStackRequest& WithTemplateURL(TemplateURLT&& value) {
102 SetTemplateURL(std::forward<TemplateURLT>(value));
103 return *this;
104 }
106
108
120 inline bool GetUsePreviousTemplate() const { return m_usePreviousTemplate; }
121 inline bool UsePreviousTemplateHasBeenSet() const { return m_usePreviousTemplateHasBeenSet; }
122 inline void SetUsePreviousTemplate(bool value) {
123 m_usePreviousTemplateHasBeenSet = true;
124 m_usePreviousTemplate = value;
125 }
128 return *this;
129 }
131
133
141 inline const Aws::String& GetStackPolicyDuringUpdateBody() const { return m_stackPolicyDuringUpdateBody; }
142 inline bool StackPolicyDuringUpdateBodyHasBeenSet() const { return m_stackPolicyDuringUpdateBodyHasBeenSet; }
143 template <typename StackPolicyDuringUpdateBodyT = Aws::String>
144 void SetStackPolicyDuringUpdateBody(StackPolicyDuringUpdateBodyT&& value) {
145 m_stackPolicyDuringUpdateBodyHasBeenSet = true;
146 m_stackPolicyDuringUpdateBody = std::forward<StackPolicyDuringUpdateBodyT>(value);
147 }
148 template <typename StackPolicyDuringUpdateBodyT = Aws::String>
149 UpdateStackRequest& WithStackPolicyDuringUpdateBody(StackPolicyDuringUpdateBodyT&& value) {
150 SetStackPolicyDuringUpdateBody(std::forward<StackPolicyDuringUpdateBodyT>(value));
151 return *this;
152 }
154
156
167 inline const Aws::String& GetStackPolicyDuringUpdateURL() const { return m_stackPolicyDuringUpdateURL; }
168 inline bool StackPolicyDuringUpdateURLHasBeenSet() const { return m_stackPolicyDuringUpdateURLHasBeenSet; }
169 template <typename StackPolicyDuringUpdateURLT = Aws::String>
170 void SetStackPolicyDuringUpdateURL(StackPolicyDuringUpdateURLT&& value) {
171 m_stackPolicyDuringUpdateURLHasBeenSet = true;
172 m_stackPolicyDuringUpdateURL = std::forward<StackPolicyDuringUpdateURLT>(value);
173 }
174 template <typename StackPolicyDuringUpdateURLT = Aws::String>
175 UpdateStackRequest& WithStackPolicyDuringUpdateURL(StackPolicyDuringUpdateURLT&& value) {
176 SetStackPolicyDuringUpdateURL(std::forward<StackPolicyDuringUpdateURLT>(value));
177 return *this;
178 }
180
182
188 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
189 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
190 template <typename ParametersT = Aws::Vector<Parameter>>
191 void SetParameters(ParametersT&& value) {
192 m_parametersHasBeenSet = true;
193 m_parameters = std::forward<ParametersT>(value);
194 }
195 template <typename ParametersT = Aws::Vector<Parameter>>
196 UpdateStackRequest& WithParameters(ParametersT&& value) {
197 SetParameters(std::forward<ParametersT>(value));
198 return *this;
199 }
200 template <typename ParametersT = Parameter>
201 UpdateStackRequest& AddParameters(ParametersT&& value) {
202 m_parametersHasBeenSet = true;
203 m_parameters.emplace_back(std::forward<ParametersT>(value));
204 return *this;
205 }
207
209
271 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
272 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
273 template <typename CapabilitiesT = Aws::Vector<Capability>>
274 void SetCapabilities(CapabilitiesT&& value) {
275 m_capabilitiesHasBeenSet = true;
276 m_capabilities = std::forward<CapabilitiesT>(value);
277 }
278 template <typename CapabilitiesT = Aws::Vector<Capability>>
279 UpdateStackRequest& WithCapabilities(CapabilitiesT&& value) {
280 SetCapabilities(std::forward<CapabilitiesT>(value));
281 return *this;
282 }
284 m_capabilitiesHasBeenSet = true;
285 m_capabilities.push_back(value);
286 return *this;
287 }
289
291
303 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
304 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
305 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
306 void SetResourceTypes(ResourceTypesT&& value) {
307 m_resourceTypesHasBeenSet = true;
308 m_resourceTypes = std::forward<ResourceTypesT>(value);
309 }
310 template <typename ResourceTypesT = Aws::Vector<Aws::String>>
311 UpdateStackRequest& WithResourceTypes(ResourceTypesT&& value) {
312 SetResourceTypes(std::forward<ResourceTypesT>(value));
313 return *this;
314 }
315 template <typename ResourceTypesT = Aws::String>
316 UpdateStackRequest& AddResourceTypes(ResourceTypesT&& value) {
317 m_resourceTypesHasBeenSet = true;
318 m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value));
319 return *this;
320 }
322
324
335 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
336 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
337 template <typename RoleARNT = Aws::String>
338 void SetRoleARN(RoleARNT&& value) {
339 m_roleARNHasBeenSet = true;
340 m_roleARN = std::forward<RoleARNT>(value);
341 }
342 template <typename RoleARNT = Aws::String>
343 UpdateStackRequest& WithRoleARN(RoleARNT&& value) {
344 SetRoleARN(std::forward<RoleARNT>(value));
345 return *this;
346 }
348
350
354 inline const RollbackConfiguration& GetRollbackConfiguration() const { return m_rollbackConfiguration; }
355 inline bool RollbackConfigurationHasBeenSet() const { return m_rollbackConfigurationHasBeenSet; }
356 template <typename RollbackConfigurationT = RollbackConfiguration>
357 void SetRollbackConfiguration(RollbackConfigurationT&& value) {
358 m_rollbackConfigurationHasBeenSet = true;
359 m_rollbackConfiguration = std::forward<RollbackConfigurationT>(value);
360 }
361 template <typename RollbackConfigurationT = RollbackConfiguration>
362 UpdateStackRequest& WithRollbackConfiguration(RollbackConfigurationT&& value) {
363 SetRollbackConfiguration(std::forward<RollbackConfigurationT>(value));
364 return *this;
365 }
367
369
377 inline const Aws::String& GetStackPolicyBody() const { return m_stackPolicyBody; }
378 inline bool StackPolicyBodyHasBeenSet() const { return m_stackPolicyBodyHasBeenSet; }
379 template <typename StackPolicyBodyT = Aws::String>
380 void SetStackPolicyBody(StackPolicyBodyT&& value) {
381 m_stackPolicyBodyHasBeenSet = true;
382 m_stackPolicyBody = std::forward<StackPolicyBodyT>(value);
383 }
384 template <typename StackPolicyBodyT = Aws::String>
385 UpdateStackRequest& WithStackPolicyBody(StackPolicyBodyT&& value) {
386 SetStackPolicyBody(std::forward<StackPolicyBodyT>(value));
387 return *this;
388 }
390
392
403 inline const Aws::String& GetStackPolicyURL() const { return m_stackPolicyURL; }
404 inline bool StackPolicyURLHasBeenSet() const { return m_stackPolicyURLHasBeenSet; }
405 template <typename StackPolicyURLT = Aws::String>
406 void SetStackPolicyURL(StackPolicyURLT&& value) {
407 m_stackPolicyURLHasBeenSet = true;
408 m_stackPolicyURL = std::forward<StackPolicyURLT>(value);
409 }
410 template <typename StackPolicyURLT = Aws::String>
411 UpdateStackRequest& WithStackPolicyURL(StackPolicyURLT&& value) {
412 SetStackPolicyURL(std::forward<StackPolicyURLT>(value));
413 return *this;
414 }
416
418
423 inline const Aws::Vector<Aws::String>& GetNotificationARNs() const { return m_notificationARNs; }
424 inline bool NotificationARNsHasBeenSet() const { return m_notificationARNsHasBeenSet; }
425 template <typename NotificationARNsT = Aws::Vector<Aws::String>>
426 void SetNotificationARNs(NotificationARNsT&& value) {
427 m_notificationARNsHasBeenSet = true;
428 m_notificationARNs = std::forward<NotificationARNsT>(value);
429 }
430 template <typename NotificationARNsT = Aws::Vector<Aws::String>>
431 UpdateStackRequest& WithNotificationARNs(NotificationARNsT&& value) {
432 SetNotificationARNs(std::forward<NotificationARNsT>(value));
433 return *this;
434 }
435 template <typename NotificationARNsT = Aws::String>
436 UpdateStackRequest& AddNotificationARNs(NotificationARNsT&& value) {
437 m_notificationARNsHasBeenSet = true;
438 m_notificationARNs.emplace_back(std::forward<NotificationARNsT>(value));
439 return *this;
440 }
442
444
451 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
452 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
453 template <typename TagsT = Aws::Vector<Tag>>
454 void SetTags(TagsT&& value) {
455 m_tagsHasBeenSet = true;
456 m_tags = std::forward<TagsT>(value);
457 }
458 template <typename TagsT = Aws::Vector<Tag>>
459 UpdateStackRequest& WithTags(TagsT&& value) {
460 SetTags(std::forward<TagsT>(value));
461 return *this;
462 }
463 template <typename TagsT = Tag>
464 UpdateStackRequest& AddTags(TagsT&& value) {
465 m_tagsHasBeenSet = true;
466 m_tags.emplace_back(std::forward<TagsT>(value));
467 return *this;
468 }
470
472
476 inline bool GetDisableRollback() const { return m_disableRollback; }
477 inline bool DisableRollbackHasBeenSet() const { return m_disableRollbackHasBeenSet; }
478 inline void SetDisableRollback(bool value) {
479 m_disableRollbackHasBeenSet = true;
480 m_disableRollback = value;
481 }
483 SetDisableRollback(value);
484 return *this;
485 }
487
489
507 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
508 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
509 template <typename ClientRequestTokenT = Aws::String>
510 void SetClientRequestToken(ClientRequestTokenT&& value) {
511 m_clientRequestTokenHasBeenSet = true;
512 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
513 }
514 template <typename ClientRequestTokenT = Aws::String>
515 UpdateStackRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
516 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
517 return *this;
518 }
520
522
527 inline bool GetRetainExceptOnCreate() const { return m_retainExceptOnCreate; }
528 inline bool RetainExceptOnCreateHasBeenSet() const { return m_retainExceptOnCreateHasBeenSet; }
529 inline void SetRetainExceptOnCreate(bool value) {
530 m_retainExceptOnCreateHasBeenSet = true;
531 m_retainExceptOnCreate = value;
532 }
535 return *this;
536 }
538
540
544 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
545 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
546 template <typename DeploymentConfigT = DeploymentConfig>
547 void SetDeploymentConfig(DeploymentConfigT&& value) {
548 m_deploymentConfigHasBeenSet = true;
549 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
550 }
551 template <typename DeploymentConfigT = DeploymentConfig>
552 UpdateStackRequest& WithDeploymentConfig(DeploymentConfigT&& value) {
553 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
554 return *this;
555 }
557
559
563 inline bool GetDisableValidation() const { return m_disableValidation; }
564 inline bool DisableValidationHasBeenSet() const { return m_disableValidationHasBeenSet; }
565 inline void SetDisableValidation(bool value) {
566 m_disableValidationHasBeenSet = true;
567 m_disableValidation = value;
568 }
571 return *this;
572 }
574 private:
575 Aws::String m_stackName;
576
577 Aws::String m_templateBody;
578
579 Aws::String m_templateURL;
580
581 bool m_usePreviousTemplate{false};
582
583 Aws::String m_stackPolicyDuringUpdateBody;
584
585 Aws::String m_stackPolicyDuringUpdateURL;
586
587 Aws::Vector<Parameter> m_parameters;
588
589 Aws::Vector<Capability> m_capabilities;
590
591 Aws::Vector<Aws::String> m_resourceTypes;
592
593 Aws::String m_roleARN;
594
595 RollbackConfiguration m_rollbackConfiguration;
596
597 Aws::String m_stackPolicyBody;
598
599 Aws::String m_stackPolicyURL;
600
601 Aws::Vector<Aws::String> m_notificationARNs;
602
603 Aws::Vector<Tag> m_tags;
604
605 bool m_disableRollback{false};
606
607 Aws::String m_clientRequestToken;
608
609 bool m_retainExceptOnCreate{false};
610
611 DeploymentConfig m_deploymentConfig;
612
613 bool m_disableValidation{false};
614 bool m_stackNameHasBeenSet = false;
615 bool m_templateBodyHasBeenSet = false;
616 bool m_templateURLHasBeenSet = false;
617 bool m_usePreviousTemplateHasBeenSet = false;
618 bool m_stackPolicyDuringUpdateBodyHasBeenSet = false;
619 bool m_stackPolicyDuringUpdateURLHasBeenSet = false;
620 bool m_parametersHasBeenSet = false;
621 bool m_capabilitiesHasBeenSet = false;
622 bool m_resourceTypesHasBeenSet = false;
623 bool m_roleARNHasBeenSet = false;
624 bool m_rollbackConfigurationHasBeenSet = false;
625 bool m_stackPolicyBodyHasBeenSet = false;
626 bool m_stackPolicyURLHasBeenSet = false;
627 bool m_notificationARNsHasBeenSet = false;
628 bool m_tagsHasBeenSet = false;
629 bool m_disableRollbackHasBeenSet = false;
630 bool m_clientRequestTokenHasBeenSet = false;
631 bool m_retainExceptOnCreateHasBeenSet = false;
632 bool m_deploymentConfigHasBeenSet = false;
633 bool m_disableValidationHasBeenSet = false;
634};
635
636} // namespace Model
637} // namespace CloudFormation
638} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
void SetStackPolicyDuringUpdateBody(StackPolicyDuringUpdateBodyT &&value)
UpdateStackRequest & WithTemplateURL(TemplateURLT &&value)
const DeploymentConfig & GetDeploymentConfig() const
const Aws::Vector< Aws::String > & GetResourceTypes() const
UpdateStackRequest & WithCapabilities(CapabilitiesT &&value)
UpdateStackRequest & WithDeploymentConfig(DeploymentConfigT &&value)
UpdateStackRequest & WithStackPolicyURL(StackPolicyURLT &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
UpdateStackRequest & WithRollbackConfiguration(RollbackConfigurationT &&value)
void SetDeploymentConfig(DeploymentConfigT &&value)
UpdateStackRequest & WithStackPolicyDuringUpdateURL(StackPolicyDuringUpdateURLT &&value)
const Aws::String & GetStackPolicyDuringUpdateURL() const
UpdateStackRequest & AddResourceTypes(ResourceTypesT &&value)
UpdateStackRequest & WithStackPolicyBody(StackPolicyBodyT &&value)
UpdateStackRequest & WithParameters(ParametersT &&value)
virtual const char * GetServiceRequestName() const override
UpdateStackRequest & WithClientRequestToken(ClientRequestTokenT &&value)
UpdateStackRequest & AddTags(TagsT &&value)
UpdateStackRequest & WithUsePreviousTemplate(bool value)
UpdateStackRequest & WithRoleARN(RoleARNT &&value)
void SetStackPolicyBody(StackPolicyBodyT &&value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateStackRequest & WithTemplateBody(TemplateBodyT &&value)
void SetClientRequestToken(ClientRequestTokenT &&value)
UpdateStackRequest & WithNotificationARNs(NotificationARNsT &&value)
void SetRollbackConfiguration(RollbackConfigurationT &&value)
UpdateStackRequest & WithTags(TagsT &&value)
UpdateStackRequest & WithStackPolicyDuringUpdateBody(StackPolicyDuringUpdateBodyT &&value)
const Aws::Vector< Capability > & GetCapabilities() const
UpdateStackRequest & AddParameters(ParametersT &&value)
UpdateStackRequest & WithDisableRollback(bool value)
UpdateStackRequest & WithResourceTypes(ResourceTypesT &&value)
const Aws::Vector< Parameter > & GetParameters() const
UpdateStackRequest & AddCapabilities(Capability value)
void SetNotificationARNs(NotificationARNsT &&value)
const Aws::String & GetStackPolicyDuringUpdateBody() const
UpdateStackRequest & WithRetainExceptOnCreate(bool value)
const Aws::Vector< Aws::String > & GetNotificationARNs() const
AWS_CLOUDFORMATION_API UpdateStackRequest()=default
UpdateStackRequest & WithStackName(StackNameT &&value)
UpdateStackRequest & WithDisableValidation(bool value)
void SetStackPolicyDuringUpdateURL(StackPolicyDuringUpdateURLT &&value)
UpdateStackRequest & AddNotificationARNs(NotificationARNsT &&value)
const RollbackConfiguration & GetRollbackConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector