AWS SDK for C++

AWS SDK for C++ Version 1.11.747

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
192 inline const Aws::String& GetTemplateName() const { return m_templateName; }
193 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
194 template <typename TemplateNameT = Aws::String>
195 void SetTemplateName(TemplateNameT&& value) {
196 m_templateNameHasBeenSet = true;
197 m_templateName = std::forward<TemplateNameT>(value);
198 }
199 template <typename TemplateNameT = Aws::String>
201 SetTemplateName(std::forward<TemplateNameT>(value));
202 return *this;
203 }
205
207
211 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
212 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
213 template <typename SolutionStackNameT = Aws::String>
214 void SetSolutionStackName(SolutionStackNameT&& value) {
215 m_solutionStackNameHasBeenSet = true;
216 m_solutionStackName = std::forward<SolutionStackNameT>(value);
217 }
218 template <typename SolutionStackNameT = Aws::String>
219 UpdateEnvironmentRequest& WithSolutionStackName(SolutionStackNameT&& value) {
220 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
221 return *this;
222 }
224
226
229 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
230 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
231 template <typename PlatformArnT = Aws::String>
232 void SetPlatformArn(PlatformArnT&& value) {
233 m_platformArnHasBeenSet = true;
234 m_platformArn = std::forward<PlatformArnT>(value);
235 }
236 template <typename PlatformArnT = Aws::String>
238 SetPlatformArn(std::forward<PlatformArnT>(value));
239 return *this;
240 }
242
244
249 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
250 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
251 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
252 void SetOptionSettings(OptionSettingsT&& value) {
253 m_optionSettingsHasBeenSet = true;
254 m_optionSettings = std::forward<OptionSettingsT>(value);
255 }
256 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
258 SetOptionSettings(std::forward<OptionSettingsT>(value));
259 return *this;
260 }
261 template <typename OptionSettingsT = ConfigurationOptionSetting>
262 UpdateEnvironmentRequest& AddOptionSettings(OptionSettingsT&& value) {
263 m_optionSettingsHasBeenSet = true;
264 m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value));
265 return *this;
266 }
268
270
274 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const { return m_optionsToRemove; }
275 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
276 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
277 void SetOptionsToRemove(OptionsToRemoveT&& value) {
278 m_optionsToRemoveHasBeenSet = true;
279 m_optionsToRemove = std::forward<OptionsToRemoveT>(value);
280 }
281 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
283 SetOptionsToRemove(std::forward<OptionsToRemoveT>(value));
284 return *this;
285 }
286 template <typename OptionsToRemoveT = OptionSpecification>
287 UpdateEnvironmentRequest& AddOptionsToRemove(OptionsToRemoveT&& value) {
288 m_optionsToRemoveHasBeenSet = true;
289 m_optionsToRemove.emplace_back(std::forward<OptionsToRemoveT>(value));
290 return *this;
291 }
293 private:
294 Aws::String m_applicationName;
295
296 Aws::String m_environmentId;
297
298 Aws::String m_environmentName;
299
300 Aws::String m_groupName;
301
302 Aws::String m_description;
303
304 EnvironmentTier m_tier;
305
306 Aws::String m_versionLabel;
307
308 Aws::String m_templateName;
309
310 Aws::String m_solutionStackName;
311
312 Aws::String m_platformArn;
313
315
316 Aws::Vector<OptionSpecification> m_optionsToRemove;
317 bool m_applicationNameHasBeenSet = false;
318 bool m_environmentIdHasBeenSet = false;
319 bool m_environmentNameHasBeenSet = false;
320 bool m_groupNameHasBeenSet = false;
321 bool m_descriptionHasBeenSet = false;
322 bool m_tierHasBeenSet = false;
323 bool m_versionLabelHasBeenSet = false;
324 bool m_templateNameHasBeenSet = false;
325 bool m_solutionStackNameHasBeenSet = false;
326 bool m_platformArnHasBeenSet = false;
327 bool m_optionSettingsHasBeenSet = false;
328 bool m_optionsToRemoveHasBeenSet = false;
329};
330
331} // namespace Model
332} // namespace ElasticBeanstalk
333} // 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