AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
56 inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
57 inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
59 inline CreateApplicationVersionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
60 inline CreateApplicationVersionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
62
64
70 inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
71 inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
72 inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
73 inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
74 inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
75 inline CreateApplicationVersionRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
76 inline CreateApplicationVersionRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
77 inline CreateApplicationVersionRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
79
81
84 inline const Aws::String& GetDescription() const{ return m_description; }
85 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
86 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
87 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
88 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
89 inline CreateApplicationVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
90 inline CreateApplicationVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
91 inline CreateApplicationVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
93
95
99 inline const SourceBuildInformation& GetSourceBuildInformation() const{ return m_sourceBuildInformation; }
100 inline bool SourceBuildInformationHasBeenSet() const { return m_sourceBuildInformationHasBeenSet; }
101 inline void SetSourceBuildInformation(const SourceBuildInformation& value) { m_sourceBuildInformationHasBeenSet = true; m_sourceBuildInformation = value; }
102 inline void SetSourceBuildInformation(SourceBuildInformation&& value) { m_sourceBuildInformationHasBeenSet = true; m_sourceBuildInformation = std::move(value); }
106
108
117 inline const S3Location& GetSourceBundle() const{ return m_sourceBundle; }
118 inline bool SourceBundleHasBeenSet() const { return m_sourceBundleHasBeenSet; }
119 inline void SetSourceBundle(const S3Location& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = value; }
120 inline void SetSourceBundle(S3Location&& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = std::move(value); }
121 inline CreateApplicationVersionRequest& WithSourceBundle(const S3Location& value) { SetSourceBundle(value); return *this;}
122 inline CreateApplicationVersionRequest& WithSourceBundle(S3Location&& value) { SetSourceBundle(std::move(value)); return *this;}
124
126
129 inline const BuildConfiguration& GetBuildConfiguration() const{ return m_buildConfiguration; }
130 inline bool BuildConfigurationHasBeenSet() const { return m_buildConfigurationHasBeenSet; }
131 inline void SetBuildConfiguration(const BuildConfiguration& value) { m_buildConfigurationHasBeenSet = true; m_buildConfiguration = value; }
132 inline void SetBuildConfiguration(BuildConfiguration&& value) { m_buildConfigurationHasBeenSet = true; m_buildConfiguration = std::move(value); }
136
138
142 inline bool GetAutoCreateApplication() const{ return m_autoCreateApplication; }
143 inline bool AutoCreateApplicationHasBeenSet() const { return m_autoCreateApplicationHasBeenSet; }
144 inline void SetAutoCreateApplication(bool value) { m_autoCreateApplicationHasBeenSet = true; m_autoCreateApplication = value; }
147
149
161 inline bool GetProcess() const{ return m_process; }
162 inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
163 inline void SetProcess(bool value) { m_processHasBeenSet = true; m_process = value; }
164 inline CreateApplicationVersionRequest& WithProcess(bool value) { SetProcess(value); return *this;}
166
168
173 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
174 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
175 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
176 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
177 inline CreateApplicationVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
178 inline CreateApplicationVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
179 inline CreateApplicationVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
180 inline CreateApplicationVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
182 private:
183
184 Aws::String m_applicationName;
185 bool m_applicationNameHasBeenSet = false;
186
187 Aws::String m_versionLabel;
188 bool m_versionLabelHasBeenSet = false;
189
190 Aws::String m_description;
191 bool m_descriptionHasBeenSet = false;
192
193 SourceBuildInformation m_sourceBuildInformation;
194 bool m_sourceBuildInformationHasBeenSet = false;
195
196 S3Location m_sourceBundle;
197 bool m_sourceBundleHasBeenSet = false;
198
199 BuildConfiguration m_buildConfiguration;
200 bool m_buildConfigurationHasBeenSet = false;
201
202 bool m_autoCreateApplication;
203 bool m_autoCreateApplicationHasBeenSet = false;
204
205 bool m_process;
206 bool m_processHasBeenSet = false;
207
208 Aws::Vector<Tag> m_tags;
209 bool m_tagsHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace ElasticBeanstalk
214} // namespace Aws
CreateApplicationVersionRequest & WithSourceBuildInformation(const SourceBuildInformation &value)
CreateApplicationVersionRequest & WithVersionLabel(const char *value)
CreateApplicationVersionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateApplicationVersionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateApplicationVersionRequest & WithVersionLabel(Aws::String &&value)
CreateApplicationVersionRequest & WithDescription(const char *value)
CreateApplicationVersionRequest & WithSourceBundle(const S3Location &value)
CreateApplicationVersionRequest & WithVersionLabel(const Aws::String &value)
CreateApplicationVersionRequest & WithSourceBuildInformation(SourceBuildInformation &&value)
CreateApplicationVersionRequest & WithApplicationName(Aws::String &&value)
CreateApplicationVersionRequest & WithApplicationName(const Aws::String &value)
CreateApplicationVersionRequest & WithBuildConfiguration(BuildConfiguration &&value)
CreateApplicationVersionRequest & WithApplicationName(const char *value)
CreateApplicationVersionRequest & WithSourceBundle(S3Location &&value)
AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override
AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI &uri) const override
CreateApplicationVersionRequest & WithDescription(Aws::String &&value)
CreateApplicationVersionRequest & WithBuildConfiguration(const BuildConfiguration &value)
CreateApplicationVersionRequest & WithDescription(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector