AWS SDK for C++

AWS SDK for C++ Version 1.11.924

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
205 inline bool GetProcess() const { return m_process; }
206 inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
207 inline void SetProcess(bool value) {
208 m_processHasBeenSet = true;
209 m_process = value;
210 }
212 SetProcess(value);
213 return *this;
214 }
216
218
223 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
224 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
225 template <typename TagsT = Aws::Vector<Tag>>
226 void SetTags(TagsT&& value) {
227 m_tagsHasBeenSet = true;
228 m_tags = std::forward<TagsT>(value);
229 }
230 template <typename TagsT = Aws::Vector<Tag>>
232 SetTags(std::forward<TagsT>(value));
233 return *this;
234 }
235 template <typename TagsT = Tag>
237 m_tagsHasBeenSet = true;
238 m_tags.emplace_back(std::forward<TagsT>(value));
239 return *this;
240 }
242
244
253 inline const ImageConfiguration& GetImageConfiguration() const { return m_imageConfiguration; }
254 inline bool ImageConfigurationHasBeenSet() const { return m_imageConfigurationHasBeenSet; }
255 template <typename ImageConfigurationT = ImageConfiguration>
256 void SetImageConfiguration(ImageConfigurationT&& value) {
257 m_imageConfigurationHasBeenSet = true;
258 m_imageConfiguration = std::forward<ImageConfigurationT>(value);
259 }
260 template <typename ImageConfigurationT = ImageConfiguration>
262 SetImageConfiguration(std::forward<ImageConfigurationT>(value));
263 return *this;
264 }
266 private:
267 Aws::String m_applicationName;
268
269 Aws::String m_versionLabel;
270
271 Aws::String m_description;
272
273 SourceBuildInformation m_sourceBuildInformation;
274
275 S3Location m_sourceBundle;
276
277 BuildConfiguration m_buildConfiguration;
278
279 bool m_autoCreateApplication{false};
280
281 bool m_process{false};
282
283 Aws::Vector<Tag> m_tags;
284
285 ImageConfiguration m_imageConfiguration;
286 bool m_applicationNameHasBeenSet = false;
287 bool m_versionLabelHasBeenSet = false;
288 bool m_descriptionHasBeenSet = false;
289 bool m_sourceBuildInformationHasBeenSet = false;
290 bool m_sourceBundleHasBeenSet = false;
291 bool m_buildConfigurationHasBeenSet = false;
292 bool m_autoCreateApplicationHasBeenSet = false;
293 bool m_processHasBeenSet = false;
294 bool m_tagsHasBeenSet = false;
295 bool m_imageConfigurationHasBeenSet = false;
296};
297
298} // namespace Model
299} // namespace ElasticBeanstalk
300} // 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