AWS SDK for C++

AWS SDK for C++ Version 1.11.909

Loading...
Searching...
No Matches
CreateApplicationVersionRequest.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/BuildConfiguration.h>
12#include <aws/elasticbeanstalk/model/ImageConfiguration.h>
13#include <aws/elasticbeanstalk/model/S3Location.h>
14#include <aws/elasticbeanstalk/model/SourceBuildInformation.h>
15#include <aws/elasticbeanstalk/model/Tag.h>
16
17#include <utility>
18
19namespace Aws {
20namespace ElasticBeanstalk {
21namespace Model {
22
29 public:
30 AWS_ELASTICBEANSTALK_API CreateApplicationVersionRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateApplicationVersion"; }
37
38 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
39
40 protected:
41 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
42
43 public:
45
50 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
51 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
52 template <typename ApplicationNameT = Aws::String>
53 void SetApplicationName(ApplicationNameT&& value) {
54 m_applicationNameHasBeenSet = true;
55 m_applicationName = std::forward<ApplicationNameT>(value);
56 }
57 template <typename ApplicationNameT = Aws::String>
59 SetApplicationName(std::forward<ApplicationNameT>(value));
60 return *this;
61 }
63
65
71 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
72 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
73 template <typename VersionLabelT = Aws::String>
74 void SetVersionLabel(VersionLabelT&& value) {
75 m_versionLabelHasBeenSet = true;
76 m_versionLabel = std::forward<VersionLabelT>(value);
77 }
78 template <typename VersionLabelT = Aws::String>
80 SetVersionLabel(std::forward<VersionLabelT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetDescription() const { return m_description; }
90 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
91 template <typename DescriptionT = Aws::String>
92 void SetDescription(DescriptionT&& value) {
93 m_descriptionHasBeenSet = true;
94 m_description = std::forward<DescriptionT>(value);
95 }
96 template <typename DescriptionT = Aws::String>
98 SetDescription(std::forward<DescriptionT>(value));
99 return *this;
100 }
102
104
108 inline const SourceBuildInformation& GetSourceBuildInformation() const { return m_sourceBuildInformation; }
109 inline bool SourceBuildInformationHasBeenSet() const { return m_sourceBuildInformationHasBeenSet; }
110 template <typename SourceBuildInformationT = SourceBuildInformation>
111 void SetSourceBuildInformation(SourceBuildInformationT&& value) {
112 m_sourceBuildInformationHasBeenSet = true;
113 m_sourceBuildInformation = std::forward<SourceBuildInformationT>(value);
114 }
115 template <typename SourceBuildInformationT = SourceBuildInformation>
117 SetSourceBuildInformation(std::forward<SourceBuildInformationT>(value));
118 return *this;
119 }
121
123
136 inline const S3Location& GetSourceBundle() const { return m_sourceBundle; }
137 inline bool SourceBundleHasBeenSet() const { return m_sourceBundleHasBeenSet; }
138 template <typename SourceBundleT = S3Location>
139 void SetSourceBundle(SourceBundleT&& value) {
140 m_sourceBundleHasBeenSet = true;
141 m_sourceBundle = std::forward<SourceBundleT>(value);
142 }
143 template <typename SourceBundleT = S3Location>
145 SetSourceBundle(std::forward<SourceBundleT>(value));
146 return *this;
147 }
149
151
156 inline const BuildConfiguration& GetBuildConfiguration() const { return m_buildConfiguration; }
157 inline bool BuildConfigurationHasBeenSet() const { return m_buildConfigurationHasBeenSet; }
158 template <typename BuildConfigurationT = BuildConfiguration>
159 void SetBuildConfiguration(BuildConfigurationT&& value) {
160 m_buildConfigurationHasBeenSet = true;
161 m_buildConfiguration = std::forward<BuildConfigurationT>(value);
162 }
163 template <typename BuildConfigurationT = BuildConfiguration>
165 SetBuildConfiguration(std::forward<BuildConfigurationT>(value));
166 return *this;
167 }
169
171
175 inline bool GetAutoCreateApplication() const { return m_autoCreateApplication; }
176 inline bool AutoCreateApplicationHasBeenSet() const { return m_autoCreateApplicationHasBeenSet; }
177 inline void SetAutoCreateApplication(bool value) {
178 m_autoCreateApplicationHasBeenSet = true;
179 m_autoCreateApplication = value;
180 }
183 return *this;
184 }
186
188
200 inline bool GetProcess() const { return m_process; }
201 inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
202 inline void SetProcess(bool value) {
203 m_processHasBeenSet = true;
204 m_process = value;
205 }
207 SetProcess(value);
208 return *this;
209 }
211
213
218 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
219 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
220 template <typename TagsT = Aws::Vector<Tag>>
221 void SetTags(TagsT&& value) {
222 m_tagsHasBeenSet = true;
223 m_tags = std::forward<TagsT>(value);
224 }
225 template <typename TagsT = Aws::Vector<Tag>>
227 SetTags(std::forward<TagsT>(value));
228 return *this;
229 }
230 template <typename TagsT = Tag>
232 m_tagsHasBeenSet = true;
233 m_tags.emplace_back(std::forward<TagsT>(value));
234 return *this;
235 }
237
239
248 inline const ImageConfiguration& GetImageConfiguration() const { return m_imageConfiguration; }
249 inline bool ImageConfigurationHasBeenSet() const { return m_imageConfigurationHasBeenSet; }
250 template <typename ImageConfigurationT = ImageConfiguration>
251 void SetImageConfiguration(ImageConfigurationT&& value) {
252 m_imageConfigurationHasBeenSet = true;
253 m_imageConfiguration = std::forward<ImageConfigurationT>(value);
254 }
255 template <typename ImageConfigurationT = ImageConfiguration>
257 SetImageConfiguration(std::forward<ImageConfigurationT>(value));
258 return *this;
259 }
261 private:
262 Aws::String m_applicationName;
263
264 Aws::String m_versionLabel;
265
266 Aws::String m_description;
267
268 SourceBuildInformation m_sourceBuildInformation;
269
270 S3Location m_sourceBundle;
271
272 BuildConfiguration m_buildConfiguration;
273
274 bool m_autoCreateApplication{false};
275
276 bool m_process{false};
277
278 Aws::Vector<Tag> m_tags;
279
280 ImageConfiguration m_imageConfiguration;
281 bool m_applicationNameHasBeenSet = false;
282 bool m_versionLabelHasBeenSet = false;
283 bool m_descriptionHasBeenSet = false;
284 bool m_sourceBuildInformationHasBeenSet = false;
285 bool m_sourceBundleHasBeenSet = false;
286 bool m_buildConfigurationHasBeenSet = false;
287 bool m_autoCreateApplicationHasBeenSet = false;
288 bool m_processHasBeenSet = false;
289 bool m_tagsHasBeenSet = false;
290 bool m_imageConfigurationHasBeenSet = false;
291};
292
293} // namespace Model
294} // namespace ElasticBeanstalk
295} // namespace Aws
CreateApplicationVersionRequest & WithSourceBuildInformation(SourceBuildInformationT &&value)
CreateApplicationVersionRequest & WithBuildConfiguration(BuildConfigurationT &&value)
CreateApplicationVersionRequest & WithDescription(DescriptionT &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateApplicationVersionRequest & WithSourceBundle(SourceBundleT &&value)
CreateApplicationVersionRequest & WithImageConfiguration(ImageConfigurationT &&value)
AWS_ELASTICBEANSTALK_API CreateApplicationVersionRequest()=default
CreateApplicationVersionRequest & WithApplicationName(ApplicationNameT &&value)
CreateApplicationVersionRequest & WithVersionLabel(VersionLabelT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector