AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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
154 inline const EnvironmentTier& GetTier() const { return m_tier; }
155 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
156 template <typename TierT = EnvironmentTier>
157 void SetTier(TierT&& value) {
158 m_tierHasBeenSet = true;
159 m_tier = std::forward<TierT>(value);
160 }
161 template <typename TierT = EnvironmentTier>
163 SetTier(std::forward<TierT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
173 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
174 template <typename TagsT = Aws::Vector<Tag>>
175 void SetTags(TagsT&& value) {
176 m_tagsHasBeenSet = true;
177 m_tags = std::forward<TagsT>(value);
178 }
179 template <typename TagsT = Aws::Vector<Tag>>
181 SetTags(std::forward<TagsT>(value));
182 return *this;
183 }
184 template <typename TagsT = Tag>
186 m_tagsHasBeenSet = true;
187 m_tags.emplace_back(std::forward<TagsT>(value));
188 return *this;
189 }
191
193
197 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
198 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
199 template <typename VersionLabelT = Aws::String>
200 void SetVersionLabel(VersionLabelT&& value) {
201 m_versionLabelHasBeenSet = true;
202 m_versionLabel = std::forward<VersionLabelT>(value);
203 }
204 template <typename VersionLabelT = Aws::String>
206 SetVersionLabel(std::forward<VersionLabelT>(value));
207 return *this;
208 }
210
212
217 inline const Aws::String& GetTemplateName() const { return m_templateName; }
218 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
219 template <typename TemplateNameT = Aws::String>
220 void SetTemplateName(TemplateNameT&& value) {
221 m_templateNameHasBeenSet = true;
222 m_templateName = std::forward<TemplateNameT>(value);
223 }
224 template <typename TemplateNameT = Aws::String>
226 SetTemplateName(std::forward<TemplateNameT>(value));
227 return *this;
228 }
230
232
242 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
243 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
244 template <typename SolutionStackNameT = Aws::String>
245 void SetSolutionStackName(SolutionStackNameT&& value) {
246 m_solutionStackNameHasBeenSet = true;
247 m_solutionStackName = std::forward<SolutionStackNameT>(value);
248 }
249 template <typename SolutionStackNameT = Aws::String>
250 CreateEnvironmentRequest& WithSolutionStackName(SolutionStackNameT&& value) {
251 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
252 return *this;
253 }
255
257
265 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
266 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
267 template <typename PlatformArnT = Aws::String>
268 void SetPlatformArn(PlatformArnT&& value) {
269 m_platformArnHasBeenSet = true;
270 m_platformArn = std::forward<PlatformArnT>(value);
271 }
272 template <typename PlatformArnT = Aws::String>
274 SetPlatformArn(std::forward<PlatformArnT>(value));
275 return *this;
276 }
278
280
286 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
287 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
288 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
289 void SetOptionSettings(OptionSettingsT&& value) {
290 m_optionSettingsHasBeenSet = true;
291 m_optionSettings = std::forward<OptionSettingsT>(value);
292 }
293 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
295 SetOptionSettings(std::forward<OptionSettingsT>(value));
296 return *this;
297 }
298 template <typename OptionSettingsT = ConfigurationOptionSetting>
299 CreateEnvironmentRequest& AddOptionSettings(OptionSettingsT&& value) {
300 m_optionSettingsHasBeenSet = true;
301 m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value));
302 return *this;
303 }
305
307
311 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const { return m_optionsToRemove; }
312 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
313 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
314 void SetOptionsToRemove(OptionsToRemoveT&& value) {
315 m_optionsToRemoveHasBeenSet = true;
316 m_optionsToRemove = std::forward<OptionsToRemoveT>(value);
317 }
318 template <typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
320 SetOptionsToRemove(std::forward<OptionsToRemoveT>(value));
321 return *this;
322 }
323 template <typename OptionsToRemoveT = OptionSpecification>
324 CreateEnvironmentRequest& AddOptionsToRemove(OptionsToRemoveT&& value) {
325 m_optionsToRemoveHasBeenSet = true;
326 m_optionsToRemove.emplace_back(std::forward<OptionsToRemoveT>(value));
327 return *this;
328 }
330
332
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