AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateConfigurationTemplateRequest.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/SourceConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/elasticbeanstalk/model/ConfigurationOptionSetting.h>
13#include <aws/elasticbeanstalk/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace ElasticBeanstalk
19{
20namespace Model
21{
22
29 {
30 public:
31 AWS_ELASTICBEANSTALK_API CreateConfigurationTemplateRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateConfigurationTemplate"; }
38
39 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
40
41 protected:
42 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
43
44 public:
45
47
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 CreateConfigurationTemplateRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
58
60
64 inline const Aws::String& GetTemplateName() const { return m_templateName; }
65 inline bool TemplateNameHasBeenSet() const { return m_templateNameHasBeenSet; }
66 template<typename TemplateNameT = Aws::String>
67 void SetTemplateName(TemplateNameT&& value) { m_templateNameHasBeenSet = true; m_templateName = std::forward<TemplateNameT>(value); }
68 template<typename TemplateNameT = Aws::String>
69 CreateConfigurationTemplateRequest& WithTemplateName(TemplateNameT&& value) { SetTemplateName(std::forward<TemplateNameT>(value)); return *this;}
71
73
89 inline const Aws::String& GetSolutionStackName() const { return m_solutionStackName; }
90 inline bool SolutionStackNameHasBeenSet() const { return m_solutionStackNameHasBeenSet; }
91 template<typename SolutionStackNameT = Aws::String>
92 void SetSolutionStackName(SolutionStackNameT&& value) { m_solutionStackNameHasBeenSet = true; m_solutionStackName = std::forward<SolutionStackNameT>(value); }
93 template<typename SolutionStackNameT = Aws::String>
94 CreateConfigurationTemplateRequest& WithSolutionStackName(SolutionStackNameT&& value) { SetSolutionStackName(std::forward<SolutionStackNameT>(value)); return *this;}
96
98
106 inline const Aws::String& GetPlatformArn() const { return m_platformArn; }
107 inline bool PlatformArnHasBeenSet() const { return m_platformArnHasBeenSet; }
108 template<typename PlatformArnT = Aws::String>
109 void SetPlatformArn(PlatformArnT&& value) { m_platformArnHasBeenSet = true; m_platformArn = std::forward<PlatformArnT>(value); }
110 template<typename PlatformArnT = Aws::String>
111 CreateConfigurationTemplateRequest& WithPlatformArn(PlatformArnT&& value) { SetPlatformArn(std::forward<PlatformArnT>(value)); return *this;}
113
115
127 inline const SourceConfiguration& GetSourceConfiguration() const { return m_sourceConfiguration; }
128 inline bool SourceConfigurationHasBeenSet() const { return m_sourceConfigurationHasBeenSet; }
129 template<typename SourceConfigurationT = SourceConfiguration>
130 void SetSourceConfiguration(SourceConfigurationT&& value) { m_sourceConfigurationHasBeenSet = true; m_sourceConfiguration = std::forward<SourceConfigurationT>(value); }
131 template<typename SourceConfigurationT = SourceConfiguration>
132 CreateConfigurationTemplateRequest& WithSourceConfiguration(SourceConfigurationT&& value) { SetSourceConfiguration(std::forward<SourceConfigurationT>(value)); return *this;}
134
136
142 inline const Aws::String& GetEnvironmentId() const { return m_environmentId; }
143 inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; }
144 template<typename EnvironmentIdT = Aws::String>
145 void SetEnvironmentId(EnvironmentIdT&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::forward<EnvironmentIdT>(value); }
146 template<typename EnvironmentIdT = Aws::String>
147 CreateConfigurationTemplateRequest& WithEnvironmentId(EnvironmentIdT&& value) { SetEnvironmentId(std::forward<EnvironmentIdT>(value)); return *this;}
149
151
154 inline const Aws::String& GetDescription() const { return m_description; }
155 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
156 template<typename DescriptionT = Aws::String>
157 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
158 template<typename DescriptionT = Aws::String>
159 CreateConfigurationTemplateRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
161
163
171 inline const Aws::Vector<ConfigurationOptionSetting>& GetOptionSettings() const { return m_optionSettings; }
172 inline bool OptionSettingsHasBeenSet() const { return m_optionSettingsHasBeenSet; }
173 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
174 void SetOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings = std::forward<OptionSettingsT>(value); }
175 template<typename OptionSettingsT = Aws::Vector<ConfigurationOptionSetting>>
176 CreateConfigurationTemplateRequest& WithOptionSettings(OptionSettingsT&& value) { SetOptionSettings(std::forward<OptionSettingsT>(value)); return *this;}
177 template<typename OptionSettingsT = ConfigurationOptionSetting>
178 CreateConfigurationTemplateRequest& AddOptionSettings(OptionSettingsT&& value) { m_optionSettingsHasBeenSet = true; m_optionSettings.emplace_back(std::forward<OptionSettingsT>(value)); return *this; }
180
182
185 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
186 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
187 template<typename TagsT = Aws::Vector<Tag>>
188 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
189 template<typename TagsT = Aws::Vector<Tag>>
190 CreateConfigurationTemplateRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
191 template<typename TagsT = Tag>
192 CreateConfigurationTemplateRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
194 private:
195
196 Aws::String m_applicationName;
197 bool m_applicationNameHasBeenSet = false;
198
199 Aws::String m_templateName;
200 bool m_templateNameHasBeenSet = false;
201
202 Aws::String m_solutionStackName;
203 bool m_solutionStackNameHasBeenSet = false;
204
205 Aws::String m_platformArn;
206 bool m_platformArnHasBeenSet = false;
207
208 SourceConfiguration m_sourceConfiguration;
209 bool m_sourceConfigurationHasBeenSet = false;
210
211 Aws::String m_environmentId;
212 bool m_environmentIdHasBeenSet = false;
213
214 Aws::String m_description;
215 bool m_descriptionHasBeenSet = false;
216
218 bool m_optionSettingsHasBeenSet = false;
219
220 Aws::Vector<Tag> m_tags;
221 bool m_tagsHasBeenSet = false;
222 };
223
224} // namespace Model
225} // namespace ElasticBeanstalk
226} // 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