AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateEnvironmentRequest.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/Tag.h>
13#include <aws/elasticbeanstalk/model/ConfigurationOptionSetting.h>
14#include <aws/elasticbeanstalk/model/OptionSpecification.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ElasticBeanstalk
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_ELASTICBEANSTALK_API CreateEnvironmentRequest();
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateEnvironment"; }
39
40 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
51 inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
52 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
53 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
54 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
55 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
56 inline CreateEnvironmentRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
57 inline CreateEnvironmentRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
58 inline CreateEnvironmentRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
60
62
72 inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; }
73 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
74 inline void SetEnvironmentName(const Aws::String& value) { m_environmentNameHasBeenSet = true; m_environmentName = value; }
75 inline void SetEnvironmentName(Aws::String&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::move(value); }
76 inline void SetEnvironmentName(const char* value) { m_environmentNameHasBeenSet = true; m_environmentName.assign(value); }
77 inline CreateEnvironmentRequest& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;}
78 inline CreateEnvironmentRequest& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;}
79 inline CreateEnvironmentRequest& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;}
81
83
90 inline const Aws::String& GetGroupName() const{ return m_groupName; }
91 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
92 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
93 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
94 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
95 inline CreateEnvironmentRequest& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
96 inline CreateEnvironmentRequest& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
97 inline CreateEnvironmentRequest& WithGroupName(const char* value) { SetGroupName(value); return *this;}
99
101
104 inline const Aws::String& GetDescription() const{ return m_description; }
105 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
106 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
107 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
108 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
109 inline CreateEnvironmentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
110 inline CreateEnvironmentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
111 inline CreateEnvironmentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
113
115
121 inline const Aws::String& GetCNAMEPrefix() const{ return m_cNAMEPrefix; }
122 inline bool CNAMEPrefixHasBeenSet() const { return m_cNAMEPrefixHasBeenSet; }
123 inline void SetCNAMEPrefix(const Aws::String& value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix = value; }
124 inline void SetCNAMEPrefix(Aws::String&& value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix = std::move(value); }
125 inline void SetCNAMEPrefix(const char* value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix.assign(value); }
126 inline CreateEnvironmentRequest& WithCNAMEPrefix(const Aws::String& value) { SetCNAMEPrefix(value); return *this;}
127 inline CreateEnvironmentRequest& WithCNAMEPrefix(Aws::String&& value) { SetCNAMEPrefix(std::move(value)); return *this;}
128 inline CreateEnvironmentRequest& WithCNAMEPrefix(const char* value) { SetCNAMEPrefix(value); return *this;}
130
132
138 inline const EnvironmentTier& GetTier() const{ return m_tier; }
139 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
140 inline void SetTier(const EnvironmentTier& value) { m_tierHasBeenSet = true; m_tier = value; }
141 inline void SetTier(EnvironmentTier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
142 inline CreateEnvironmentRequest& WithTier(const EnvironmentTier& value) { SetTier(value); return *this;}
143 inline CreateEnvironmentRequest& WithTier(EnvironmentTier&& value) { SetTier(std::move(value)); return *this;}
145
147
150 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
151 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
152 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
153 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
154 inline CreateEnvironmentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
155 inline CreateEnvironmentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
156 inline CreateEnvironmentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
157 inline CreateEnvironmentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
159
161
165 inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
166 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
167 inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
168 inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
169 inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
170 inline CreateEnvironmentRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
171 inline CreateEnvironmentRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
172 inline CreateEnvironmentRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
174
176
181 inline const Aws::String& GetTemplateName() const{ return m_templateName; }
182 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
183 inline void SetTemplateName(const Aws::String& value) { m_templateNameHasBeenSet = true; m_templateName = value; }
184 inline void SetTemplateName(Aws::String&& value) { m_templateNameHasBeenSet = true; m_templateName = std::move(value); }
185 inline void SetTemplateName(const char* value) { m_templateNameHasBeenSet = true; m_templateName.assign(value); }
186 inline CreateEnvironmentRequest& WithTemplateName(const Aws::String& value) { SetTemplateName(value); return *this;}
187 inline CreateEnvironmentRequest& WithTemplateName(Aws::String&& value) { SetTemplateName(std::move(value)); return *this;}
188 inline CreateEnvironmentRequest& WithTemplateName(const char* value) { SetTemplateName(value); return *this;}
190
192
202 inline const Aws::String& GetSolutionStackName() const{ return m_solutionStackName; }
203 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
204 inline void SetSolutionStackName(const Aws::String& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = value; }
205 inline void SetSolutionStackName(Aws::String&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::move(value); }
206 inline void SetSolutionStackName(const char* value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName.assign(value); }
208 inline CreateEnvironmentRequest& WithSolutionStackName(Aws::String&& value) { SetSolutionStackName(std::move(value)); return *this;}
209 inline CreateEnvironmentRequest& WithSolutionStackName(const char* value) { SetSolutionStackName(value); return *this;}
211
213
221 inline const Aws::String& GetPlatformArn() const{ return m_platformArn; }
222 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
223 inline void SetPlatformArn(const Aws::String& value) { m_platformArnHasBeenSet = true; m_platformArn = value; }
224 inline void SetPlatformArn(Aws::String&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::move(value); }
225 inline void SetPlatformArn(const char* value) { m_platformArnHasBeenSet = true; m_platformArn.assign(value); }
226 inline CreateEnvironmentRequest& WithPlatformArn(const Aws::String& value) { SetPlatformArn(value); return *this;}
227 inline CreateEnvironmentRequest& WithPlatformArn(Aws::String&& value) { SetPlatformArn(std::move(value)); return *this;}
228 inline CreateEnvironmentRequest& WithPlatformArn(const char* value) { SetPlatformArn(value); return *this;}
230
232
238 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const{ return m_optionSettings; }
239 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
240 inline void SetOptionSettings(const Aws::Vector<ConfigurationOptionSetting>& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = value; }
241 inline void SetOptionSettings(Aws::Vector<ConfigurationOptionSetting>&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::move(value); }
244 inline CreateEnvironmentRequest& AddOptionSettings(const ConfigurationOptionSetting& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(value); return *this; }
245 inline CreateEnvironmentRequest& AddOptionSettings(ConfigurationOptionSetting&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.push_back(std::move(value)); return *this; }
247
249
253 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const{ return m_optionsToRemove; }
254 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
255 inline void SetOptionsToRemove(const Aws::Vector<OptionSpecification>& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = value; }
256 inline void SetOptionsToRemove(Aws::Vector<OptionSpecification>&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::move(value); }
259 inline CreateEnvironmentRequest& AddOptionsToRemove(const OptionSpecification& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(value); return *this; }
260 inline CreateEnvironmentRequest& AddOptionsToRemove(OptionSpecification&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.push_back(std::move(value)); return *this; }
262
264
274 inline const Aws::String& GetOperationsRole() const{ return m_operationsRole; }
275 inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; }
276 inline void SetOperationsRole(const Aws::String& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = value; }
277 inline void SetOperationsRole(Aws::String&& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = std::move(value); }
278 inline void SetOperationsRole(const char* value) { m_operationsRoleHasBeenSet = true; m_operationsRole.assign(value); }
279 inline CreateEnvironmentRequest& WithOperationsRole(const Aws::String& value) { SetOperationsRole(value); return *this;}
280 inline CreateEnvironmentRequest& WithOperationsRole(Aws::String&& value) { SetOperationsRole(std::move(value)); return *this;}
281 inline CreateEnvironmentRequest& WithOperationsRole(const char* value) { SetOperationsRole(value); return *this;}
283 private:
284
285 Aws::String m_applicationName;
286 bool m_applicationNameHasBeenSet = false;
287
288 Aws::String m_environmentName;
289 bool m_environmentNameHasBeenSet = false;
290
291 Aws::String m_groupName;
292 bool m_groupNameHasBeenSet = false;
293
294 Aws::String m_description;
295 bool m_descriptionHasBeenSet = false;
296
297 Aws::String m_cNAMEPrefix;
298 bool m_cNAMEPrefixHasBeenSet = false;
299
300 EnvironmentTier m_tier;
301 bool m_tierHasBeenSet = false;
302
303 Aws::Vector<Tag> m_tags;
304 bool m_tagsHasBeenSet = false;
305
306 Aws::String m_versionLabel;
307 bool m_versionLabelHasBeenSet = false;
308
309 Aws::String m_templateName;
310 bool m_templateNameHasBeenSet = false;
311
312 Aws::String m_solutionStackName;
313 bool m_solutionStackNameHasBeenSet = false;
314
315 Aws::String m_platformArn;
316 bool m_platformArnHasBeenSet = false;
317
319 bool m_optionSettingsHasBeenSet = false;
320
321 Aws::Vector<OptionSpecification> m_optionsToRemove;
322 bool m_optionsToRemoveHasBeenSet = false;
323
324 Aws::String m_operationsRole;
325 bool m_operationsRoleHasBeenSet = false;
326 };
327
328} // namespace Model
329} // namespace ElasticBeanstalk
330} // namespace Aws
CreateEnvironmentRequest & WithApplicationName(const Aws::String &value)
CreateEnvironmentRequest & WithOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
CreateEnvironmentRequest & WithOperationsRole(Aws::String &&value)
CreateEnvironmentRequest & WithOperationsRole(const char *value)
void SetOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
CreateEnvironmentRequest & WithSolutionStackName(const char *value)
CreateEnvironmentRequest & AddOptionSettings(const ConfigurationOptionSetting &value)
CreateEnvironmentRequest & WithTier(EnvironmentTier &&value)
CreateEnvironmentRequest & WithOperationsRole(const Aws::String &value)
CreateEnvironmentRequest & WithOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
CreateEnvironmentRequest & WithPlatformArn(Aws::String &&value)
CreateEnvironmentRequest & WithDescription(const Aws::String &value)
CreateEnvironmentRequest & WithDescription(const char *value)
CreateEnvironmentRequest & WithCNAMEPrefix(const Aws::String &value)
CreateEnvironmentRequest & WithApplicationName(Aws::String &&value)
CreateEnvironmentRequest & WithVersionLabel(const Aws::String &value)
CreateEnvironmentRequest & WithCNAMEPrefix(Aws::String &&value)
CreateEnvironmentRequest & WithPlatformArn(const Aws::String &value)
CreateEnvironmentRequest & WithGroupName(Aws::String &&value)
CreateEnvironmentRequest & WithTemplateName(Aws::String &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
void SetOptionsToRemove(Aws::Vector< OptionSpecification > &&value)
CreateEnvironmentRequest & WithPlatformArn(const char *value)
CreateEnvironmentRequest & WithTemplateName(const Aws::String &value)
CreateEnvironmentRequest & WithEnvironmentName(Aws::String &&value)
CreateEnvironmentRequest & WithDescription(Aws::String &&value)
CreateEnvironmentRequest & WithSolutionStackName(const Aws::String &value)
CreateEnvironmentRequest & WithTemplateName(const char *value)
CreateEnvironmentRequest & WithTags(const Aws::Vector< Tag > &value)
CreateEnvironmentRequest & WithOptionSettings(Aws::Vector< ConfigurationOptionSetting > &&value)
const Aws::Vector< OptionSpecification > & GetOptionsToRemove() const
CreateEnvironmentRequest & WithCNAMEPrefix(const char *value)
CreateEnvironmentRequest & WithTier(const EnvironmentTier &value)
CreateEnvironmentRequest & WithVersionLabel(Aws::String &&value)
CreateEnvironmentRequest & WithEnvironmentName(const Aws::String &value)
void SetOptionsToRemove(const Aws::Vector< OptionSpecification > &value)
CreateEnvironmentRequest & WithOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
CreateEnvironmentRequest & WithApplicationName(const char *value)
CreateEnvironmentRequest & AddOptionSettings(ConfigurationOptionSetting &&value)
void SetOptionSettings(const Aws::Vector< ConfigurationOptionSetting > &value)
CreateEnvironmentRequest & WithVersionLabel(const char *value)
CreateEnvironmentRequest & WithEnvironmentName(const char *value)
CreateEnvironmentRequest & WithGroupName(const Aws::String &value)
CreateEnvironmentRequest & AddOptionsToRemove(const OptionSpecification &value)
CreateEnvironmentRequest & AddTags(const Tag &value)
CreateEnvironmentRequest & WithGroupName(const char *value)
CreateEnvironmentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEnvironmentRequest & WithSolutionStackName(Aws::String &&value)
CreateEnvironmentRequest & AddOptionsToRemove(OptionSpecification &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector