AWS SDK for C++  0.12.9
AWS SDK for C++
CreateChangeSetRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
23 
24 namespace Aws
25 {
26 namespace CloudFormation
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
46  inline const Aws::String& GetStackName() const{ return m_stackName; }
47 
54  inline void SetStackName(const Aws::String& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
55 
62  inline void SetStackName(Aws::String&& value) { m_stackNameHasBeenSet = true; m_stackName = value; }
63 
70  inline void SetStackName(const char* value) { m_stackNameHasBeenSet = true; m_stackName.assign(value); }
71 
78  inline CreateChangeSetRequest& WithStackName(const Aws::String& value) { SetStackName(value); return *this;}
79 
86  inline CreateChangeSetRequest& WithStackName(Aws::String&& value) { SetStackName(value); return *this;}
87 
94  inline CreateChangeSetRequest& WithStackName(const char* value) { SetStackName(value); return *this;}
95 
103  inline const Aws::String& GetTemplateBody() const{ return m_templateBody; }
104 
112  inline void SetTemplateBody(const Aws::String& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
113 
121  inline void SetTemplateBody(Aws::String&& value) { m_templateBodyHasBeenSet = true; m_templateBody = value; }
122 
130  inline void SetTemplateBody(const char* value) { m_templateBodyHasBeenSet = true; m_templateBody.assign(value); }
131 
139  inline CreateChangeSetRequest& WithTemplateBody(const Aws::String& value) { SetTemplateBody(value); return *this;}
140 
148  inline CreateChangeSetRequest& WithTemplateBody(Aws::String&& value) { SetTemplateBody(value); return *this;}
149 
157  inline CreateChangeSetRequest& WithTemplateBody(const char* value) { SetTemplateBody(value); return *this;}
158 
166  inline const Aws::String& GetTemplateURL() const{ return m_templateURL; }
167 
175  inline void SetTemplateURL(const Aws::String& value) { m_templateURLHasBeenSet = true; m_templateURL = value; }
176 
184  inline void SetTemplateURL(Aws::String&& value) { m_templateURLHasBeenSet = true; m_templateURL = value; }
185 
193  inline void SetTemplateURL(const char* value) { m_templateURLHasBeenSet = true; m_templateURL.assign(value); }
194 
202  inline CreateChangeSetRequest& WithTemplateURL(const Aws::String& value) { SetTemplateURL(value); return *this;}
203 
211  inline CreateChangeSetRequest& WithTemplateURL(Aws::String&& value) { SetTemplateURL(value); return *this;}
212 
220  inline CreateChangeSetRequest& WithTemplateURL(const char* value) { SetTemplateURL(value); return *this;}
221 
226  inline bool GetUsePreviousTemplate() const{ return m_usePreviousTemplate; }
227 
232  inline void SetUsePreviousTemplate(bool value) { m_usePreviousTemplateHasBeenSet = true; m_usePreviousTemplate = value; }
233 
238  inline CreateChangeSetRequest& WithUsePreviousTemplate(bool value) { SetUsePreviousTemplate(value); return *this;}
239 
246  inline const Aws::Vector<Parameter>& GetParameters() const{ return m_parameters; }
247 
254  inline void SetParameters(const Aws::Vector<Parameter>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
255 
262  inline void SetParameters(Aws::Vector<Parameter>&& value) { m_parametersHasBeenSet = true; m_parameters = value; }
263 
270  inline CreateChangeSetRequest& WithParameters(const Aws::Vector<Parameter>& value) { SetParameters(value); return *this;}
271 
278  inline CreateChangeSetRequest& WithParameters(Aws::Vector<Parameter>&& value) { SetParameters(value); return *this;}
279 
286  inline CreateChangeSetRequest& AddParameters(const Parameter& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
287 
294  inline CreateChangeSetRequest& AddParameters(Parameter&& value) { m_parametersHasBeenSet = true; m_parameters.push_back(value); return *this; }
295 
323  inline const Aws::Vector<Capability>& GetCapabilities() const{ return m_capabilities; }
324 
352  inline void SetCapabilities(const Aws::Vector<Capability>& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
353 
381  inline void SetCapabilities(Aws::Vector<Capability>&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
382 
410  inline CreateChangeSetRequest& WithCapabilities(const Aws::Vector<Capability>& value) { SetCapabilities(value); return *this;}
411 
439  inline CreateChangeSetRequest& WithCapabilities(Aws::Vector<Capability>&& value) { SetCapabilities(value); return *this;}
440 
468  inline CreateChangeSetRequest& AddCapabilities(const Capability& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
469 
497  inline CreateChangeSetRequest& AddCapabilities(Capability&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
498 
512  inline const Aws::Vector<Aws::String>& GetResourceTypes() const{ return m_resourceTypes; }
513 
527  inline void SetResourceTypes(const Aws::Vector<Aws::String>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
528 
542  inline void SetResourceTypes(Aws::Vector<Aws::String>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
543 
557  inline CreateChangeSetRequest& WithResourceTypes(const Aws::Vector<Aws::String>& value) { SetResourceTypes(value); return *this;}
558 
572  inline CreateChangeSetRequest& WithResourceTypes(Aws::Vector<Aws::String>&& value) { SetResourceTypes(value); return *this;}
573 
587  inline CreateChangeSetRequest& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
588 
602  inline CreateChangeSetRequest& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
603 
617  inline CreateChangeSetRequest& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
618 
624  inline const Aws::Vector<Aws::String>& GetNotificationARNs() const{ return m_notificationARNs; }
625 
631  inline void SetNotificationARNs(const Aws::Vector<Aws::String>& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = value; }
632 
638  inline void SetNotificationARNs(Aws::Vector<Aws::String>&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = value; }
639 
645  inline CreateChangeSetRequest& WithNotificationARNs(const Aws::Vector<Aws::String>& value) { SetNotificationARNs(value); return *this;}
646 
652  inline CreateChangeSetRequest& WithNotificationARNs(Aws::Vector<Aws::String>&& value) { SetNotificationARNs(value); return *this;}
653 
659  inline CreateChangeSetRequest& AddNotificationARNs(const Aws::String& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; }
660 
666  inline CreateChangeSetRequest& AddNotificationARNs(Aws::String&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; }
667 
673  inline CreateChangeSetRequest& AddNotificationARNs(const char* value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; }
674 
680  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
681 
687  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
688 
694  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
695 
701  inline CreateChangeSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
702 
708  inline CreateChangeSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
709 
715  inline CreateChangeSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
716 
722  inline CreateChangeSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
723 
730  inline const Aws::String& GetChangeSetName() const{ return m_changeSetName; }
731 
738  inline void SetChangeSetName(const Aws::String& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = value; }
739 
746  inline void SetChangeSetName(Aws::String&& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = value; }
747 
754  inline void SetChangeSetName(const char* value) { m_changeSetNameHasBeenSet = true; m_changeSetName.assign(value); }
755 
762  inline CreateChangeSetRequest& WithChangeSetName(const Aws::String& value) { SetChangeSetName(value); return *this;}
763 
770  inline CreateChangeSetRequest& WithChangeSetName(Aws::String&& value) { SetChangeSetName(value); return *this;}
771 
778  inline CreateChangeSetRequest& WithChangeSetName(const char* value) { SetChangeSetName(value); return *this;}
779 
787  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
788 
796  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
797 
805  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
806 
814  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
815 
823  inline CreateChangeSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
824 
832  inline CreateChangeSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
833 
841  inline CreateChangeSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
842 
846  inline const Aws::String& GetDescription() const{ return m_description; }
847 
851  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
852 
856  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
857 
861  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
862 
866  inline CreateChangeSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
867 
871  inline CreateChangeSetRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
872 
876  inline CreateChangeSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
877 
878  private:
879  Aws::String m_stackName;
880  bool m_stackNameHasBeenSet;
881  Aws::String m_templateBody;
882  bool m_templateBodyHasBeenSet;
883  Aws::String m_templateURL;
884  bool m_templateURLHasBeenSet;
885  bool m_usePreviousTemplate;
886  bool m_usePreviousTemplateHasBeenSet;
887  Aws::Vector<Parameter> m_parameters;
888  bool m_parametersHasBeenSet;
889  Aws::Vector<Capability> m_capabilities;
890  bool m_capabilitiesHasBeenSet;
891  Aws::Vector<Aws::String> m_resourceTypes;
892  bool m_resourceTypesHasBeenSet;
893  Aws::Vector<Aws::String> m_notificationARNs;
894  bool m_notificationARNsHasBeenSet;
895  Aws::Vector<Tag> m_tags;
896  bool m_tagsHasBeenSet;
897  Aws::String m_changeSetName;
898  bool m_changeSetNameHasBeenSet;
899  Aws::String m_clientToken;
900  bool m_clientTokenHasBeenSet;
901  Aws::String m_description;
902  bool m_descriptionHasBeenSet;
903  };
904 
905 } // namespace Model
906 } // namespace CloudFormation
907 } // namespace Aws
CreateChangeSetRequest & WithTags(const Aws::Vector< Tag > &value)
CreateChangeSetRequest & WithChangeSetName(const char *value)
CreateChangeSetRequest & WithDescription(const char *value)
CreateChangeSetRequest & WithResourceTypes(const Aws::Vector< Aws::String > &value)
CreateChangeSetRequest & WithChangeSetName(Aws::String &&value)
void SetCapabilities(const Aws::Vector< Capability > &value)
CreateChangeSetRequest & WithStackName(const char *value)
const Aws::Vector< Parameter > & GetParameters() const
void SetParameters(const Aws::Vector< Parameter > &value)
CreateChangeSetRequest & WithClientToken(Aws::String &&value)
CreateChangeSetRequest & AddParameters(const Parameter &value)
CreateChangeSetRequest & AddNotificationARNs(const char *value)
void SetParameters(Aws::Vector< Parameter > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
CreateChangeSetRequest & WithDescription(Aws::String &&value)
CreateChangeSetRequest & WithDescription(const Aws::String &value)
void SetResourceTypes(const Aws::Vector< Aws::String > &value)
CreateChangeSetRequest & WithClientToken(const Aws::String &value)
CreateChangeSetRequest & WithNotificationARNs(Aws::Vector< Aws::String > &&value)
CreateChangeSetRequest & WithClientToken(const char *value)
CreateChangeSetRequest & WithCapabilities(const Aws::Vector< Capability > &value)
CreateChangeSetRequest & WithStackName(const Aws::String &value)
CreateChangeSetRequest & AddTags(const Tag &value)
CreateChangeSetRequest & AddResourceTypes(const Aws::String &value)
CreateChangeSetRequest & WithTemplateURL(Aws::String &&value)
CreateChangeSetRequest & WithTemplateBody(const Aws::String &value)
const Aws::Vector< Aws::String > & GetResourceTypes() const
CreateChangeSetRequest & AddResourceTypes(const char *value)
CreateChangeSetRequest & WithTemplateBody(Aws::String &&value)
CreateChangeSetRequest & AddResourceTypes(Aws::String &&value)
CreateChangeSetRequest & WithTemplateURL(const char *value)
CreateChangeSetRequest & AddCapabilities(const Capability &value)
CreateChangeSetRequest & AddParameters(Parameter &&value)
CreateChangeSetRequest & WithTemplateBody(const char *value)
CreateChangeSetRequest & WithParameters(Aws::Vector< Parameter > &&value)
void SetCapabilities(Aws::Vector< Capability > &&value)
void SetNotificationARNs(const Aws::Vector< Aws::String > &value)
void SetResourceTypes(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Capability > & GetCapabilities() const
CreateChangeSetRequest & WithNotificationARNs(const Aws::Vector< Aws::String > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateChangeSetRequest & WithStackName(Aws::String &&value)
CreateChangeSetRequest & WithUsePreviousTemplate(bool value)
const Aws::Vector< Aws::String > & GetNotificationARNs() const
CreateChangeSetRequest & WithCapabilities(Aws::Vector< Capability > &&value)
#define AWS_CLOUDFORMATION_API
CreateChangeSetRequest & AddNotificationARNs(const Aws::String &value)
CreateChangeSetRequest & WithTags(Aws::Vector< Tag > &&value)
CreateChangeSetRequest & AddCapabilities(Capability &&value)
CreateChangeSetRequest & WithChangeSetName(const Aws::String &value)
CreateChangeSetRequest & WithTemplateURL(const Aws::String &value)
CreateChangeSetRequest & WithParameters(const Aws::Vector< Parameter > &value)
CreateChangeSetRequest & AddNotificationARNs(Aws::String &&value)
JSON (JavaScript Object Notation).
void SetNotificationARNs(Aws::Vector< Aws::String > &&value)
CreateChangeSetRequest & WithResourceTypes(Aws::Vector< Aws::String > &&value)