AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreatePlatformVersionRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/elasticbeanstalk/ElasticBeanstalkRequest.h>
10#include <aws/elasticbeanstalk/ElasticBeanstalk_EXPORTS.h>
11#include <aws/elasticbeanstalk/model/ConfigurationOptionSetting.h>
12#include <aws/elasticbeanstalk/model/S3Location.h>
13#include <aws/elasticbeanstalk/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ElasticBeanstalk {
19namespace Model {
20
27 public:
28 AWS_ELASTICBEANSTALK_API CreatePlatformVersionRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreatePlatformVersion"; }
35
36 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
46 inline const Aws::String& GetPlatformName() const { return m_platformName; }
47 inline bool PlatformNameHasBeenSet() const { return m_platformNameHasBeenSet; }
48 template <typename PlatformNameT = Aws::String>
49 void SetPlatformName(PlatformNameT&& value) {
50 m_platformNameHasBeenSet = true;
51 m_platformName = std::forward<PlatformNameT>(value);
52 }
53 template <typename PlatformNameT = Aws::String>
55 SetPlatformName(std::forward<PlatformNameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetPlatformVersion() const { return m_platformVersion; }
65 inline bool PlatformVersionHasBeenSet() const { return m_platformVersionHasBeenSet; }
66 template <typename PlatformVersionT = Aws::String>
67 void SetPlatformVersion(PlatformVersionT&& value) {
68 m_platformVersionHasBeenSet = true;
69 m_platformVersion = std::forward<PlatformVersionT>(value);
70 }
71 template <typename PlatformVersionT = Aws::String>
73 SetPlatformVersion(std::forward<PlatformVersionT>(value));
74 return *this;
75 }
77
79
82 inline const S3Location& GetPlatformDefinitionBundle() const { return m_platformDefinitionBundle; }
83 inline bool PlatformDefinitionBundleHasBeenSet() const { return m_platformDefinitionBundleHasBeenSet; }
84 template <typename PlatformDefinitionBundleT = S3Location>
85 void SetPlatformDefinitionBundle(PlatformDefinitionBundleT&& value) {
86 m_platformDefinitionBundleHasBeenSet = true;
87 m_platformDefinitionBundle = std::forward<PlatformDefinitionBundleT>(value);
88 }
89 template <typename PlatformDefinitionBundleT = S3Location>
90 CreatePlatformVersionRequest& WithPlatformDefinitionBundle(PlatformDefinitionBundleT&& value) {
91 SetPlatformDefinitionBundle(std::forward<PlatformDefinitionBundleT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
101 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
102 template <typename EnvironmentNameT = Aws::String>
103 void SetEnvironmentName(EnvironmentNameT&& value) {
104 m_environmentNameHasBeenSet = true;
105 m_environmentName = std::forward<EnvironmentNameT>(value);
106 }
107 template <typename EnvironmentNameT = Aws::String>
109 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
110 return *this;
111 }
113
115
118 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
119 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
120 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
121 void SetOptionSettings(OptionSettingsT&& value) {
122 m_optionSettingsHasBeenSet = true;
123 m_optionSettings = std::forward<OptionSettingsT>(value);
124 }
125 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
127 SetOptionSettings(std::forward<OptionSettingsT>(value));
128 return *this;
129 }
130 template <typename OptionSettingsT = ConfigurationOptionSetting>
132 m_optionSettingsHasBeenSet = true;
133 m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value));
134 return *this;
135 }
137
139
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<Tag>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = Tag>
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163 private:
164 Aws::String m_platformName;
165
166 Aws::String m_platformVersion;
167
168 S3Location m_platformDefinitionBundle;
169
170 Aws::String m_environmentName;
171
173
174 Aws::Vector<Tag> m_tags;
175 bool m_platformNameHasBeenSet = false;
176 bool m_platformVersionHasBeenSet = false;
177 bool m_platformDefinitionBundleHasBeenSet = false;
178 bool m_environmentNameHasBeenSet = false;
179 bool m_optionSettingsHasBeenSet = false;
180 bool m_tagsHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace ElasticBeanstalk
185} // namespace Aws
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
CreatePlatformVersionRequest & WithEnvironmentName(EnvironmentNameT &&value)
CreatePlatformVersionRequest & WithPlatformVersion(PlatformVersionT &&value)
CreatePlatformVersionRequest & WithPlatformName(PlatformNameT &&value)
CreatePlatformVersionRequest & WithPlatformDefinitionBundle(PlatformDefinitionBundleT &&value)
AWS_ELASTICBEANSTALK_API CreatePlatformVersionRequest()=default
CreatePlatformVersionRequest & WithOptionSettings(OptionSettingsT &&value)
CreatePlatformVersionRequest & AddOptionSettings(OptionSettingsT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
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