1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
8 #include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
9 #include <aws/core/utils/memory/stl/AWSString.h>
10 #include <aws/elasticbeanstalk/model/S3Location.h>
11 #include <aws/core/utils/memory/stl/AWSVector.h>
12 #include <aws/elasticbeanstalk/model/ConfigurationOptionSetting.h>
13 #include <aws/elasticbeanstalk/model/Tag.h>
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace ElasticBeanstalk
19 {
20 namespace Model
21 {
22 
23   /**
24    * <p>Request to create a new platform version.</p><p><h3>See Also:</h3>   <a
25    * href="http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/CreatePlatformVersionRequest">AWS
26    * API Reference</a></p>
27    */
28   class AWS_ELASTICBEANSTALK_API CreatePlatformVersionRequest : public ElasticBeanstalkRequest
29   {
30   public:
31     CreatePlatformVersionRequest();
32 
33     // Service request name is the Operation name which will send this request out,
34     // each operation should has unique request name, so that we can get operation's name from this request.
35     // Note: this is not true for response, multiple operations may have the same response name,
36     // so we can not get operation's name from response.
GetServiceRequestName()37     inline virtual const char* GetServiceRequestName() const override { return "CreatePlatformVersion"; }
38 
39     Aws::String SerializePayload() const override;
40 
41   protected:
42     void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43 
44   public:
45 
46     /**
47      * <p>The name of your custom platform.</p>
48      */
GetPlatformName()49     inline const Aws::String& GetPlatformName() const{ return m_platformName; }
50 
51     /**
52      * <p>The name of your custom platform.</p>
53      */
PlatformNameHasBeenSet()54     inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
55 
56     /**
57      * <p>The name of your custom platform.</p>
58      */
SetPlatformName(const Aws::String & value)59     inline void SetPlatformName(const Aws::String& value) { m_platformNameHasBeenSet = true; m_platformName = value; }
60 
61     /**
62      * <p>The name of your custom platform.</p>
63      */
SetPlatformName(Aws::String && value)64     inline void SetPlatformName(Aws::String&& value) { m_platformNameHasBeenSet = true; m_platformName = std::move(value); }
65 
66     /**
67      * <p>The name of your custom platform.</p>
68      */
SetPlatformName(const char * value)69     inline void SetPlatformName(const char* value) { m_platformNameHasBeenSet = true; m_platformName.assign(value); }
70 
71     /**
72      * <p>The name of your custom platform.</p>
73      */
WithPlatformName(const Aws::String & value)74     inline CreatePlatformVersionRequest& WithPlatformName(const Aws::String& value) { SetPlatformName(value); return *this;}
75 
76     /**
77      * <p>The name of your custom platform.</p>
78      */
WithPlatformName(Aws::String && value)79     inline CreatePlatformVersionRequest& WithPlatformName(Aws::String&& value) { SetPlatformName(std::move(value)); return *this;}
80 
81     /**
82      * <p>The name of your custom platform.</p>
83      */
WithPlatformName(const char * value)84     inline CreatePlatformVersionRequest& WithPlatformName(const char* value) { SetPlatformName(value); return *this;}
85 
86 
87     /**
88      * <p>The number, such as 1.0.2, for the new platform version.</p>
89      */
GetPlatformVersion()90     inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
91 
92     /**
93      * <p>The number, such as 1.0.2, for the new platform version.</p>
94      */
PlatformVersionHasBeenSet()95     inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
96 
97     /**
98      * <p>The number, such as 1.0.2, for the new platform version.</p>
99      */
SetPlatformVersion(const Aws::String & value)100     inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
101 
102     /**
103      * <p>The number, such as 1.0.2, for the new platform version.</p>
104      */
SetPlatformVersion(Aws::String && value)105     inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
106 
107     /**
108      * <p>The number, such as 1.0.2, for the new platform version.</p>
109      */
SetPlatformVersion(const char * value)110     inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
111 
112     /**
113      * <p>The number, such as 1.0.2, for the new platform version.</p>
114      */
WithPlatformVersion(const Aws::String & value)115     inline CreatePlatformVersionRequest& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
116 
117     /**
118      * <p>The number, such as 1.0.2, for the new platform version.</p>
119      */
WithPlatformVersion(Aws::String && value)120     inline CreatePlatformVersionRequest& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
121 
122     /**
123      * <p>The number, such as 1.0.2, for the new platform version.</p>
124      */
WithPlatformVersion(const char * value)125     inline CreatePlatformVersionRequest& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
126 
127 
128     /**
129      * <p>The location of the platform definition archive in Amazon S3.</p>
130      */
GetPlatformDefinitionBundle()131     inline const S3Location& GetPlatformDefinitionBundle() const{ return m_platformDefinitionBundle; }
132 
133     /**
134      * <p>The location of the platform definition archive in Amazon S3.</p>
135      */
PlatformDefinitionBundleHasBeenSet()136     inline bool PlatformDefinitionBundleHasBeenSet() const { return m_platformDefinitionBundleHasBeenSet; }
137 
138     /**
139      * <p>The location of the platform definition archive in Amazon S3.</p>
140      */
SetPlatformDefinitionBundle(const S3Location & value)141     inline void SetPlatformDefinitionBundle(const S3Location& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = value; }
142 
143     /**
144      * <p>The location of the platform definition archive in Amazon S3.</p>
145      */
SetPlatformDefinitionBundle(S3Location && value)146     inline void SetPlatformDefinitionBundle(S3Location&& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = std::move(value); }
147 
148     /**
149      * <p>The location of the platform definition archive in Amazon S3.</p>
150      */
WithPlatformDefinitionBundle(const S3Location & value)151     inline CreatePlatformVersionRequest& WithPlatformDefinitionBundle(const S3Location& value) { SetPlatformDefinitionBundle(value); return *this;}
152 
153     /**
154      * <p>The location of the platform definition archive in Amazon S3.</p>
155      */
WithPlatformDefinitionBundle(S3Location && value)156     inline CreatePlatformVersionRequest& WithPlatformDefinitionBundle(S3Location&& value) { SetPlatformDefinitionBundle(std::move(value)); return *this;}
157 
158 
159     /**
160      * <p>The name of the builder environment.</p>
161      */
GetEnvironmentName()162     inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
163 
164     /**
165      * <p>The name of the builder environment.</p>
166      */
EnvironmentNameHasBeenSet()167     inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
168 
169     /**
170      * <p>The name of the builder environment.</p>
171      */
SetEnvironmentName(const Aws::String & value)172     inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
173 
174     /**
175      * <p>The name of the builder environment.</p>
176      */
SetEnvironmentName(Aws::String && value)177     inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
178 
179     /**
180      * <p>The name of the builder environment.</p>
181      */
SetEnvironmentName(const char * value)182     inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
183 
184     /**
185      * <p>The name of the builder environment.</p>
186      */
WithEnvironmentName(const Aws::String & value)187     inline CreatePlatformVersionRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
188 
189     /**
190      * <p>The name of the builder environment.</p>
191      */
WithEnvironmentName(Aws::String && value)192     inline CreatePlatformVersionRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
193 
194     /**
195      * <p>The name of the builder environment.</p>
196      */
WithEnvironmentName(const char * value)197     inline CreatePlatformVersionRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
198 
199 
200     /**
201      * <p>The configuration option settings to apply to the builder environment.</p>
202      */
GetOptionSettings()203     inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
204 
205     /**
206      * <p>The configuration option settings to apply to the builder environment.</p>
207      */
OptionSettingsHasBeenSet()208     inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
209 
210     /**
211      * <p>The configuration option settings to apply to the builder environment.</p>
212      */
SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting> & value)213     inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
214 
215     /**
216      * <p>The configuration option settings to apply to the builder environment.</p>
217      */
SetOptionSettings(Aws::Vector<ConfigurationOptionSetting> && value)218     inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
219 
220     /**
221      * <p>The configuration option settings to apply to the builder environment.</p>
222      */
WithOptionSettings(const Aws::Vector<ConfigurationOptionSetting> & value)223     inline CreatePlatformVersionRequest& WithOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { SetOptionSettings(value); return *this;}
224 
225     /**
226      * <p>The configuration option settings to apply to the builder environment.</p>
227      */
WithOptionSettings(Aws::Vector<ConfigurationOptionSetting> && value)228     inline CreatePlatformVersionRequest& WithOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
229 
230     /**
231      * <p>The configuration option settings to apply to the builder environment.</p>
232      */
AddOptionSettings(const ConfigurationOptionSetting & value)233     inline CreatePlatformVersionRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
234 
235     /**
236      * <p>The configuration option settings to apply to the builder environment.</p>
237      */
AddOptionSettings(ConfigurationOptionSetting && value)238     inline CreatePlatformVersionRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
239 
240 
241     /**
242      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
243      * Beanstalk applies these tags only to the platform version. Environments that you
244      * create using the platform version don't inherit the tags.</p>
245      */
GetTags()246     inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
247 
248     /**
249      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
250      * Beanstalk applies these tags only to the platform version. Environments that you
251      * create using the platform version don't inherit the tags.</p>
252      */
TagsHasBeenSet()253     inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
254 
255     /**
256      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
257      * Beanstalk applies these tags only to the platform version. Environments that you
258      * create using the platform version don't inherit the tags.</p>
259      */
SetTags(const Aws::Vector<Tag> & value)260     inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
261 
262     /**
263      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
264      * Beanstalk applies these tags only to the platform version. Environments that you
265      * create using the platform version don't inherit the tags.</p>
266      */
SetTags(Aws::Vector<Tag> && value)267     inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
268 
269     /**
270      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
271      * Beanstalk applies these tags only to the platform version. Environments that you
272      * create using the platform version don't inherit the tags.</p>
273      */
WithTags(const Aws::Vector<Tag> & value)274     inline CreatePlatformVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
275 
276     /**
277      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
278      * Beanstalk applies these tags only to the platform version. Environments that you
279      * create using the platform version don't inherit the tags.</p>
280      */
WithTags(Aws::Vector<Tag> && value)281     inline CreatePlatformVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
282 
283     /**
284      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
285      * Beanstalk applies these tags only to the platform version. Environments that you
286      * create using the platform version don't inherit the tags.</p>
287      */
AddTags(const Tag & value)288     inline CreatePlatformVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
289 
290     /**
291      * <p>Specifies the tags applied to the new platform version.</p> <p>Elastic
292      * Beanstalk applies these tags only to the platform version. Environments that you
293      * create using the platform version don't inherit the tags.</p>
294      */
AddTags(Tag && value)295     inline CreatePlatformVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
296 
297   private:
298 
299     Aws::String m_platformName;
300     bool m_platformNameHasBeenSet;
301 
302     Aws::String m_platformVersion;
303     bool m_platformVersionHasBeenSet;
304 
305     S3Location m_platformDefinitionBundle;
306     bool m_platformDefinitionBundleHasBeenSet;
307 
308     Aws::String m_environmentName;
309     bool m_environmentNameHasBeenSet;
310 
311     Aws::Vector<ConfigurationOptionSetting> m_optionSettings;
312     bool m_optionSettingsHasBeenSet;
313 
314     Aws::Vector<Tag> m_tags;
315     bool m_tagsHasBeenSet;
316   };
317 
318 } // namespace Model
319 } // namespace ElasticBeanstalk
320 } // namespace Aws
321