AWS SDK for C++  1.8.95
AWS SDK for C++
CreatePlatformVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace ElasticBeanstalk
19 {
20 namespace Model
21 {
22 
29  {
30  public:
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.
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 
49  inline const Aws::String& GetPlatformName() const{ return m_platformName; }
50 
54  inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
55 
59  inline void SetPlatformName(const Aws::String& value) { m_platformNameHasBeenSet = true; m_platformName = value; }
60 
64  inline void SetPlatformName(Aws::String&& value) { m_platformNameHasBeenSet = true; m_platformName = std::move(value); }
65 
69  inline void SetPlatformName(const char* value) { m_platformNameHasBeenSet = true; m_platformName.assign(value); }
70 
74  inline CreatePlatformVersionRequest& WithPlatformName(const Aws::String& value) { SetPlatformName(value); return *this;}
75 
79  inline CreatePlatformVersionRequest& WithPlatformName(Aws::String&& value) { SetPlatformName(std::move(value)); return *this;}
80 
84  inline CreatePlatformVersionRequest& WithPlatformName(const char* value) { SetPlatformName(value); return *this;}
85 
86 
90  inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
91 
95  inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
96 
100  inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
101 
105  inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
106 
110  inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
111 
115  inline CreatePlatformVersionRequest& WithPlatformVersion(const Aws::String& value) { SetPlatformVersion(value); return *this;}
116 
120  inline CreatePlatformVersionRequest& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
121 
125  inline CreatePlatformVersionRequest& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
126 
127 
131  inline const S3Location& GetPlatformDefinitionBundle() const{ return m_platformDefinitionBundle; }
132 
136  inline bool PlatformDefinitionBundleHasBeenSet() const { return m_platformDefinitionBundleHasBeenSet; }
137 
141  inline void SetPlatformDefinitionBundle(const S3Location& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = value; }
142 
146  inline void SetPlatformDefinitionBundle(S3Location&& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = std::move(value); }
147 
151  inline CreatePlatformVersionRequest& WithPlatformDefinitionBundle(const S3Location& value) { SetPlatformDefinitionBundle(value); return *this;}
152 
156  inline CreatePlatformVersionRequest& WithPlatformDefinitionBundle(S3Location&& value) { SetPlatformDefinitionBundle(std::move(value)); return *this;}
157 
158 
162  inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
163 
167  inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
168 
172  inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
173 
177  inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
178 
182  inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
183 
187  inline CreatePlatformVersionRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
188 
192  inline CreatePlatformVersionRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
193 
197  inline CreatePlatformVersionRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
198 
199 
203  inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
204 
208  inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
209 
213  inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
214 
218  inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
219 
223  inline CreatePlatformVersionRequest& WithOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { SetOptionSettings(value); return *this;}
224 
228  inline CreatePlatformVersionRequest& WithOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { SetOptionSettings(std::move(value)); return *this;}
229 
233  inline CreatePlatformVersionRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
234 
238  inline CreatePlatformVersionRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
239 
240 
246  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
247 
253  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
254 
260  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
261 
267  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
268 
274  inline CreatePlatformVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
275 
281  inline CreatePlatformVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
282 
288  inline CreatePlatformVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
289 
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 
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
CreatePlatformVersionRequest & WithPlatformVersion(const char *value)
CreatePlatformVersionRequest & WithPlatformName(const Aws::String &value)
#define AWS_ELASTICBEANSTALK_API
CreatePlatformVersionRequest & AddTags(const Tag &value)
CreatePlatformVersionRequest & WithEnvironmentName(Aws::String &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
CreatePlatformVersionRequest & AddOptionSettings(ConfigurationOptionSetting &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreatePlatformVersionRequest & WithOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
CreatePlatformVersionRequest & WithOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
CreatePlatformVersionRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePlatformVersionRequest & WithEnvironmentName(const Aws::String &value)
void SetOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
void SetOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
CreatePlatformVersionRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePlatformVersionRequest & WithPlatformName(const char *value)
CreatePlatformVersionRequest & WithPlatformVersion(const Aws::String &value)
CreatePlatformVersionRequest & AddOptionSettings(const ConfigurationOptionSetting &value)
CreatePlatformVersionRequest & WithPlatformVersion(Aws::String &&value)
CreatePlatformVersionRequest & WithPlatformDefinitionBundle(S3Location &&value)
CreatePlatformVersionRequest & WithPlatformName(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreatePlatformVersionRequest & WithPlatformDefinitionBundle(const S3Location &value)
CreatePlatformVersionRequest & WithEnvironmentName(const char *value)