AWS SDK for C++

AWS SDK for C++ Version 1.11.746

Loading...
Searching...
No Matches
CreateConfigurationTemplateRequest.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/SourceConfiguration.h>
13#include <aws/elasticbeanstalk/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace ElasticBeanstalk {
19namespace Model {
20
27 public:
28 AWS_ELASTICBEANSTALK_API CreateConfigurationTemplateRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationTemplate"; }
35
36 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
37
38 protected:
39 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
40
41 public:
43
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>
56 SetApplicationName(std::forward<ApplicationNameT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::String& GetTemplateName() const { return m_templateName; }
67 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
68 template <typename TemplateNameT = Aws::String>
69 void SetTemplateName(TemplateNameT&& value) {
70 m_templateNameHasBeenSet = true;
71 m_templateName = std::forward<TemplateNameT>(value);
72 }
73 template <typename TemplateNameT = Aws::String>
75 SetTemplateName(std::forward<TemplateNameT>(value));
76 return *this;
77 }
79
81
97 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
98 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
99 template <typename SolutionStackNameT = Aws::String>
100 void SetSolutionStackName(SolutionStackNameT&& value) {
101 m_solutionStackNameHasBeenSet = true;
102 m_solutionStackName = std::forward<SolutionStackNameT>(value);
103 }
104 template <typename SolutionStackNameT = Aws::String>
106 SetSolutionStackName(std::forward<SolutionStackNameT>(value));
107 return *this;
108 }
110
112
120 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
121 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
122 template <typename PlatformArnT = Aws::String>
123 void SetPlatformArn(PlatformArnT&& value) {
124 m_platformArnHasBeenSet = true;
125 m_platformArn = std::forward<PlatformArnT>(value);
126 }
127 template <typename PlatformArnT = Aws::String>
129 SetPlatformArn(std::forward<PlatformArnT>(value));
130 return *this;
131 }
133
135
147 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
148 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
149 template <typename SourceConfigurationT = SourceConfiguration>
150 void SetSourceConfiguration(SourceConfigurationT&& value) {
151 m_sourceConfigurationHasBeenSet = true;
152 m_sourceConfiguration = std::forward<SourceConfigurationT>(value);
153 }
154 template <typename SourceConfigurationT = SourceConfiguration>
156 SetSourceConfiguration(std::forward<SourceConfigurationT>(value));
157 return *this;
158 }
160
162
168 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
169 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
170 template <typename EnvironmentIdT = Aws::String>
171 void SetEnvironmentId(EnvironmentIdT&& value) {
172 m_environmentIdHasBeenSet = true;
173 m_environmentId = std::forward<EnvironmentIdT>(value);
174 }
175 template <typename EnvironmentIdT = Aws::String>
177 SetEnvironmentId(std::forward<EnvironmentIdT>(value));
178 return *this;
179 }
181
183
186 inline const Aws::String& GetDescription() const { return m_description; }
187 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
188 template <typename DescriptionT = Aws::String>
189 void SetDescription(DescriptionT&& value) {
190 m_descriptionHasBeenSet = true;
191 m_description = std::forward<DescriptionT>(value);
192 }
193 template <typename DescriptionT = Aws::String>
195 SetDescription(std::forward<DescriptionT>(value));
196 return *this;
197 }
199
201
209 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
210 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
211 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
212 void SetOptionSettings(OptionSettingsT&& value) {
213 m_optionSettingsHasBeenSet = true;
214 m_optionSettings = std::forward<OptionSettingsT>(value);
215 }
216 template <typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
218 SetOptionSettings(std::forward<OptionSettingsT>(value));
219 return *this;
220 }
221 template <typename OptionSettingsT = ConfigurationOptionSetting>
223 m_optionSettingsHasBeenSet = true;
224 m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value));
225 return *this;
226 }
228
230
233 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
234 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
235 template <typename TagsT = Aws::Vector<Tag>>
236 void SetTags(TagsT&& value) {
237 m_tagsHasBeenSet = true;
238 m_tags = std::forward<TagsT>(value);
239 }
240 template <typename TagsT = Aws::Vector<Tag>>
242 SetTags(std::forward<TagsT>(value));
243 return *this;
244 }
245 template <typename TagsT = Tag>
247 m_tagsHasBeenSet = true;
248 m_tags.emplace_back(std::forward<TagsT>(value));
249 return *this;
250 }
252 private:
253 Aws::String m_applicationName;
254
255 Aws::String m_templateName;
256
257 Aws::String m_solutionStackName;
258
259 Aws::String m_platformArn;
260
261 SourceConfiguration m_sourceConfiguration;
262
263 Aws::String m_environmentId;
264
265 Aws::String m_description;
266
268
269 Aws::Vector<Tag> m_tags;
270 bool m_applicationNameHasBeenSet = false;
271 bool m_templateNameHasBeenSet = false;
272 bool m_solutionStackNameHasBeenSet = false;
273 bool m_platformArnHasBeenSet = false;
274 bool m_sourceConfigurationHasBeenSet = false;
275 bool m_environmentIdHasBeenSet = false;
276 bool m_descriptionHasBeenSet = false;
277 bool m_optionSettingsHasBeenSet = false;
278 bool m_tagsHasBeenSet = false;
279};
280
281} // namespace Model
282} // namespace ElasticBeanstalk
283} // namespace Aws
CreateConfigurationTemplateRequest & WithEnvironmentId(EnvironmentIdT &&value)
CreateConfigurationTemplateRequest & WithSourceConfiguration(SourceConfigurationT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
CreateConfigurationTemplateRequest & WithPlatformArn(PlatformArnT &&value)
CreateConfigurationTemplateRequest & AddOptionSettings(OptionSettingsT &&value)
AWS_ELASTICBEANSTALK_API CreateConfigurationTemplateRequest()=default
CreateConfigurationTemplateRequest & WithDescription(DescriptionT &&value)
CreateConfigurationTemplateRequest & WithSolutionStackName(SolutionStackNameT &&value)
CreateConfigurationTemplateRequest & WithTemplateName(TemplateNameT &&value)
CreateConfigurationTemplateRequest & WithApplicationName(ApplicationNameT &&value)
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateConfigurationTemplateRequest & WithOptionSettings(OptionSettingsT &&value)
const Aws::Vector< ConfigurationOptionSetting > & GetOptionSettings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector