AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
CreateEnvironmentRequest.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#include <aws/elasticbeanstalk/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ElasticBeanstalk {
20namespace Model {
21
28 public:
29 AWS_ELASTICBEANSTALK_API CreateEnvironmentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
36
37 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
41
42 public:
44
47 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
48 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
49 template <typename ApplicationNameT = Aws::String>
50 void SetApplicationName(ApplicationNameT&& value) {
51 m_applicationNameHasBeenSet = true;
52 m_applicationName = std::forward<ApplicationNameT>(value);
53 }
54 template <typename ApplicationNameT = Aws::String>
55 CreateEnvironmentRequest& WithApplicationName(ApplicationNameT&& value) {
56 SetApplicationName(std::forward<ApplicationNameT>(value));
57 return *this;
58 }
60
62
72 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
73 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
74 template <typename EnvironmentNameT = Aws::String>
75 void SetEnvironmentName(EnvironmentNameT&& value) {
76 m_environmentNameHasBeenSet = true;
77 m_environmentName = std::forward<EnvironmentNameT>(value);
78 }
79 template <typename EnvironmentNameT = Aws::String>
80 CreateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) {
81 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
82 return *this;
83 }
85
87
94 inline const Aws::String& GetGroupName() const { return m_groupName; }
95 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
96 template <typename GroupNameT = Aws::String>
97 void SetGroupName(GroupNameT&& value) {
98 m_groupNameHasBeenSet = true;
99 m_groupName = std::forward<GroupNameT>(value);
100 }
101 template <typename GroupNameT = Aws::String>
103 SetGroupName(std::forward<GroupNameT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetDescription() const { return m_description; }
113 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
114 template <typename DescriptionT = Aws::String>
115 void SetDescription(DescriptionT&& value) {
116 m_descriptionHasBeenSet = true;
117 m_description = std::forward<DescriptionT>(value);
118 }
119 template <typename DescriptionT = Aws::String>
121 SetDescription(std::forward<DescriptionT>(value));
122 return *this;
123 }
125
127
133 inline const Aws::String& GetCNAMEPrefix() const { return m_cNAMEPrefix; }
134 inline bool CNAMEPrefixHasBeenSet() const { return m_cNAMEPrefixHasBeenSet; }
135 template <typename CNAMEPrefixT = Aws::String>
136 void SetCNAMEPrefix(CNAMEPrefixT&& value) {
137 m_cNAMEPrefixHasBeenSet = true;
138 m_cNAMEPrefix = std::forward<CNAMEPrefixT>(value);
139 }
140 template <typename CNAMEPrefixT = Aws::String>
142 SetCNAMEPrefix(std::forward<CNAMEPrefixT>(value));
143 return *this;
144 }
146
148
155 inline const EnvironmentTier& GetTier() const { return m_tier; }
156 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
157 template <typename TierT = EnvironmentTier>
158 void SetTier(TierT&& value) {
159 m_tierHasBeenSet = true;
160 m_tier = std::forward<TierT>(value);
161 }
162 template <typename TierT = EnvironmentTier>
164 SetTier(std::forward<TierT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 template <typename TagsT = Aws::Vector<Tag>>
176 void SetTags(TagsT&& value) {
177 m_tagsHasBeenSet = true;
178 m_tags = std::forward<TagsT>(value);
179 }
180 template <typename TagsT = Aws::Vector<Tag>>
182 SetTags(std::forward<TagsT>(value));
183 return *this;
184 }
185 template <typename TagsT = Tag>
187 m_tagsHasBeenSet = true;
188 m_tags.emplace_back(std::forward<TagsT>(value));
189 return *this;
190 }
192
194
198 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
199 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
200 template <typename VersionLabelT = Aws::String>
201 void SetVersionLabel(VersionLabelT&& value) {
202 m_versionLabelHasBeenSet = true;
203 m_versionLabel = std::forward<VersionLabelT>(value);
204 }
205 template <typename VersionLabelT = Aws::String>
207 SetVersionLabel(std::forward<VersionLabelT>(value));
208 return *this;
209 }
211
213
218 inline const Aws::String& GetTemplateName() const { return m_templateName; }
219 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
220 template <typename TemplateNameT = Aws::String>
221 void SetTemplateName(TemplateNameT&& value) {
222 m_templateNameHasBeenSet = true;
223 m_templateName = std::forward<TemplateNameT>(value);
224 }
225 template <typename TemplateNameT = Aws::String>
227 SetTemplateName(std::forward<TemplateNameT>(value));
228 return *this;
229 }
231
233
243 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
244 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
245 template <typename SolutionStackNameT = Aws::String>
246 void SetSolutionStackName(SolutionStackNameT&& value) {
247 m_solutionStackNameHasBeenSet = true;
248 m_solutionStackName = std::forward<SolutionStackNameT>(value);
249 }
250 template <typename SolutionStackNameT = Aws::String>
251 CreateEnvironmentRequest& WithSolutionStackName(SolutionStackNameT&& value) {
252 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
253 return *this;
254 }
256
258
266 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
267 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
268 template <typename PlatformArnT = Aws::String>
269 void SetPlatformArn(PlatformArnT&& value) {
270 m_platformArnHasBeenSet = true;
271 m_platformArn = std::forward<PlatformArnT>(value);
272 }
273 template <typename PlatformArnT = Aws::String>
275 SetPlatformArn(std::forward<PlatformArnT>(value));
276 return *this;
277 }
279
281
287 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
288 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
289 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
290 void SetOptionSettings(OptionSettingsT&& value) {
291 m_optionSettingsHasBeenSet = true;
292 m_optionSettings = std::forward<OptionSettingsT>(value);
293 }
294 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
296 SetOptionSettings(std::forward<OptionSettingsT>(value));
297 return *this;
298 }
299 template <typename OptionSettingsT = ConfigurationOptionSetting>
300 CreateEnvironmentRequest& AddOptionSettings(OptionSettingsT&& value) {
301 m_optionSettingsHasBeenSet = true;
302 m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value));
303 return *this;
304 }
306
308
312 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const { return m_optionsToRemove; }
313 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
314 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
315 void SetOptionsToRemove(OptionsToRemoveT&& value) {
316 m_optionsToRemoveHasBeenSet = true;
317 m_optionsToRemove = std::forward<OptionsToRemoveT>(value);
318 }
319 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
321 SetOptionsToRemove(std::forward<OptionsToRemoveT>(value));
322 return *this;
323 }
324 template <typename OptionsToRemoveT = OptionSpecification>
325 CreateEnvironmentRequest& AddOptionsToRemove(OptionsToRemoveT&& value) {
326 m_optionsToRemoveHasBeenSet = true;
327 m_optionsToRemove.emplace_back(std::forward<OptionsToRemoveT>(value));
328 return *this;
329 }
331
333
342 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
343 inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; }
344 template <typename OperationsRoleT = Aws::String>
345 void SetOperationsRole(OperationsRoleT&& value) {
346 m_operationsRoleHasBeenSet = true;
347 m_operationsRole = std::forward<OperationsRoleT>(value);
348 }
349 template <typename OperationsRoleT = Aws::String>
351 SetOperationsRole(std::forward<OperationsRoleT>(value));
352 return *this;
353 }
355 private:
356 Aws::String m_applicationName;
357
358 Aws::String m_environmentName;
359
360 Aws::String m_groupName;
361
362 Aws::String m_description;
363
364 Aws::String m_cNAMEPrefix;
365
366 EnvironmentTier m_tier;
367
368 Aws::Vector<Tag> m_tags;
369
370 Aws::String m_versionLabel;
371
372 Aws::String m_templateName;
373
374 Aws::String m_solutionStackName;
375
376 Aws::String m_platformArn;
377
379
380 Aws::Vector<OptionSpecification> m_optionsToRemove;
381
382 Aws::String m_operationsRole;
383 bool m_applicationNameHasBeenSet = false;
384 bool m_environmentNameHasBeenSet = false;
385 bool m_groupNameHasBeenSet = false;
386 bool m_descriptionHasBeenSet = false;
387 bool m_cNAMEPrefixHasBeenSet = false;
388 bool m_tierHasBeenSet = false;
389 bool m_tagsHasBeenSet = false;
390 bool m_versionLabelHasBeenSet = false;
391 bool m_templateNameHasBeenSet = false;
392 bool m_solutionStackNameHasBeenSet = false;
393 bool m_platformArnHasBeenSet = false;
394 bool m_optionSettingsHasBeenSet = false;
395 bool m_optionsToRemoveHasBeenSet = false;
396 bool m_operationsRoleHasBeenSet = false;
397};
398
399} // namespace Model
400} // namespace ElasticBeanstalk
401} // namespace Aws
CreateEnvironmentRequest & WithOperationsRole(OperationsRoleT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithEnvironmentName(EnvironmentNameT &&value)
CreateEnvironmentRequest & WithApplicationName(ApplicationNameT &&value)
CreateEnvironmentRequest & WithTemplateName(TemplateNameT &&value)
CreateEnvironmentRequest & WithSolutionStackName(SolutionStackNameT &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
CreateEnvironmentRequest & WithVersionLabel(VersionLabelT &&value)
CreateEnvironmentRequest & AddOptionsToRemove(OptionsToRemoveT &&value)
CreateEnvironmentRequest & WithPlatformArn(PlatformArnT &&value)
CreateEnvironmentRequest & WithOptionsToRemove(OptionsToRemoveT &&value)
const Aws::Vector< OptionSpecification > & GetOptionsToRemove() const
AWS_ELASTICBEANSTALK_API CreateEnvironmentRequest()=default
CreateEnvironmentRequest & WithGroupName(GroupNameT &&value)
CreateEnvironmentRequest & WithCNAMEPrefix(CNAMEPrefixT &&value)
CreateEnvironmentRequest & WithOptionSettings(OptionSettingsT &&value)
CreateEnvironmentRequest & WithDescription(DescriptionT &&value)
CreateEnvironmentRequest & AddOptionSettings(OptionSettingsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector