AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateApplicationVersionRequest.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/SourceBuildInformation.h>
11#include <aws/elasticbeanstalk/model/S3Location.h>
12#include <aws/elasticbeanstalk/model/BuildConfiguration.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/elasticbeanstalk/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace ElasticBeanstalk
20{
21namespace Model
22{
23
30 {
31 public:
32 AWS_ELASTICBEANSTALK_API CreateApplicationVersionRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateApplicationVersion"; }
39
40 AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override;
41
42 protected:
43 AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44
45 public:
46
48
53 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
54 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
55 template<typename ApplicationNameT = Aws::String>
56 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
57 template<typename ApplicationNameT = Aws::String>
58 CreateApplicationVersionRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
60
62
68 inline const Aws::String& GetVersionLabel() const { return m_versionLabel; }
69 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
70 template<typename VersionLabelT = Aws::String>
71 void SetVersionLabel(VersionLabelT&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::forward<VersionLabelT>(value); }
72 template<typename VersionLabelT = Aws::String>
73 CreateApplicationVersionRequest& WithVersionLabel(VersionLabelT&& value) { SetVersionLabel(std::forward<VersionLabelT>(value)); return *this;}
75
77
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template<typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
84 template<typename DescriptionT = Aws::String>
85 CreateApplicationVersionRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
87
89
93 inline const SourceBuildInformation& GetSourceBuildInformation() const { return m_sourceBuildInformation; }
94 inline bool SourceBuildInformationHasBeenSet() const { return m_sourceBuildInformationHasBeenSet; }
95 template<typename SourceBuildInformationT = SourceBuildInformation>
96 void SetSourceBuildInformation(SourceBuildInformationT&& value) { m_sourceBuildInformationHasBeenSet = true; m_sourceBuildInformation = std::forward<SourceBuildInformationT>(value); }
97 template<typename SourceBuildInformationT = SourceBuildInformation>
98 CreateApplicationVersionRequest& WithSourceBuildInformation(SourceBuildInformationT&& value) { SetSourceBuildInformation(std::forward<SourceBuildInformationT>(value)); return *this;}
100
102
111 inline const S3Location& GetSourceBundle() const { return m_sourceBundle; }
112 inline bool SourceBundleHasBeenSet() const { return m_sourceBundleHasBeenSet; }
113 template<typename SourceBundleT = S3Location>
114 void SetSourceBundle(SourceBundleT&& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = std::forward<SourceBundleT>(value); }
115 template<typename SourceBundleT = S3Location>
116 CreateApplicationVersionRequest& WithSourceBundle(SourceBundleT&& value) { SetSourceBundle(std::forward<SourceBundleT>(value)); return *this;}
118
120
123 inline const BuildConfiguration& GetBuildConfiguration() const { return m_buildConfiguration; }
124 inline bool BuildConfigurationHasBeenSet() const { return m_buildConfigurationHasBeenSet; }
125 template<typename BuildConfigurationT = BuildConfiguration>
126 void SetBuildConfiguration(BuildConfigurationT&& value) { m_buildConfigurationHasBeenSet = true; m_buildConfiguration = std::forward<BuildConfigurationT>(value); }
127 template<typename BuildConfigurationT = BuildConfiguration>
128 CreateApplicationVersionRequest& WithBuildConfiguration(BuildConfigurationT&& value) { SetBuildConfiguration(std::forward<BuildConfigurationT>(value)); return *this;}
130
132
136 inline bool GetAutoCreateApplication() const { return m_autoCreateApplication; }
137 inline bool AutoCreateApplicationHasBeenSet() const { return m_autoCreateApplicationHasBeenSet; }
138 inline void SetAutoCreateApplication(bool value) { m_autoCreateApplicationHasBeenSet = true; m_autoCreateApplication = value; }
141
143
155 inline bool GetProcess() const { return m_process; }
156 inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
157 inline void SetProcess(bool value) { m_processHasBeenSet = true; m_process = value; }
158 inline CreateApplicationVersionRequest& WithProcess(bool value) { SetProcess(value); return *this;}
160
162
167 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
168 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 template<typename TagsT = Aws::Vector<Tag>>
170 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
171 template<typename TagsT = Aws::Vector<Tag>>
172 CreateApplicationVersionRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
173 template<typename TagsT = Tag>
174 CreateApplicationVersionRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
176 private:
177
178 Aws::String m_applicationName;
179 bool m_applicationNameHasBeenSet = false;
180
181 Aws::String m_versionLabel;
182 bool m_versionLabelHasBeenSet = false;
183
184 Aws::String m_description;
185 bool m_descriptionHasBeenSet = false;
186
187 SourceBuildInformation m_sourceBuildInformation;
188 bool m_sourceBuildInformationHasBeenSet = false;
189
190 S3Location m_sourceBundle;
191 bool m_sourceBundleHasBeenSet = false;
192
193 BuildConfiguration m_buildConfiguration;
194 bool m_buildConfigurationHasBeenSet = false;
195
196 bool m_autoCreateApplication{false};
197 bool m_autoCreateApplicationHasBeenSet = false;
198
199 bool m_process{false};
200 bool m_processHasBeenSet = false;
201
202 Aws::Vector<Tag> m_tags;
203 bool m_tagsHasBeenSet = false;
204 };
205
206} // namespace Model
207} // namespace ElasticBeanstalk
208} // 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