AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateChangeSetRequest.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/ChangeSetType.h>
13#include <aws/cloudformation/model/OnStackFailure.h>
14#include <aws/cloudformation/model/Parameter.h>
15#include <aws/cloudformation/model/Capability.h>
16#include <aws/cloudformation/model/Tag.h>
17#include <aws/cloudformation/model/ResourceToImport.h>
18#include <utility>
19
20namespace Aws
21{
22namespace CloudFormation
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_CLOUDFORMATION_API CreateChangeSetRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "CreateChangeSet"; }
43
44 AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override;
45
46 protected:
47 AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
48
49 public:
50
52
58 inline const Aws::String& GetStackName() const { return m_stackName; }
59 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
60 template<typename StackNameT = Aws::String>
61 void SetStackName(StackNameT&& value) { m_stackNameHasBeenSet = true; m_stackName = std::forward<StackNameT>(value); }
62 template<typename StackNameT = Aws::String>
63 CreateChangeSetRequest& WithStackName(StackNameT&& value) { SetStackName(std::forward<StackNameT>(value)); return *this;}
65
67
74 inline const Aws::String& GetTemplateBody() const { return m_templateBody; }
75 inline bool TemplateBodyHasBeenSet() const { return m_templateBodyHasBeenSet; }
76 template<typename TemplateBodyT = Aws::String>
77 void SetTemplateBody(TemplateBodyT&& value) { m_templateBodyHasBeenSet = true; m_templateBody = std::forward<TemplateBodyT>(value); }
78 template<typename TemplateBodyT = Aws::String>
79 CreateChangeSetRequest& WithTemplateBody(TemplateBodyT&& value) { SetTemplateBody(std::forward<TemplateBodyT>(value)); return *this;}
81
83
92 inline const Aws::String& GetTemplateURL() const { return m_templateURL; }
93 inline bool TemplateURLHasBeenSet() const { return m_templateURLHasBeenSet; }
94 template<typename TemplateURLT = Aws::String>
95 void SetTemplateURL(TemplateURLT&& value) { m_templateURLHasBeenSet = true; m_templateURL = std::forward<TemplateURLT>(value); }
96 template<typename TemplateURLT = Aws::String>
97 CreateChangeSetRequest& WithTemplateURL(TemplateURLT&& value) { SetTemplateURL(std::forward<TemplateURLT>(value)); return *this;}
99
101
105 inline bool GetUsePreviousTemplate() const { return m_usePreviousTemplate; }
106 inline bool UsePreviousTemplateHasBeenSet() const { return m_usePreviousTemplateHasBeenSet; }
107 inline void SetUsePreviousTemplate(bool value) { m_usePreviousTemplateHasBeenSet = true; m_usePreviousTemplate = value; }
108 inline CreateChangeSetRequest& WithUsePreviousTemplate(bool value) { SetUsePreviousTemplate(value); return *this;}
110
112
116 inline const Aws::Vector<Parameter>& GetParameters() const { return m_parameters; }
117 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
118 template<typename ParametersT = Aws::Vector<Parameter>>
119 void SetParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters = std::forward<ParametersT>(value); }
120 template<typename ParametersT = Aws::Vector<Parameter>>
121 CreateChangeSetRequest& WithParameters(ParametersT&& value) { SetParameters(std::forward<ParametersT>(value)); return *this;}
122 template<typename ParametersT = Parameter>
123 CreateChangeSetRequest& AddParameters(ParametersT&& value) { m_parametersHasBeenSet = true; m_parameters.emplace_back(std::forward<ParametersT>(value)); return *this; }
125
127
187 inline const Aws::Vector<Capability>& GetCapabilities() const { return m_capabilities; }
188 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
189 template<typename CapabilitiesT = Aws::Vector<Capability>>
190 void SetCapabilities(CapabilitiesT&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::forward<CapabilitiesT>(value); }
191 template<typename CapabilitiesT = Aws::Vector<Capability>>
192 CreateChangeSetRequest& WithCapabilities(CapabilitiesT&& value) { SetCapabilities(std::forward<CapabilitiesT>(value)); return *this;}
193 inline CreateChangeSetRequest& AddCapabilities(Capability value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
195
197
210 inline const Aws::Vector<Aws::String>& GetResourceTypes() const { return m_resourceTypes; }
211 inline bool ResourceTypesHasBeenSet() const { return m_resourceTypesHasBeenSet; }
212 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
213 void SetResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = std::forward<ResourceTypesT>(value); }
214 template<typename ResourceTypesT = Aws::Vector<Aws::String>>
215 CreateChangeSetRequest& WithResourceTypes(ResourceTypesT&& value) { SetResourceTypes(std::forward<ResourceTypesT>(value)); return *this;}
216 template<typename ResourceTypesT = Aws::String>
217 CreateChangeSetRequest& AddResourceTypes(ResourceTypesT&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.emplace_back(std::forward<ResourceTypesT>(value)); return *this; }
219
221
232 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
233 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
234 template<typename RoleARNT = Aws::String>
235 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
236 template<typename RoleARNT = Aws::String>
237 CreateChangeSetRequest& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
239
241
245 inline const RollbackConfiguration& GetRollbackConfiguration() const { return m_rollbackConfiguration; }
246 inline bool RollbackConfigurationHasBeenSet() const { return m_rollbackConfigurationHasBeenSet; }
247 template<typename RollbackConfigurationT = RollbackConfiguration>
248 void SetRollbackConfiguration(RollbackConfigurationT&& value) { m_rollbackConfigurationHasBeenSet = true; m_rollbackConfiguration = std::forward<RollbackConfigurationT>(value); }
249 template<typename RollbackConfigurationT = RollbackConfiguration>
250 CreateChangeSetRequest& WithRollbackConfiguration(RollbackConfigurationT&& value) { SetRollbackConfiguration(std::forward<RollbackConfigurationT>(value)); return *this;}
252
254
259 inline const Aws::Vector<Aws::String>& GetNotificationARNs() const { return m_notificationARNs; }
260 inline bool NotificationARNsHasBeenSet() const { return m_notificationARNsHasBeenSet; }
261 template<typename NotificationARNsT = Aws::Vector<Aws::String>>
262 void SetNotificationARNs(NotificationARNsT&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = std::forward<NotificationARNsT>(value); }
263 template<typename NotificationARNsT = Aws::Vector<Aws::String>>
264 CreateChangeSetRequest& WithNotificationARNs(NotificationARNsT&& value) { SetNotificationARNs(std::forward<NotificationARNsT>(value)); return *this;}
265 template<typename NotificationARNsT = Aws::String>
266 CreateChangeSetRequest& AddNotificationARNs(NotificationARNsT&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.emplace_back(std::forward<NotificationARNsT>(value)); return *this; }
268
270
274 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
275 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
276 template<typename TagsT = Aws::Vector<Tag>>
277 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
278 template<typename TagsT = Aws::Vector<Tag>>
279 CreateChangeSetRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
280 template<typename TagsT = Tag>
281 CreateChangeSetRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
283
285
291 inline const Aws::String& GetChangeSetName() const { return m_changeSetName; }
292 inline bool ChangeSetNameHasBeenSet() const { return m_changeSetNameHasBeenSet; }
293 template<typename ChangeSetNameT = Aws::String>
294 void SetChangeSetName(ChangeSetNameT&& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = std::forward<ChangeSetNameT>(value); }
295 template<typename ChangeSetNameT = Aws::String>
296 CreateChangeSetRequest& WithChangeSetName(ChangeSetNameT&& value) { SetChangeSetName(std::forward<ChangeSetNameT>(value)); return *this;}
298
300
307 inline const Aws::String& GetClientToken() const { return m_clientToken; }
308 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
309 template<typename ClientTokenT = Aws::String>
310 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
311 template<typename ClientTokenT = Aws::String>
312 CreateChangeSetRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
314
316
319 inline const Aws::String& GetDescription() const { return m_description; }
320 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
321 template<typename DescriptionT = Aws::String>
322 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
323 template<typename DescriptionT = Aws::String>
324 CreateChangeSetRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
326
328
340 inline ChangeSetType GetChangeSetType() const { return m_changeSetType; }
341 inline bool ChangeSetTypeHasBeenSet() const { return m_changeSetTypeHasBeenSet; }
342 inline void SetChangeSetType(ChangeSetType value) { m_changeSetTypeHasBeenSet = true; m_changeSetType = value; }
345
347
350 inline const Aws::Vector<ResourceToImport>& GetResourcesToImport() const { return m_resourcesToImport; }
351 inline bool ResourcesToImportHasBeenSet() const { return m_resourcesToImportHasBeenSet; }
352 template<typename ResourcesToImportT = Aws::Vector<ResourceToImport>>
353 void SetResourcesToImport(ResourcesToImportT&& value) { m_resourcesToImportHasBeenSet = true; m_resourcesToImport = std::forward<ResourcesToImportT>(value); }
354 template<typename ResourcesToImportT = Aws::Vector<ResourceToImport>>
355 CreateChangeSetRequest& WithResourcesToImport(ResourcesToImportT&& value) { SetResourcesToImport(std::forward<ResourcesToImportT>(value)); return *this;}
356 template<typename ResourcesToImportT = ResourceToImport>
357 CreateChangeSetRequest& AddResourcesToImport(ResourcesToImportT&& value) { m_resourcesToImportHasBeenSet = true; m_resourcesToImport.emplace_back(std::forward<ResourcesToImportT>(value)); return *this; }
359
361
366 inline bool GetIncludeNestedStacks() const { return m_includeNestedStacks; }
367 inline bool IncludeNestedStacksHasBeenSet() const { return m_includeNestedStacksHasBeenSet; }
368 inline void SetIncludeNestedStacks(bool value) { m_includeNestedStacksHasBeenSet = true; m_includeNestedStacks = value; }
369 inline CreateChangeSetRequest& WithIncludeNestedStacks(bool value) { SetIncludeNestedStacks(value); return *this;}
371
373
394 inline OnStackFailure GetOnStackFailure() const { return m_onStackFailure; }
395 inline bool OnStackFailureHasBeenSet() const { return m_onStackFailureHasBeenSet; }
396 inline void SetOnStackFailure(OnStackFailure value) { m_onStackFailureHasBeenSet = true; m_onStackFailure = value; }
399
401
414 inline bool GetImportExistingResources() const { return m_importExistingResources; }
415 inline bool ImportExistingResourcesHasBeenSet() const { return m_importExistingResourcesHasBeenSet; }
416 inline void SetImportExistingResources(bool value) { m_importExistingResourcesHasBeenSet = true; m_importExistingResources = value; }
419 private:
420
421 Aws::String m_stackName;
422 bool m_stackNameHasBeenSet = false;
423
424 Aws::String m_templateBody;
425 bool m_templateBodyHasBeenSet = false;
426
427 Aws::String m_templateURL;
428 bool m_templateURLHasBeenSet = false;
429
430 bool m_usePreviousTemplate{false};
431 bool m_usePreviousTemplateHasBeenSet = false;
432
433 Aws::Vector<Parameter> m_parameters;
434 bool m_parametersHasBeenSet = false;
435
436 Aws::Vector<Capability> m_capabilities;
437 bool m_capabilitiesHasBeenSet = false;
438
439 Aws::Vector<Aws::String> m_resourceTypes;
440 bool m_resourceTypesHasBeenSet = false;
441
442 Aws::String m_roleARN;
443 bool m_roleARNHasBeenSet = false;
444
445 RollbackConfiguration m_rollbackConfiguration;
446 bool m_rollbackConfigurationHasBeenSet = false;
447
448 Aws::Vector<Aws::String> m_notificationARNs;
449 bool m_notificationARNsHasBeenSet = false;
450
451 Aws::Vector<Tag> m_tags;
452 bool m_tagsHasBeenSet = false;
453
454 Aws::String m_changeSetName;
455 bool m_changeSetNameHasBeenSet = false;
456
457 Aws::String m_clientToken;
458 bool m_clientTokenHasBeenSet = false;
459
460 Aws::String m_description;
461 bool m_descriptionHasBeenSet = false;
462
463 ChangeSetType m_changeSetType{ChangeSetType::NOT_SET};
464 bool m_changeSetTypeHasBeenSet = false;
465
466 Aws::Vector<ResourceToImport> m_resourcesToImport;
467 bool m_resourcesToImportHasBeenSet = false;
468
469 bool m_includeNestedStacks{false};
470 bool m_includeNestedStacksHasBeenSet = false;
471
472 OnStackFailure m_onStackFailure{OnStackFailure::NOT_SET};
473 bool m_onStackFailureHasBeenSet = false;
474
475 bool m_importExistingResources{false};
476 bool m_importExistingResourcesHasBeenSet = false;
477 };
478
479} // namespace Model
480} // namespace CloudFormation
481} // namespace Aws
CreateChangeSetRequest & WithChangeSetName(ChangeSetNameT &&value)
CreateChangeSetRequest & AddResourceTypes(ResourceTypesT &&value)
CreateChangeSetRequest & WithOnStackFailure(OnStackFailure value)
AWS_CLOUDFORMATION_API Aws::String SerializePayload() const override
const Aws::Vector< Aws::String > & GetResourceTypes() const
CreateChangeSetRequest & AddResourcesToImport(ResourcesToImportT &&value)
CreateChangeSetRequest & AddCapabilities(Capability value)
CreateChangeSetRequest & WithCapabilities(CapabilitiesT &&value)
CreateChangeSetRequest & WithResourcesToImport(ResourcesToImportT &&value)
CreateChangeSetRequest & WithTags(TagsT &&value)
CreateChangeSetRequest & WithIncludeNestedStacks(bool value)
CreateChangeSetRequest & AddParameters(ParametersT &&value)
CreateChangeSetRequest & WithImportExistingResources(bool value)
CreateChangeSetRequest & WithStackName(StackNameT &&value)
const RollbackConfiguration & GetRollbackConfiguration() const
CreateChangeSetRequest & WithTemplateURL(TemplateURLT &&value)
void SetRollbackConfiguration(RollbackConfigurationT &&value)
CreateChangeSetRequest & WithTemplateBody(TemplateBodyT &&value)
const Aws::Vector< Parameter > & GetParameters() const
CreateChangeSetRequest & WithRoleARN(RoleARNT &&value)
const Aws::Vector< ResourceToImport > & GetResourcesToImport() const
CreateChangeSetRequest & WithParameters(ParametersT &&value)
CreateChangeSetRequest & AddTags(TagsT &&value)
CreateChangeSetRequest & WithRollbackConfiguration(RollbackConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateChangeSetRequest & WithUsePreviousTemplate(bool value)
AWS_CLOUDFORMATION_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateChangeSetRequest & WithResourceTypes(ResourceTypesT &&value)
CreateChangeSetRequest & WithChangeSetType(ChangeSetType value)
CreateChangeSetRequest & AddNotificationARNs(NotificationARNsT &&value)
const Aws::Vector< Aws::String > & GetNotificationARNs() const
AWS_CLOUDFORMATION_API CreateChangeSetRequest()=default
CreateChangeSetRequest & WithClientToken(ClientTokenT &&value)
const Aws::Vector< Capability > & GetCapabilities() const
CreateChangeSetRequest & WithNotificationARNs(NotificationARNsT &&value)
CreateChangeSetRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector