AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApplicationNameT = Aws::String>
53 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
54 template<typename ApplicationNameT = Aws::String>
55 UpdateEnvironmentRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
57
59
66 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
67 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
68 template<typename EnvironmentIdT = Aws::String>
69 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
70 template<typename EnvironmentIdT = Aws::String>
71 UpdateEnvironmentRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
73
75
82 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
83 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
84 template<typename EnvironmentNameT = Aws::String>
85 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
86 template<typename EnvironmentNameT = Aws::String>
87 UpdateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
89
91
98 inline const Aws::String& GetGroupName() const { return m_groupName; }
99 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
100 template<typename GroupNameT = Aws::String>
101 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
102 template<typename GroupNameT = Aws::String>
103 UpdateEnvironmentRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
105
107
111 inline const Aws::String& GetDescription() const { return m_description; }
112 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
113 template<typename DescriptionT = Aws::String>
114 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
115 template<typename DescriptionT = Aws::String>
116 UpdateEnvironmentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
118
120
125 inline const EnvironmentTier& GetTier() const { return m_tier; }
126 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
127 template<typename TierT = EnvironmentTier>
128 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
129 template<typename TierT = EnvironmentTier>
130 UpdateEnvironmentRequest& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
132
134
139 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
140 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
141 template<typename VersionLabelT = Aws::String>
142 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
143 template<typename VersionLabelT = Aws::String>
144 UpdateEnvironmentRequest& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
146
148
154 inline const Aws::String& GetTemplateName() const { return m_templateName; }
155 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
156 template<typename TemplateNameT = Aws::String>
157 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
158 template<typename TemplateNameT = Aws::String>
159 UpdateEnvironmentRequest& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
161
163
167 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
168 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
169 template<typename SolutionStackNameT = Aws::String>
170 void SetSolutionStackName(SolutionStackNameT&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::forward<SolutionStackNameT>(value); }
171 template<typename SolutionStackNameT = Aws::String>
172 UpdateEnvironmentRequest& WithSolutionStackName(SolutionStackNameT&& value) { SetSolutionStackName(std::forward<SolutionStackNameT>(value)); return *this;}
174
176
179 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
180 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
181 template<typename PlatformArnT = Aws::String>
182 void SetPlatformArn(PlatformArnT&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::forward<PlatformArnT>(value); }
183 template<typename PlatformArnT = Aws::String>
184 UpdateEnvironmentRequest& WithPlatformArn(PlatformArnT&& value) { SetPlatformArn(std::forward<PlatformArnT>(value)); return *this;}
186
188
193 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
194 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
195 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
196 void SetOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::forward<OptionSettingsT>(value); }
197 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
198 UpdateEnvironmentRequest& WithOptionSettings(OptionSettingsT&& value) { SetOptionSettings(std::forward<OptionSettingsT>(value)); return *this;}
199 template<typename OptionSettingsT = ConfigurationOptionSetting>
200 UpdateEnvironmentRequest& AddOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value)); return *this; }
202
204
208 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const { return m_optionsToRemove; }
209 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
210 template<typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
211 void SetOptionsToRemove(OptionsToRemoveT&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::forward<OptionsToRemoveT>(value); }
212 template<typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
213 UpdateEnvironmentRequest& WithOptionsToRemove(OptionsToRemoveT&& value) { SetOptionsToRemove(std::forward<OptionsToRemoveT>(value)); return *this;}
214 template<typename OptionsToRemoveT = OptionSpecification>
215 UpdateEnvironmentRequest& AddOptionsToRemove(OptionsToRemoveT&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.emplace_back(std::forward<OptionsToRemoveT>(value)); return *this; }
217 private:
218
219 Aws::String m_applicationName;
220 bool m_applicationNameHasBeenSet = false;
221
222 Aws::String m_environmentId;
223 bool m_environmentIdHasBeenSet = false;
224
225 Aws::String m_environmentName;
226 bool m_environmentNameHasBeenSet = false;
227
228 Aws::String m_groupName;
229 bool m_groupNameHasBeenSet = false;
230
231 Aws::String m_description;
232 bool m_descriptionHasBeenSet = false;
233
234 EnvironmentTier m_tier;
235 bool m_tierHasBeenSet = false;
236
237 Aws::String m_versionLabel;
238 bool m_versionLabelHasBeenSet = false;
239
240 Aws::String m_templateName;
241 bool m_templateNameHasBeenSet = false;
242
243 Aws::String m_solutionStackName;
244 bool m_solutionStackNameHasBeenSet = false;
245
246 Aws::String m_platformArn;
247 bool m_platformArnHasBeenSet = false;
248
250 bool m_optionSettingsHasBeenSet = false;
251
252 Aws::Vector<OptionSpecification> m_optionsToRemove;
253 bool m_optionsToRemoveHasBeenSet = false;
254 };
255
256} // namespace Model
257} // namespace ElasticBeanstalk
258} // 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