AWS SDK for C++  0.14.3
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 
327  inline const Aws::Vector<Capability>& GetCapabilities() const{ return m_capabilities; }
328 
360  inline void SetCapabilities(const Aws::Vector<Capability>& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
361 
393  inline void SetCapabilities(Aws::Vector<Capability>&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
394 
426  inline CreateChangeSetRequest& WithCapabilities(const Aws::Vector<Capability>& value) { SetCapabilities(value); return *this;}
427 
459  inline CreateChangeSetRequest& WithCapabilities(Aws::Vector<Capability>&& value) { SetCapabilities(value); return *this;}
460 
492  inline CreateChangeSetRequest& AddCapabilities(const Capability& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
493 
525  inline CreateChangeSetRequest& AddCapabilities(Capability&& value) { m_capabilitiesHasBeenSet = true; m_capabilities.push_back(value); return *this; }
526 
540  inline const Aws::Vector<Aws::String>& GetResourceTypes() const{ return m_resourceTypes; }
541 
555  inline void SetResourceTypes(const Aws::Vector<Aws::String>& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
556 
570  inline void SetResourceTypes(Aws::Vector<Aws::String>&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes = value; }
571 
585  inline CreateChangeSetRequest& WithResourceTypes(const Aws::Vector<Aws::String>& value) { SetResourceTypes(value); return *this;}
586 
600  inline CreateChangeSetRequest& WithResourceTypes(Aws::Vector<Aws::String>&& value) { SetResourceTypes(value); return *this;}
601 
615  inline CreateChangeSetRequest& AddResourceTypes(const Aws::String& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
616 
630  inline CreateChangeSetRequest& AddResourceTypes(Aws::String&& value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
631 
645  inline CreateChangeSetRequest& AddResourceTypes(const char* value) { m_resourceTypesHasBeenSet = true; m_resourceTypes.push_back(value); return *this; }
646 
652  inline const Aws::Vector<Aws::String>& GetNotificationARNs() const{ return m_notificationARNs; }
653 
659  inline void SetNotificationARNs(const Aws::Vector<Aws::String>& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = value; }
660 
666  inline void SetNotificationARNs(Aws::Vector<Aws::String>&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs = value; }
667 
673  inline CreateChangeSetRequest& WithNotificationARNs(const Aws::Vector<Aws::String>& value) { SetNotificationARNs(value); return *this;}
674 
680  inline CreateChangeSetRequest& WithNotificationARNs(Aws::Vector<Aws::String>&& value) { SetNotificationARNs(value); return *this;}
681 
687  inline CreateChangeSetRequest& AddNotificationARNs(const Aws::String& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; }
688 
694  inline CreateChangeSetRequest& AddNotificationARNs(Aws::String&& value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; }
695 
701  inline CreateChangeSetRequest& AddNotificationARNs(const char* value) { m_notificationARNsHasBeenSet = true; m_notificationARNs.push_back(value); return *this; }
702 
708  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
709 
715  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
716 
722  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = value; }
723 
729  inline CreateChangeSetRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
730 
736  inline CreateChangeSetRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(value); return *this;}
737 
743  inline CreateChangeSetRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
744 
750  inline CreateChangeSetRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
751 
758  inline const Aws::String& GetChangeSetName() const{ return m_changeSetName; }
759 
766  inline void SetChangeSetName(const Aws::String& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = value; }
767 
774  inline void SetChangeSetName(Aws::String&& value) { m_changeSetNameHasBeenSet = true; m_changeSetName = value; }
775 
782  inline void SetChangeSetName(const char* value) { m_changeSetNameHasBeenSet = true; m_changeSetName.assign(value); }
783 
790  inline CreateChangeSetRequest& WithChangeSetName(const Aws::String& value) { SetChangeSetName(value); return *this;}
791 
798  inline CreateChangeSetRequest& WithChangeSetName(Aws::String&& value) { SetChangeSetName(value); return *this;}
799 
806  inline CreateChangeSetRequest& WithChangeSetName(const char* value) { SetChangeSetName(value); return *this;}
807 
815  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
816 
824  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
825 
833  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
834 
842  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
843 
851  inline CreateChangeSetRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
852 
860  inline CreateChangeSetRequest& WithClientToken(Aws::String&& value) { SetClientToken(value); return *this;}
861 
869  inline CreateChangeSetRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
870 
874  inline const Aws::String& GetDescription() const{ return m_description; }
875 
879  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
880 
884  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = value; }
885 
889  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
890 
894  inline CreateChangeSetRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
895 
899  inline CreateChangeSetRequest& WithDescription(Aws::String&& value) { SetDescription(value); return *this;}
900 
904  inline CreateChangeSetRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
905 
906  private:
907  Aws::String m_stackName;
908  bool m_stackNameHasBeenSet;
909  Aws::String m_templateBody;
910  bool m_templateBodyHasBeenSet;
911  Aws::String m_templateURL;
912  bool m_templateURLHasBeenSet;
913  bool m_usePreviousTemplate;
914  bool m_usePreviousTemplateHasBeenSet;
915  Aws::Vector<Parameter> m_parameters;
916  bool m_parametersHasBeenSet;
917  Aws::Vector<Capability> m_capabilities;
918  bool m_capabilitiesHasBeenSet;
919  Aws::Vector<Aws::String> m_resourceTypes;
920  bool m_resourceTypesHasBeenSet;
921  Aws::Vector<Aws::String> m_notificationARNs;
922  bool m_notificationARNsHasBeenSet;
923  Aws::Vector<Tag> m_tags;
924  bool m_tagsHasBeenSet;
925  Aws::String m_changeSetName;
926  bool m_changeSetNameHasBeenSet;
927  Aws::String m_clientToken;
928  bool m_clientTokenHasBeenSet;
929  Aws::String m_description;
930  bool m_descriptionHasBeenSet;
931  };
932 
933 } // namespace Model
934 } // namespace CloudFormation
935 } // 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)