AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.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/EnvironmentTier.h>
13#include <aws/elasticbeanstalk/model/OptionSpecification.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ElasticBeanstalk {
19namespace Model {
20
27 public:
28 AWS_ELASTICBEANSTALK_API UpdateEnvironmentRequest() = 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 "UpdateEnvironment"; }
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& GetApplicationName() const { return m_applicationName; }
47 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
48 template <typename ApplicationNameT = Aws::String>
49 void SetApplicationName(ApplicationNameT&& value) {
50 m_applicationNameHasBeenSet = true;
51 m_applicationName = std::forward<ApplicationNameT>(value);
52 }
53 template <typename ApplicationNameT = Aws::String>
54 UpdateEnvironmentRequest& WithApplicationName(ApplicationNameT&& value) {
55 SetApplicationName(std::forward<ApplicationNameT>(value));
56 return *this;
57 }
59
61
68 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
69 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
70 template <typename EnvironmentIdT = Aws::String>
71 void SetEnvironmentId(EnvironmentIdT&& value) {
72 m_environmentIdHasBeenSet = true;
73 m_environmentId = std::forward<EnvironmentIdT>(value);
74 }
75 template <typename EnvironmentIdT = Aws::String>
77 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
78 return *this;
79 }
81
83
90 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
91 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
92 template <typename EnvironmentNameT = Aws::String>
93 void SetEnvironmentName(EnvironmentNameT&& value) {
94 m_environmentNameHasBeenSet = true;
95 m_environmentName = std::forward<EnvironmentNameT>(value);
96 }
97 template <typename EnvironmentNameT = Aws::String>
98 UpdateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
99 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
100 return *this;
101 }
103
105
112 inline const Aws::String& GetGroupName() const { return m_groupName; }
113 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
114 template <typename GroupNameT = Aws::String>
115 void SetGroupName(GroupNameT&& value) {
116 m_groupNameHasBeenSet = true;
117 m_groupName = std::forward<GroupNameT>(value);
118 }
119 template <typename GroupNameT = Aws::String>
121 SetGroupName(std::forward<GroupNameT>(value));
122 return *this;
123 }
125
127
131 inline const Aws::String& GetDescription() const { return m_description; }
132 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
133 template <typename DescriptionT = Aws::String>
134 void SetDescription(DescriptionT&& value) {
135 m_descriptionHasBeenSet = true;
136 m_description = std::forward<DescriptionT>(value);
137 }
138 template <typename DescriptionT = Aws::String>
140 SetDescription(std::forward<DescriptionT>(value));
141 return *this;
142 }
144
146
151 inline const EnvironmentTier& GetTier() const { return m_tier; }
152 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
153 template <typename TierT = EnvironmentTier>
154 void SetTier(TierT&& value) {
155 m_tierHasBeenSet = true;
156 m_tier = std::forward<TierT>(value);
157 }
158 template <typename TierT = EnvironmentTier>
160 SetTier(std::forward<TierT>(value));
161 return *this;
162 }
164
166
171 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
172 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
173 template <typename VersionLabelT = Aws::String>
174 void SetVersionLabel(VersionLabelT&& value) {
175 m_versionLabelHasBeenSet = true;
176 m_versionLabel = std::forward<VersionLabelT>(value);
177 }
178 template <typename VersionLabelT = Aws::String>
180 SetVersionLabel(std::forward<VersionLabelT>(value));
181 return *this;
182 }
184
186
191 inline const Aws::String& GetTemplateName() const { return m_templateName; }
192 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
193 template <typename TemplateNameT = Aws::String>
194 void SetTemplateName(TemplateNameT&& value) {
195 m_templateNameHasBeenSet = true;
196 m_templateName = std::forward<TemplateNameT>(value);
197 }
198 template <typename TemplateNameT = Aws::String>
200 SetTemplateName(std::forward<TemplateNameT>(value));
201 return *this;
202 }
204
206
210 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
211 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
212 template <typename SolutionStackNameT = Aws::String>
213 void SetSolutionStackName(SolutionStackNameT&& value) {
214 m_solutionStackNameHasBeenSet = true;
215 m_solutionStackName = std::forward<SolutionStackNameT>(value);
216 }
217 template <typename SolutionStackNameT = Aws::String>
218 UpdateEnvironmentRequest& WithSolutionStackName(SolutionStackNameT&& value) {
219 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
220 return *this;
221 }
223
225
228 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
229 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
230 template <typename PlatformArnT = Aws::String>
231 void SetPlatformArn(PlatformArnT&& value) {
232 m_platformArnHasBeenSet = true;
233 m_platformArn = std::forward<PlatformArnT>(value);
234 }
235 template <typename PlatformArnT = Aws::String>
237 SetPlatformArn(std::forward<PlatformArnT>(value));
238 return *this;
239 }
241
243
248 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
249 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
250 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
251 void SetOptionSettings(OptionSettingsT&& value) {
252 m_optionSettingsHasBeenSet = true;
253 m_optionSettings = std::forward<OptionSettingsT>(value);
254 }
255 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
257 SetOptionSettings(std::forward<OptionSettingsT>(value));
258 return *this;
259 }
260 template <typename OptionSettingsT = ConfigurationOptionSetting>
261 UpdateEnvironmentRequest& AddOptionSettings(OptionSettingsT&& value) {
262 m_optionSettingsHasBeenSet = true;
263 m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value));
264 return *this;
265 }
267
269
273 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const { return m_optionsToRemove; }
274 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
275 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
276 void SetOptionsToRemove(OptionsToRemoveT&& value) {
277 m_optionsToRemoveHasBeenSet = true;
278 m_optionsToRemove = std::forward<OptionsToRemoveT>(value);
279 }
280 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
282 SetOptionsToRemove(std::forward<OptionsToRemoveT>(value));
283 return *this;
284 }
285 template <typename OptionsToRemoveT = OptionSpecification>
286 UpdateEnvironmentRequest& AddOptionsToRemove(OptionsToRemoveT&& value) {
287 m_optionsToRemoveHasBeenSet = true;
288 m_optionsToRemove.emplace_back(std::forward<OptionsToRemoveT>(value));
289 return *this;
290 }
292 private:
293 Aws::String m_applicationName;
294
295 Aws::String m_environmentId;
296
297 Aws::String m_environmentName;
298
299 Aws::String m_groupName;
300
301 Aws::String m_description;
302
303 EnvironmentTier m_tier;
304
305 Aws::String m_versionLabel;
306
307 Aws::String m_templateName;
308
309 Aws::String m_solutionStackName;
310
311 Aws::String m_platformArn;
312
314
315 Aws::Vector<OptionSpecification> m_optionsToRemove;
316 bool m_applicationNameHasBeenSet = false;
317 bool m_environmentIdHasBeenSet = false;
318 bool m_environmentNameHasBeenSet = false;
319 bool m_groupNameHasBeenSet = false;
320 bool m_descriptionHasBeenSet = false;
321 bool m_tierHasBeenSet = false;
322 bool m_versionLabelHasBeenSet = false;
323 bool m_templateNameHasBeenSet = false;
324 bool m_solutionStackNameHasBeenSet = false;
325 bool m_platformArnHasBeenSet = false;
326 bool m_optionSettingsHasBeenSet = false;
327 bool m_optionsToRemoveHasBeenSet = false;
328};
329
330} // namespace Model
331} // namespace ElasticBeanstalk
332} // namespace Aws
UpdateEnvironmentRequest & WithVersionLabel(VersionLabelT &&value)
UpdateEnvironmentRequest & WithApplicationName(ApplicationNameT &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
UpdateEnvironmentRequest & AddOptionsToRemove(OptionsToRemoveT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateEnvironmentRequest & WithOptionsToRemove(OptionsToRemoveT &&value)
UpdateEnvironmentRequest & WithDescription(DescriptionT &&value)
UpdateEnvironmentRequest & WithPlatformArn(PlatformArnT &&value)
UpdateEnvironmentRequest & AddOptionSettings(OptionSettingsT &&value)
UpdateEnvironmentRequest & WithEnvironmentName(EnvironmentNameT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
AWS_ELASTICBEANSTALK_API UpdateEnvironmentRequest()=default
const Aws::Vector< OptionSpecification > & GetOptionsToRemove() const
UpdateEnvironmentRequest & WithEnvironmentId(EnvironmentIdT &&value)
UpdateEnvironmentRequest & WithSolutionStackName(SolutionStackNameT &&value)
UpdateEnvironmentRequest & WithOptionSettings(OptionSettingsT &&value)
UpdateEnvironmentRequest & WithGroupName(GroupNameT &&value)
UpdateEnvironmentRequest & WithTemplateName(TemplateNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector