AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateEnvironmentRequest.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/EnvironmentTier.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticbeanstalk/model/ConfigurationOptionSetting.h>
13#include <aws/elasticbeanstalk/model/OptionSpecification.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ElasticBeanstalk
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_ELASTICBEANSTALK_API UpdateEnvironmentRequest();
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 "UpdateEnvironment"; }
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& GetApplicationName() const{ return m_applicationName; }
51 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
52 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
53 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
54 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
55 inline UpdateEnvironmentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
56 inline UpdateEnvironmentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
57 inline UpdateEnvironmentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
59
61
68 inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; }
69 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
70 inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; }
71 inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); }
72 inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); }
73 inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;}
74 inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;}
75 inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;}
77
79
86 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
87 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
88 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
89 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
90 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
91 inline UpdateEnvironmentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
92 inline UpdateEnvironmentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
93 inline UpdateEnvironmentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
95
97
104 inline const Aws::String& GetGroupName() const{ return m_groupName; }
105 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
106 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
107 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
108 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
109 inline UpdateEnvironmentRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
110 inline UpdateEnvironmentRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
111 inline UpdateEnvironmentRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
113
115
119 inline const Aws::String& GetDescription() const{ return m_description; }
120 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
121 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
122 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
123 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
124 inline UpdateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
125 inline UpdateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
126 inline UpdateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
128
130
135 inline const EnvironmentTier& GetTier() const{ return m_tier; }
136 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
137 inline void SetTier(const EnvironmentTier& value) { m_tierHasBeenSet = true; m_tier = value; }
138 inline void SetTier(EnvironmentTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
139 inline UpdateEnvironmentRequest& WithTier(const EnvironmentTier& value) { SetTier(value); return *this;}
140 inline UpdateEnvironmentRequest& WithTier(EnvironmentTier&& value) { SetTier(std::move(value)); return *this;}
142
144
149 inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
150 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
151 inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
152 inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
153 inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
154 inline UpdateEnvironmentRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
155 inline UpdateEnvironmentRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
156 inline UpdateEnvironmentRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
158
160
166 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
167 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
168 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
169 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
170 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
171 inline UpdateEnvironmentRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
172 inline UpdateEnvironmentRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
173 inline UpdateEnvironmentRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
175
177
181 inline const Aws::String& GetSolutionStackName() const{ return m_solutionStackName; }
182 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
183 inline void SetSolutionStackName(const Aws::String& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
184 inline void SetSolutionStackName(Aws::String&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::move(value); }
185 inline void SetSolutionStackName(const char* value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName.assign(value); }
187 inline UpdateEnvironmentRequest& WithSolutionStackName(Aws::String&& value) { SetSolutionStackName(std::move(value)); return *this;}
188 inline UpdateEnvironmentRequest& WithSolutionStackName(const char* value) { SetSolutionStackName(value); return *this;}
190
192
195 inline const Aws::String& GetPlatformArn() const{ return m_platformArn; }
196 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
197 inline void SetPlatformArn(const Aws::String& value) { m_platformArnHasBeenSet = true; m_platformArn = value; }
198 inline void SetPlatformArn(Aws::String&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::move(value); }
199 inline void SetPlatformArn(const char* value) { m_platformArnHasBeenSet = true; m_platformArn.assign(value); }
200 inline UpdateEnvironmentRequest& WithPlatformArn(const Aws::String& value) { SetPlatformArn(value); return *this;}
201 inline UpdateEnvironmentRequest& WithPlatformArn(Aws::String&& value) { SetPlatformArn(std::move(value)); return *this;}
202 inline UpdateEnvironmentRequest& WithPlatformArn(const char* value) { SetPlatformArn(value); return *this;}
204
206
211 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
212 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
213 inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
214 inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
217 inline UpdateEnvironmentRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
218 inline UpdateEnvironmentRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
220
222
226 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const{ return m_optionsToRemove; }
227 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
228 inline void SetOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
229 inline void SetOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::move(value); }
232 inline UpdateEnvironmentRequest& AddOptionsToRemove(const OptionSpecification& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
233 inline UpdateEnvironmentRequest& AddOptionsToRemove(OptionSpecification&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(std::move(value)); return *this; }
235 private:
236
237 Aws::String m_applicationName;
238 bool m_applicationNameHasBeenSet = false;
239
240 Aws::String m_environmentId;
241 bool m_environmentIdHasBeenSet = false;
242
243 Aws::String m_environmentName;
244 bool m_environmentNameHasBeenSet = false;
245
246 Aws::String m_groupName;
247 bool m_groupNameHasBeenSet = false;
248
249 Aws::String m_description;
250 bool m_descriptionHasBeenSet = false;
251
252 EnvironmentTier m_tier;
253 bool m_tierHasBeenSet = false;
254
255 Aws::String m_versionLabel;
256 bool m_versionLabelHasBeenSet = false;
257
258 Aws::String m_templateName;
259 bool m_templateNameHasBeenSet = false;
260
261 Aws::String m_solutionStackName;
262 bool m_solutionStackNameHasBeenSet = false;
263
264 Aws::String m_platformArn;
265 bool m_platformArnHasBeenSet = false;
266
268 bool m_optionSettingsHasBeenSet = false;
269
270 Aws::Vector<OptionSpecification> m_optionsToRemove;
271 bool m_optionsToRemoveHasBeenSet = false;
272 };
273
274} // namespace Model
275} // namespace ElasticBeanstalk
276} // namespace Aws
UpdateEnvironmentRequest & WithEnvironmentId(Aws::String &&value)
UpdateEnvironmentRequest & WithDescription(const char *value)
UpdateEnvironmentRequest & WithOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
UpdateEnvironmentRequest & WithGroupName(const char *value)
UpdateEnvironmentRequest & WithEnvironmentId(const char *value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
UpdateEnvironmentRequest & AddOptionSettings(ConfigurationOptionSetting &&value)
UpdateEnvironmentRequest & WithPlatformArn(Aws::String &&value)
UpdateEnvironmentRequest & WithEnvironmentName(const char *value)
void SetOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
UpdateEnvironmentRequest & WithOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
UpdateEnvironmentRequest & WithSolutionStackName(Aws::String &&value)
UpdateEnvironmentRequest & WithVersionLabel(const Aws::String &value)
UpdateEnvironmentRequest & WithDescription(Aws::String &&value)
UpdateEnvironmentRequest & WithTemplateName(const char *value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
UpdateEnvironmentRequest & WithGroupName(Aws::String &&value)
UpdateEnvironmentRequest & AddOptionsToRemove(OptionSpecification &&value)
UpdateEnvironmentRequest & WithDescription(const Aws::String &value)
UpdateEnvironmentRequest & WithTemplateName(const Aws::String &value)
const Aws::Vector< OptionSpecification > & GetOptionsToRemove() const
UpdateEnvironmentRequest & AddOptionsToRemove(const OptionSpecification &value)
UpdateEnvironmentRequest & WithApplicationName(const char *value)
UpdateEnvironmentRequest & WithTemplateName(Aws::String &&value)
void SetOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
UpdateEnvironmentRequest & WithPlatformArn(const Aws::String &value)
UpdateEnvironmentRequest & WithTier(const EnvironmentTier &value)
UpdateEnvironmentRequest & WithTier(EnvironmentTier &&value)
UpdateEnvironmentRequest & WithOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
UpdateEnvironmentRequest & WithEnvironmentName(Aws::String &&value)
UpdateEnvironmentRequest & AddOptionSettings(const ConfigurationOptionSetting &value)
UpdateEnvironmentRequest & WithEnvironmentId(const Aws::String &value)
UpdateEnvironmentRequest & WithSolutionStackName(const char *value)
UpdateEnvironmentRequest & WithSolutionStackName(const Aws::String &value)
UpdateEnvironmentRequest & WithApplicationName(const Aws::String &value)
UpdateEnvironmentRequest & WithGroupName(const Aws::String &value)
UpdateEnvironmentRequest & WithVersionLabel(const char *value)
void SetOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
UpdateEnvironmentRequest & WithApplicationName(Aws::String &&value)
UpdateEnvironmentRequest & WithPlatformArn(const char *value)
UpdateEnvironmentRequest & WithEnvironmentName(const Aws::String &value)
UpdateEnvironmentRequest & WithVersionLabel(Aws::String &&value)
void SetOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
UpdateEnvironmentRequest & WithOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector