AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreatePlatformVersionRequest.h
1
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
16namespace Aws
17{
18namespace ElasticBeanstalk
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_ELASTICBEANSTALK_API 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.
37 inline virtual const char* GetServiceRequestName() const override { return "CreatePlatformVersion"; }
38
39 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
50 inline const Aws::String& GetPlatformName() const{ return m_platformName; }
51 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
52 inline void SetPlatformName(const Aws::String& value) { m_platformNameHasBeenSet = true; m_platformName = value; }
53 inline void SetPlatformName(Aws::String&& value) { m_platformNameHasBeenSet = true; m_platformName = std::move(value); }
54 inline void SetPlatformName(const char* value) { m_platformNameHasBeenSet = true; m_platformName.assign(value); }
55 inline CreatePlatformVersionRequest& WithPlatformName(const Aws::String& value) { SetPlatformName(value); return *this;}
56 inline CreatePlatformVersionRequest& WithPlatformName(Aws::String&& value) { SetPlatformName(std::move(value)); return *this;}
57 inline CreatePlatformVersionRequest& WithPlatformName(const char* value) { SetPlatformName(value); return *this;}
59
61
64 inline const Aws::String& GetPlatformVersion() const{ return m_platformVersion; }
65 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
66 inline void SetPlatformVersion(const Aws::String& value) { m_platformVersionHasBeenSet = true; m_platformVersion = value; }
67 inline void SetPlatformVersion(Aws::String&& value) { m_platformVersionHasBeenSet = true; m_platformVersion = std::move(value); }
68 inline void SetPlatformVersion(const char* value) { m_platformVersionHasBeenSet = true; m_platformVersion.assign(value); }
70 inline CreatePlatformVersionRequest& WithPlatformVersion(Aws::String&& value) { SetPlatformVersion(std::move(value)); return *this;}
71 inline CreatePlatformVersionRequest& WithPlatformVersion(const char* value) { SetPlatformVersion(value); return *this;}
73
75
78 inline const S3Location& GetPlatformDefinitionBundle() const{ return m_platformDefinitionBundle; }
79 inline bool PlatformDefinitionBundleHasBeenSet() const { return m_platformDefinitionBundleHasBeenSet; }
80 inline void SetPlatformDefinitionBundle(const S3Location& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = value; }
81 inline void SetPlatformDefinitionBundle(S3Location&& value) { m_platformDefinitionBundleHasBeenSet = true; m_platformDefinitionBundle = std::move(value); }
85
87
90 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
91 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
92 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
93 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
94 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
96 inline CreatePlatformVersionRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
97 inline CreatePlatformVersionRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
99
101
104 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
105 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
106 inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
107 inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
110 inline CreatePlatformVersionRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
111 inline CreatePlatformVersionRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
113
115
120 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
121 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
122 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
123 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
124 inline CreatePlatformVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
125 inline CreatePlatformVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
126 inline CreatePlatformVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
127 inline CreatePlatformVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
129 private:
130
131 Aws::String m_platformName;
132 bool m_platformNameHasBeenSet = false;
133
134 Aws::String m_platformVersion;
135 bool m_platformVersionHasBeenSet = false;
136
137 S3Location m_platformDefinitionBundle;
138 bool m_platformDefinitionBundleHasBeenSet = false;
139
140 Aws::String m_environmentName;
141 bool m_environmentNameHasBeenSet = false;
142
144 bool m_optionSettingsHasBeenSet = false;
145
146 Aws::Vector<Tag> m_tags;
147 bool m_tagsHasBeenSet = false;
148 };
149
150} // namespace Model
151} // namespace ElasticBeanstalk
152} // namespace Aws
CreatePlatformVersionRequest & AddOptionSettings(ConfigurationOptionSetting &&value)
CreatePlatformVersionRequest & AddOptionSettings(const ConfigurationOptionSetting &value)
CreatePlatformVersionRequest & WithPlatformVersion(Aws::String &&value)
void SetOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
CreatePlatformVersionRequest & WithEnvironmentName(Aws::String &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
CreatePlatformVersionRequest & WithTags(const Aws::Vector< Tag > &value)
CreatePlatformVersionRequest & WithPlatformDefinitionBundle(const S3Location &value)
CreatePlatformVersionRequest & WithPlatformVersion(const Aws::String &value)
CreatePlatformVersionRequest & WithEnvironmentName(const char *value)
CreatePlatformVersionRequest & WithOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
void SetOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
CreatePlatformVersionRequest & WithPlatformName(const Aws::String &value)
CreatePlatformVersionRequest & WithEnvironmentName(const Aws::String &value)
CreatePlatformVersionRequest & WithPlatformName(const char *value)
CreatePlatformVersionRequest & WithPlatformName(Aws::String &&value)
CreatePlatformVersionRequest & WithTags(Aws::Vector< Tag > &&value)
CreatePlatformVersionRequest & WithPlatformDefinitionBundle(S3Location &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
CreatePlatformVersionRequest & WithPlatformVersion(const char *value)
CreatePlatformVersionRequest & WithOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector