AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename ApplicationNameT = Aws::String>
54 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
55 template<typename ApplicationNameT = Aws::String>
56 CreateEnvironmentRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
58
60
70 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
71 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
72 template<typename EnvironmentNameT = Aws::String>
73 void SetEnvironmentName(EnvironmentNameT&& value) { m_environmentNameHasBeenSet = true; m_environmentName = std::forward<EnvironmentNameT>(value); }
74 template<typename EnvironmentNameT = Aws::String>
75 CreateEnvironmentRequest& WithEnvironmentName(EnvironmentNameT&& value) { SetEnvironmentName(std::forward<EnvironmentNameT>(value)); return *this;}
77
79
86 inline const Aws::String& GetGroupName() const { return m_groupName; }
87 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
88 template<typename GroupNameT = Aws::String>
89 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
90 template<typename GroupNameT = Aws::String>
91 CreateEnvironmentRequest& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
93
95
98 inline const Aws::String& GetDescription() const { return m_description; }
99 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
100 template<typename DescriptionT = Aws::String>
101 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
102 template<typename DescriptionT = Aws::String>
103 CreateEnvironmentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
105
107
113 inline const Aws::String& GetCNAMEPrefix() const { return m_cNAMEPrefix; }
114 inline bool CNAMEPrefixHasBeenSet() const { return m_cNAMEPrefixHasBeenSet; }
115 template<typename CNAMEPrefixT = Aws::String>
116 void SetCNAMEPrefix(CNAMEPrefixT&& value) { m_cNAMEPrefixHasBeenSet = true; m_cNAMEPrefix = std::forward<CNAMEPrefixT>(value); }
117 template<typename CNAMEPrefixT = Aws::String>
118 CreateEnvironmentRequest& WithCNAMEPrefix(CNAMEPrefixT&& value) { SetCNAMEPrefix(std::forward<CNAMEPrefixT>(value)); return *this;}
120
122
128 inline const EnvironmentTier& GetTier() const { return m_tier; }
129 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
130 template<typename TierT = EnvironmentTier>
131 void SetTier(TierT&& value) { m_tierHasBeenSet = true; m_tier = std::forward<TierT>(value); }
132 template<typename TierT = EnvironmentTier>
133 CreateEnvironmentRequest& WithTier(TierT&& value) { SetTier(std::forward<TierT>(value)); return *this;}
135
137
140 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
141 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
142 template<typename TagsT = Aws::Vector<Tag>>
143 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
144 template<typename TagsT = Aws::Vector<Tag>>
145 CreateEnvironmentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
146 template<typename TagsT = Tag>
147 CreateEnvironmentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
149
151
155 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
156 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
157 template<typename VersionLabelT = Aws::String>
158 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
159 template<typename VersionLabelT = Aws::String>
160 CreateEnvironmentRequest& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
162
164
169 inline const Aws::String& GetTemplateName() const { return m_templateName; }
170 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
171 template<typename TemplateNameT = Aws::String>
172 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
173 template<typename TemplateNameT = Aws::String>
174 CreateEnvironmentRequest& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
176
178
188 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
189 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
190 template<typename SolutionStackNameT = Aws::String>
191 void SetSolutionStackName(SolutionStackNameT&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::forward<SolutionStackNameT>(value); }
192 template<typename SolutionStackNameT = Aws::String>
193 CreateEnvironmentRequest& WithSolutionStackName(SolutionStackNameT&& value) { SetSolutionStackName(std::forward<SolutionStackNameT>(value)); return *this;}
195
197
205 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
206 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
207 template<typename PlatformArnT = Aws::String>
208 void SetPlatformArn(PlatformArnT&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::forward<PlatformArnT>(value); }
209 template<typename PlatformArnT = Aws::String>
210 CreateEnvironmentRequest& WithPlatformArn(PlatformArnT&& value) { SetPlatformArn(std::forward<PlatformArnT>(value)); return *this;}
212
214
220 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
221 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
222 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
223 void SetOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::forward<OptionSettingsT>(value); }
224 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
225 CreateEnvironmentRequest& WithOptionSettings(OptionSettingsT&& value) { SetOptionSettings(std::forward<OptionSettingsT>(value)); return *this;}
226 template<typename OptionSettingsT = ConfigurationOptionSetting>
227 CreateEnvironmentRequest& AddOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value)); return *this; }
229
231
235 inline const Aws::Vector<OptionSpecification>& GetOptionsToRemove() const { return m_optionsToRemove; }
236 inline bool OptionsToRemoveHasBeenSet() const { return m_optionsToRemoveHasBeenSet; }
237 template<typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
238 void SetOptionsToRemove(OptionsToRemoveT&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove = std::forward<OptionsToRemoveT>(value); }
239 template<typename OptionsToRemoveT = Aws::Vector<OptionSpecification>>
240 CreateEnvironmentRequest& WithOptionsToRemove(OptionsToRemoveT&& value) { SetOptionsToRemove(std::forward<OptionsToRemoveT>(value)); return *this;}
241 template<typename OptionsToRemoveT = OptionSpecification>
242 CreateEnvironmentRequest& AddOptionsToRemove(OptionsToRemoveT&& value) { m_optionsToRemoveHasBeenSet = true; m_optionsToRemove.emplace_back(std::forward<OptionsToRemoveT>(value)); return *this; }
244
246
256 inline const Aws::String& GetOperationsRole() const { return m_operationsRole; }
257 inline bool OperationsRoleHasBeenSet() const { return m_operationsRoleHasBeenSet; }
258 template<typename OperationsRoleT = Aws::String>
259 void SetOperationsRole(OperationsRoleT&& value) { m_operationsRoleHasBeenSet = true; m_operationsRole = std::forward<OperationsRoleT>(value); }
260 template<typename OperationsRoleT = Aws::String>
261 CreateEnvironmentRequest& WithOperationsRole(OperationsRoleT&& value) { SetOperationsRole(std::forward<OperationsRoleT>(value)); return *this;}
263 private:
264
265 Aws::String m_applicationName;
266 bool m_applicationNameHasBeenSet = false;
267
268 Aws::String m_environmentName;
269 bool m_environmentNameHasBeenSet = false;
270
271 Aws::String m_groupName;
272 bool m_groupNameHasBeenSet = false;
273
274 Aws::String m_description;
275 bool m_descriptionHasBeenSet = false;
276
277 Aws::String m_cNAMEPrefix;
278 bool m_cNAMEPrefixHasBeenSet = false;
279
280 EnvironmentTier m_tier;
281 bool m_tierHasBeenSet = false;
282
283 Aws::Vector<Tag> m_tags;
284 bool m_tagsHasBeenSet = false;
285
286 Aws::String m_versionLabel;
287 bool m_versionLabelHasBeenSet = false;
288
289 Aws::String m_templateName;
290 bool m_templateNameHasBeenSet = false;
291
292 Aws::String m_solutionStackName;
293 bool m_solutionStackNameHasBeenSet = false;
294
295 Aws::String m_platformArn;
296 bool m_platformArnHasBeenSet = false;
297
299 bool m_optionSettingsHasBeenSet = false;
300
301 Aws::Vector<OptionSpecification> m_optionsToRemove;
302 bool m_optionsToRemoveHasBeenSet = false;
303
304 Aws::String m_operationsRole;
305 bool m_operationsRoleHasBeenSet = false;
306 };
307
308} // namespace Model
309} // namespace ElasticBeanstalk
310} // 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