AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
UpdateStackRequest.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/RollbackConfiguration.h>
12#include <aws/cloudformation/model/Parameter.h>
13#include <aws/cloudformation/model/Capability.h>
14#include <aws/cloudformation/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace CloudFormation
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_CLOUDFORMATION_API UpdateStackRequest() = 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 "UpdateStack"; }
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:
46
48
51 inline const Aws::String& GetStackName() const { return m_stackName; }
52 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
53 template<typename StackNameT = Aws::String>
54 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
55 template<typename StackNameT = Aws::String>
56 UpdateStackRequest& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
58
60
67 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
68 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
69 template<typename TemplateBodyT = Aws::String>
70 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
71 template<typename TemplateBodyT = Aws::String>
72 UpdateStackRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
74
76
84 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
85 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
86 template<typename TemplateURLT = Aws::String>
87 void SetTemplateURL(TemplateURLT&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::forward<TemplateURLT>(value); }
88 template<typename TemplateURLT = Aws::String>
89 UpdateStackRequest& WithTemplateURL(TemplateURLT&& value) { SetTemplateURL(std::forward<TemplateURLT>(value)); return *this;}
91
93
99 inline bool GetUsePreviousTemplate() const { return m_usePreviousTemplate; }
100 inline bool UsePreviousTemplateHasBeenSet() const { return m_usePreviousTemplateHasBeenSet; }
101 inline void SetUsePreviousTemplate(bool value) { m_usePreviousTemplateHasBeenSet = true; m_usePreviousTemplate = value; }
102 inline UpdateStackRequest& WithUsePreviousTemplate(bool value) { SetUsePreviousTemplate(value); return *this;}
104
106
114 inline const Aws::String& GetStackPolicyDuringUpdateBody() const { return m_stackPolicyDuringUpdateBody; }
115 inline bool StackPolicyDuringUpdateBodyHasBeenSet() const { return m_stackPolicyDuringUpdateBodyHasBeenSet; }
116 template<typename StackPolicyDuringUpdateBodyT = Aws::String>
117 void SetStackPolicyDuringUpdateBody(StackPolicyDuringUpdateBodyT&& value) { m_stackPolicyDuringUpdateBodyHasBeenSet = true; m_stackPolicyDuringUpdateBody = std::forward<StackPolicyDuringUpdateBodyT>(value); }
118 template<typename StackPolicyDuringUpdateBodyT = Aws::String>
119 UpdateStackRequest& WithStackPolicyDuringUpdateBody(StackPolicyDuringUpdateBodyT&& value) { SetStackPolicyDuringUpdateBody(std::forward<StackPolicyDuringUpdateBodyT>(value)); return *this;}
121
123
134 inline const Aws::String& GetStackPolicyDuringUpdateURL() const { return m_stackPolicyDuringUpdateURL; }
135 inline bool StackPolicyDuringUpdateURLHasBeenSet() const { return m_stackPolicyDuringUpdateURLHasBeenSet; }
136 template<typename StackPolicyDuringUpdateURLT = Aws::String>
137 void SetStackPolicyDuringUpdateURL(StackPolicyDuringUpdateURLT&& value) { m_stackPolicyDuringUpdateURLHasBeenSet = true; m_stackPolicyDuringUpdateURL = std::forward<StackPolicyDuringUpdateURLT>(value); }
138 template<typename StackPolicyDuringUpdateURLT = Aws::String>
139 UpdateStackRequest& WithStackPolicyDuringUpdateURL(StackPolicyDuringUpdateURLT&& value) { SetStackPolicyDuringUpdateURL(std::forward<StackPolicyDuringUpdateURLT>(value)); return *this;}
141
143
149 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
150 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
151 template<typename ParametersT = Aws::Vector<Parameter>>
152 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
153 template<typename ParametersT = Aws::Vector<Parameter>>
154 UpdateStackRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
155 template<typename ParametersT = Parameter>
156 UpdateStackRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
158
160
222 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
223 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
224 template<typename CapabilitiesT = Aws::Vector<Capability>>
225 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
226 template<typename CapabilitiesT = Aws::Vector<Capability>>
227 UpdateStackRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
228 inline UpdateStackRequest& AddCapabilities(Capability value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
230
232
245 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
246 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
247 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
248 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
249 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
250 UpdateStackRequest& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
251 template<typename ResourceTypesT = Aws::String>
252 UpdateStackRequest& AddResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value)); return *this; }
254
256
267 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
268 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
269 template<typename RoleARNT = Aws::String>
270 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
271 template<typename RoleARNT = Aws::String>
272 UpdateStackRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
274
276
280 inline const RollbackConfiguration& GetRollbackConfiguration() const { return m_rollbackConfiguration; }
281 inline bool RollbackConfigurationHasBeenSet() const { return m_rollbackConfigurationHasBeenSet; }
282 template<typename RollbackConfigurationT = RollbackConfiguration>
283 void SetRollbackConfiguration(RollbackConfigurationT&& value) { m_rollbackConfigurationHasBeenSet = true; m_rollbackConfiguration = std::forward<RollbackConfigurationT>(value); }
284 template<typename RollbackConfigurationT = RollbackConfiguration>
285 UpdateStackRequest& WithRollbackConfiguration(RollbackConfigurationT&& value) { SetRollbackConfiguration(std::forward<RollbackConfigurationT>(value)); return *this;}
287
289
297 inline const Aws::String& GetStackPolicyBody() const { return m_stackPolicyBody; }
298 inline bool StackPolicyBodyHasBeenSet() const { return m_stackPolicyBodyHasBeenSet; }
299 template<typename StackPolicyBodyT = Aws::String>
300 void SetStackPolicyBody(StackPolicyBodyT&& value) { m_stackPolicyBodyHasBeenSet = true; m_stackPolicyBody = std::forward<StackPolicyBodyT>(value); }
301 template<typename StackPolicyBodyT = Aws::String>
302 UpdateStackRequest& WithStackPolicyBody(StackPolicyBodyT&& value) { SetStackPolicyBody(std::forward<StackPolicyBodyT>(value)); return *this;}
304
306
317 inline const Aws::String& GetStackPolicyURL() const { return m_stackPolicyURL; }
318 inline bool StackPolicyURLHasBeenSet() const { return m_stackPolicyURLHasBeenSet; }
319 template<typename StackPolicyURLT = Aws::String>
320 void SetStackPolicyURL(StackPolicyURLT&& value) { m_stackPolicyURLHasBeenSet = true; m_stackPolicyURL = std::forward<StackPolicyURLT>(value); }
321 template<typename StackPolicyURLT = Aws::String>
322 UpdateStackRequest& WithStackPolicyURL(StackPolicyURLT&& value) { SetStackPolicyURL(std::forward<StackPolicyURLT>(value)); return *this;}
324
326
331 inline const Aws::Vector<Aws::String>& GetNotificationARNs() const { return m_notificationARNs; }
332 inline bool NotificationARNsHasBeenSet() const { return m_notificationARNsHasBeenSet; }
333 template<typename NotificationARNsT = Aws::Vector<Aws::String>>
334 void SetNotificationARNs(NotificationARNsT&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = std::forward<NotificationARNsT>(value); }
335 template<typename NotificationARNsT = Aws::Vector<Aws::String>>
336 UpdateStackRequest& WithNotificationARNs(NotificationARNsT&& value) { SetNotificationARNs(std::forward<NotificationARNsT>(value)); return *this;}
337 template<typename NotificationARNsT = Aws::String>
338 UpdateStackRequest& AddNotificationARNs(NotificationARNsT&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.emplace_back(std::forward<NotificationARNsT>(value)); return *this; }
340
342
349 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
350 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
351 template<typename TagsT = Aws::Vector<Tag>>
352 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
353 template<typename TagsT = Aws::Vector<Tag>>
354 UpdateStackRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
355 template<typename TagsT = Tag>
356 UpdateStackRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
358
360
364 inline bool GetDisableRollback() const { return m_disableRollback; }
365 inline bool DisableRollbackHasBeenSet() const { return m_disableRollbackHasBeenSet; }
366 inline void SetDisableRollback(bool value) { m_disableRollbackHasBeenSet = true; m_disableRollback = value; }
367 inline UpdateStackRequest& WithDisableRollback(bool value) { SetDisableRollback(value); return *this;}
369
371
389 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
390 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
391 template<typename ClientRequestTokenT = Aws::String>
392 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
393 template<typename ClientRequestTokenT = Aws::String>
394 UpdateStackRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
396
398
403 inline bool GetRetainExceptOnCreate() const { return m_retainExceptOnCreate; }
404 inline bool RetainExceptOnCreateHasBeenSet() const { return m_retainExceptOnCreateHasBeenSet; }
405 inline void SetRetainExceptOnCreate(bool value) { m_retainExceptOnCreateHasBeenSet = true; m_retainExceptOnCreate = value; }
406 inline UpdateStackRequest& WithRetainExceptOnCreate(bool value) { SetRetainExceptOnCreate(value); return *this;}
408 private:
409
410 Aws::String m_stackName;
411 bool m_stackNameHasBeenSet = false;
412
413 Aws::String m_templateBody;
414 bool m_templateBodyHasBeenSet = false;
415
416 Aws::String m_templateURL;
417 bool m_templateURLHasBeenSet = false;
418
419 bool m_usePreviousTemplate{false};
420 bool m_usePreviousTemplateHasBeenSet = false;
421
422 Aws::String m_stackPolicyDuringUpdateBody;
423 bool m_stackPolicyDuringUpdateBodyHasBeenSet = false;
424
425 Aws::String m_stackPolicyDuringUpdateURL;
426 bool m_stackPolicyDuringUpdateURLHasBeenSet = false;
427
428 Aws::Vector<Parameter> m_parameters;
429 bool m_parametersHasBeenSet = false;
430
431 Aws::Vector<Capability> m_capabilities;
432 bool m_capabilitiesHasBeenSet = false;
433
434 Aws::Vector<Aws::String> m_resourceTypes;
435 bool m_resourceTypesHasBeenSet = false;
436
437 Aws::String m_roleARN;
438 bool m_roleARNHasBeenSet = false;
439
440 RollbackConfiguration m_rollbackConfiguration;
441 bool m_rollbackConfigurationHasBeenSet = false;
442
443 Aws::String m_stackPolicyBody;
444 bool m_stackPolicyBodyHasBeenSet = false;
445
446 Aws::String m_stackPolicyURL;
447 bool m_stackPolicyURLHasBeenSet = false;
448
449 Aws::Vector<Aws::String> m_notificationARNs;
450 bool m_notificationARNsHasBeenSet = false;
451
452 Aws::Vector<Tag> m_tags;
453 bool m_tagsHasBeenSet = false;
454
455 bool m_disableRollback{false};
456 bool m_disableRollbackHasBeenSet = false;
457
458 Aws::String m_clientRequestToken;
459 bool m_clientRequestTokenHasBeenSet = false;
460
461 bool m_retainExceptOnCreate{false};
462 bool m_retainExceptOnCreateHasBeenSet = false;
463 };
464
465} // namespace Model
466} // namespace CloudFormation
467} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
void SetStackPolicyDuringUpdateBody(StackPolicyDuringUpdateBodyT &&value)
UpdateStackRequest & WithTemplateURL(TemplateURLT &&value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
UpdateStackRequest & WithCapabilities(CapabilitiesT &&value)
UpdateStackRequest & WithStackPolicyURL(StackPolicyURLT &&value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
UpdateStackRequest & WithRollbackConfiguration(RollbackConfigurationT &&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)
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