AWS SDK for C++

AWS SDK for C++ Version 1.11.743

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/S3Location.h>
13#include <aws/elasticbeanstalk/model/SourceBuildInformation.h>
14#include <aws/elasticbeanstalk/model/Tag.h>
15
16#include <utility>
17
18namespace Aws {
19namespace ElasticBeanstalk {
20namespace Model {
21
28 public:
29 AWS_ELASTICBEANSTALK_API CreateApplicationVersionRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateApplicationVersion"; }
36
37 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
38
39 protected:
40 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri) const override;
41
42 public:
44
49 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
50 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
51 template <typename ApplicationNameT = Aws::String>
52 void SetApplicationName(ApplicationNameT&& value) {
53 m_applicationNameHasBeenSet = true;
54 m_applicationName = std::forward<ApplicationNameT>(value);
55 }
56 template <typename ApplicationNameT = Aws::String>
58 SetApplicationName(std::forward<ApplicationNameT>(value));
59 return *this;
60 }
62
64
70 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
71 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
72 template <typename VersionLabelT = Aws::String>
73 void SetVersionLabel(VersionLabelT&& value) {
74 m_versionLabelHasBeenSet = true;
75 m_versionLabel = std::forward<VersionLabelT>(value);
76 }
77 template <typename VersionLabelT = Aws::String>
79 SetVersionLabel(std::forward<VersionLabelT>(value));
80 return *this;
81 }
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template <typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) {
92 m_descriptionHasBeenSet = true;
93 m_description = std::forward<DescriptionT>(value);
94 }
95 template <typename DescriptionT = Aws::String>
97 SetDescription(std::forward<DescriptionT>(value));
98 return *this;
99 }
101
103
107 inline const SourceBuildInformation& GetSourceBuildInformation() const { return m_sourceBuildInformation; }
108 inline bool SourceBuildInformationHasBeenSet() const { return m_sourceBuildInformationHasBeenSet; }
109 template <typename SourceBuildInformationT = SourceBuildInformation>
110 void SetSourceBuildInformation(SourceBuildInformationT&& value) {
111 m_sourceBuildInformationHasBeenSet = true;
112 m_sourceBuildInformation = std::forward<SourceBuildInformationT>(value);
113 }
114 template <typename SourceBuildInformationT = SourceBuildInformation>
116 SetSourceBuildInformation(std::forward<SourceBuildInformationT>(value));
117 return *this;
118 }
120
122
131 inline const S3Location& GetSourceBundle() const { return m_sourceBundle; }
132 inline bool SourceBundleHasBeenSet() const { return m_sourceBundleHasBeenSet; }
133 template <typename SourceBundleT = S3Location>
134 void SetSourceBundle(SourceBundleT&& value) {
135 m_sourceBundleHasBeenSet = true;
136 m_sourceBundle = std::forward<SourceBundleT>(value);
137 }
138 template <typename SourceBundleT = S3Location>
140 SetSourceBundle(std::forward<SourceBundleT>(value));
141 return *this;
142 }
144
146
149 inline const BuildConfiguration& GetBuildConfiguration() const { return m_buildConfiguration; }
150 inline bool BuildConfigurationHasBeenSet() const { return m_buildConfigurationHasBeenSet; }
151 template <typename BuildConfigurationT = BuildConfiguration>
152 void SetBuildConfiguration(BuildConfigurationT&& value) {
153 m_buildConfigurationHasBeenSet = true;
154 m_buildConfiguration = std::forward<BuildConfigurationT>(value);
155 }
156 template <typename BuildConfigurationT = BuildConfiguration>
158 SetBuildConfiguration(std::forward<BuildConfigurationT>(value));
159 return *this;
160 }
162
164
168 inline bool GetAutoCreateApplication() const { return m_autoCreateApplication; }
169 inline bool AutoCreateApplicationHasBeenSet() const { return m_autoCreateApplicationHasBeenSet; }
170 inline void SetAutoCreateApplication(bool value) {
171 m_autoCreateApplicationHasBeenSet = true;
172 m_autoCreateApplication = value;
173 }
176 return *this;
177 }
179
181
193 inline bool GetProcess() const { return m_process; }
194 inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
195 inline void SetProcess(bool value) {
196 m_processHasBeenSet = true;
197 m_process = value;
198 }
200 SetProcess(value);
201 return *this;
202 }
204
206
211 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
212 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
213 template <typename TagsT = Aws::Vector<Tag>>
214 void SetTags(TagsT&& value) {
215 m_tagsHasBeenSet = true;
216 m_tags = std::forward<TagsT>(value);
217 }
218 template <typename TagsT = Aws::Vector<Tag>>
220 SetTags(std::forward<TagsT>(value));
221 return *this;
222 }
223 template <typename TagsT = Tag>
225 m_tagsHasBeenSet = true;
226 m_tags.emplace_back(std::forward<TagsT>(value));
227 return *this;
228 }
230 private:
231 Aws::String m_applicationName;
232
233 Aws::String m_versionLabel;
234
235 Aws::String m_description;
236
237 SourceBuildInformation m_sourceBuildInformation;
238
239 S3Location m_sourceBundle;
240
241 BuildConfiguration m_buildConfiguration;
242
243 bool m_autoCreateApplication{false};
244
245 bool m_process{false};
246
247 Aws::Vector<Tag> m_tags;
248 bool m_applicationNameHasBeenSet = false;
249 bool m_versionLabelHasBeenSet = false;
250 bool m_descriptionHasBeenSet = false;
251 bool m_sourceBuildInformationHasBeenSet = false;
252 bool m_sourceBundleHasBeenSet = false;
253 bool m_buildConfigurationHasBeenSet = false;
254 bool m_autoCreateApplicationHasBeenSet = false;
255 bool m_processHasBeenSet = false;
256 bool m_tagsHasBeenSet = false;
257};
258
259} // namespace Model
260} // namespace ElasticBeanstalk
261} // 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)
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