AWS SDK for C++  1.9.20
AWS SDK for C++
CreateApplicationVersionRequest.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace ElasticBeanstalk
20 {
21 namespace Model
22 {
23 
30  {
31  public:
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::String SerializePayload() const override;
41 
42  protected:
43  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
44 
45  public:
46 
52  inline const Aws::String& GetApplicationName() const{ return m_applicationName; }
53 
59  inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
60 
66  inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; }
67 
73  inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); }
74 
80  inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); }
81 
87  inline CreateApplicationVersionRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;}
88 
94  inline CreateApplicationVersionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;}
95 
101  inline CreateApplicationVersionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;}
102 
103 
110  inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; }
111 
118  inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; }
119 
126  inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; }
127 
134  inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); }
135 
142  inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); }
143 
150  inline CreateApplicationVersionRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;}
151 
158  inline CreateApplicationVersionRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;}
159 
166  inline CreateApplicationVersionRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;}
167 
168 
172  inline const Aws::String& GetDescription() const{ return m_description; }
173 
177  inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
178 
182  inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
183 
187  inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
188 
192  inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
193 
197  inline CreateApplicationVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
198 
202  inline CreateApplicationVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
203 
207  inline CreateApplicationVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
208 
209 
214  inline const SourceBuildInformation& GetSourceBuildInformation() const{ return m_sourceBuildInformation; }
215 
220  inline bool SourceBuildInformationHasBeenSet() const { return m_sourceBuildInformationHasBeenSet; }
221 
226  inline void SetSourceBuildInformation(const SourceBuildInformation& value) { m_sourceBuildInformationHasBeenSet = true; m_sourceBuildInformation = value; }
227 
232  inline void SetSourceBuildInformation(SourceBuildInformation&& value) { m_sourceBuildInformationHasBeenSet = true; m_sourceBuildInformation = std::move(value); }
233 
238  inline CreateApplicationVersionRequest& WithSourceBuildInformation(const SourceBuildInformation& value) { SetSourceBuildInformation(value); return *this;}
239 
244  inline CreateApplicationVersionRequest& WithSourceBuildInformation(SourceBuildInformation&& value) { SetSourceBuildInformation(std::move(value)); return *this;}
245 
246 
256  inline const S3Location& GetSourceBundle() const{ return m_sourceBundle; }
257 
267  inline bool SourceBundleHasBeenSet() const { return m_sourceBundleHasBeenSet; }
268 
278  inline void SetSourceBundle(const S3Location& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = value; }
279 
289  inline void SetSourceBundle(S3Location&& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = std::move(value); }
290 
300  inline CreateApplicationVersionRequest& WithSourceBundle(const S3Location& value) { SetSourceBundle(value); return *this;}
301 
311  inline CreateApplicationVersionRequest& WithSourceBundle(S3Location&& value) { SetSourceBundle(std::move(value)); return *this;}
312 
313 
317  inline const BuildConfiguration& GetBuildConfiguration() const{ return m_buildConfiguration; }
318 
322  inline bool BuildConfigurationHasBeenSet() const { return m_buildConfigurationHasBeenSet; }
323 
327  inline void SetBuildConfiguration(const BuildConfiguration& value) { m_buildConfigurationHasBeenSet = true; m_buildConfiguration = value; }
328 
332  inline void SetBuildConfiguration(BuildConfiguration&& value) { m_buildConfigurationHasBeenSet = true; m_buildConfiguration = std::move(value); }
333 
337  inline CreateApplicationVersionRequest& WithBuildConfiguration(const BuildConfiguration& value) { SetBuildConfiguration(value); return *this;}
338 
342  inline CreateApplicationVersionRequest& WithBuildConfiguration(BuildConfiguration&& value) { SetBuildConfiguration(std::move(value)); return *this;}
343 
344 
349  inline bool GetAutoCreateApplication() const{ return m_autoCreateApplication; }
350 
355  inline bool AutoCreateApplicationHasBeenSet() const { return m_autoCreateApplicationHasBeenSet; }
356 
361  inline void SetAutoCreateApplication(bool value) { m_autoCreateApplicationHasBeenSet = true; m_autoCreateApplication = value; }
362 
367  inline CreateApplicationVersionRequest& WithAutoCreateApplication(bool value) { SetAutoCreateApplication(value); return *this;}
368 
369 
382  inline bool GetProcess() const{ return m_process; }
383 
396  inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; }
397 
410  inline void SetProcess(bool value) { m_processHasBeenSet = true; m_process = value; }
411 
424  inline CreateApplicationVersionRequest& WithProcess(bool value) { SetProcess(value); return *this;}
425 
426 
432  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
433 
439  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
440 
446  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
447 
453  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
454 
460  inline CreateApplicationVersionRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
461 
467  inline CreateApplicationVersionRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
468 
474  inline CreateApplicationVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
475 
481  inline CreateApplicationVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
482 
483  private:
484 
485  Aws::String m_applicationName;
486  bool m_applicationNameHasBeenSet;
487 
488  Aws::String m_versionLabel;
489  bool m_versionLabelHasBeenSet;
490 
491  Aws::String m_description;
492  bool m_descriptionHasBeenSet;
493 
494  SourceBuildInformation m_sourceBuildInformation;
495  bool m_sourceBuildInformationHasBeenSet;
496 
497  S3Location m_sourceBundle;
498  bool m_sourceBundleHasBeenSet;
499 
500  BuildConfiguration m_buildConfiguration;
501  bool m_buildConfigurationHasBeenSet;
502 
503  bool m_autoCreateApplication;
504  bool m_autoCreateApplicationHasBeenSet;
505 
506  bool m_process;
507  bool m_processHasBeenSet;
508 
509  Aws::Vector<Tag> m_tags;
510  bool m_tagsHasBeenSet;
511  };
512 
513 } // namespace Model
514 } // namespace ElasticBeanstalk
515 } // namespace Aws
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetVersionLabel
void SetVersionLabel(const Aws::String &value)
Definition: CreateApplicationVersionRequest.h:126
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetBuildConfiguration
const BuildConfiguration & GetBuildConfiguration() const
Definition: CreateApplicationVersionRequest.h:317
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetDescription
void SetDescription(const char *value)
Definition: CreateApplicationVersionRequest.h:192
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetSourceBundle
void SetSourceBundle(const S3Location &value)
Definition: CreateApplicationVersionRequest.h:278
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetApplicationName
void SetApplicationName(const Aws::String &value)
Definition: CreateApplicationVersionRequest.h:66
Aws::Http::URI
Definition: URI.h:32
AWS_ELASTICBEANSTALK_API
#define AWS_ELASTICBEANSTALK_API
Definition: ElasticBeanstalk_EXPORTS.h:28
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetProcess
bool GetProcess() const
Definition: CreateApplicationVersionRequest.h:382
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::CreateApplicationVersionRequest
CreateApplicationVersionRequest()
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::AddTags
CreateApplicationVersionRequest & AddTags(const Tag &value)
Definition: CreateApplicationVersionRequest.h:474
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetBuildConfiguration
void SetBuildConfiguration(const BuildConfiguration &value)
Definition: CreateApplicationVersionRequest.h:327
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithTags
CreateApplicationVersionRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateApplicationVersionRequest.h:467
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::AutoCreateApplicationHasBeenSet
bool AutoCreateApplicationHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:355
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetDescription
void SetDescription(Aws::String &&value)
Definition: CreateApplicationVersionRequest.h:187
Tag.h
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetApplicationName
void SetApplicationName(Aws::String &&value)
Definition: CreateApplicationVersionRequest.h:73
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetVersionLabel
void SetVersionLabel(Aws::String &&value)
Definition: CreateApplicationVersionRequest.h:134
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::DescriptionHasBeenSet
bool DescriptionHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:177
ElasticBeanstalkRequest.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SourceBundleHasBeenSet
bool SourceBundleHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:267
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateApplicationVersionRequest.h:432
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetSourceBuildInformation
const SourceBuildInformation & GetSourceBuildInformation() const
Definition: CreateApplicationVersionRequest.h:214
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithDescription
CreateApplicationVersionRequest & WithDescription(const Aws::String &value)
Definition: CreateApplicationVersionRequest.h:197
AWSVector.h
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetDescription
void SetDescription(const Aws::String &value)
Definition: CreateApplicationVersionRequest.h:182
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest
Definition: CreateApplicationVersionRequest.h:30
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithVersionLabel
CreateApplicationVersionRequest & WithVersionLabel(Aws::String &&value)
Definition: CreateApplicationVersionRequest.h:158
Aws::ElasticBeanstalk::Model::SourceBuildInformation
Definition: SourceBuildInformation.h:35
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithAutoCreateApplication
CreateApplicationVersionRequest & WithAutoCreateApplication(bool value)
Definition: CreateApplicationVersionRequest.h:367
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::VersionLabelHasBeenSet
bool VersionLabelHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:118
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithBuildConfiguration
CreateApplicationVersionRequest & WithBuildConfiguration(const BuildConfiguration &value)
Definition: CreateApplicationVersionRequest.h:337
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::ApplicationNameHasBeenSet
bool ApplicationNameHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:59
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetSourceBundle
void SetSourceBundle(S3Location &&value)
Definition: CreateApplicationVersionRequest.h:289
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithSourceBundle
CreateApplicationVersionRequest & WithSourceBundle(const S3Location &value)
Definition: CreateApplicationVersionRequest.h:300
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetSourceBuildInformation
void SetSourceBuildInformation(SourceBuildInformation &&value)
Definition: CreateApplicationVersionRequest.h:232
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithDescription
CreateApplicationVersionRequest & WithDescription(Aws::String &&value)
Definition: CreateApplicationVersionRequest.h:202
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithTags
CreateApplicationVersionRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateApplicationVersionRequest.h:460
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetBuildConfiguration
void SetBuildConfiguration(BuildConfiguration &&value)
Definition: CreateApplicationVersionRequest.h:332
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::ProcessHasBeenSet
bool ProcessHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:396
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithSourceBundle
CreateApplicationVersionRequest & WithSourceBundle(S3Location &&value)
Definition: CreateApplicationVersionRequest.h:311
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetApplicationName
void SetApplicationName(const char *value)
Definition: CreateApplicationVersionRequest.h:80
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithApplicationName
CreateApplicationVersionRequest & WithApplicationName(const Aws::String &value)
Definition: CreateApplicationVersionRequest.h:87
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetAutoCreateApplication
void SetAutoCreateApplication(bool value)
Definition: CreateApplicationVersionRequest.h:361
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetSourceBundle
const S3Location & GetSourceBundle() const
Definition: CreateApplicationVersionRequest.h:256
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithSourceBuildInformation
CreateApplicationVersionRequest & WithSourceBuildInformation(const SourceBuildInformation &value)
Definition: CreateApplicationVersionRequest.h:238
AWSString.h
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithSourceBuildInformation
CreateApplicationVersionRequest & WithSourceBuildInformation(SourceBuildInformation &&value)
Definition: CreateApplicationVersionRequest.h:244
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithBuildConfiguration
CreateApplicationVersionRequest & WithBuildConfiguration(BuildConfiguration &&value)
Definition: CreateApplicationVersionRequest.h:342
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetVersionLabel
void SetVersionLabel(const char *value)
Definition: CreateApplicationVersionRequest.h:142
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithApplicationName
CreateApplicationVersionRequest & WithApplicationName(const char *value)
Definition: CreateApplicationVersionRequest.h:101
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithDescription
CreateApplicationVersionRequest & WithDescription(const char *value)
Definition: CreateApplicationVersionRequest.h:207
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetVersionLabel
const Aws::String & GetVersionLabel() const
Definition: CreateApplicationVersionRequest.h:110
ElasticBeanstalk_EXPORTS.h
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SourceBuildInformationHasBeenSet
bool SourceBuildInformationHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:220
Aws::ElasticBeanstalk::Model::S3Location
Definition: S3Location.h:33
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateApplicationVersionRequest.h:38
S3Location.h
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithVersionLabel
CreateApplicationVersionRequest & WithVersionLabel(const Aws::String &value)
Definition: CreateApplicationVersionRequest.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:439
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetProcess
void SetProcess(bool value)
Definition: CreateApplicationVersionRequest.h:410
Aws::ElasticBeanstalk::ElasticBeanstalkRequest
Definition: ElasticBeanstalkRequest.h:17
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateApplicationVersionRequest.h:453
Aws::ElasticBeanstalk::Model::Tag
Definition: Tag.h:33
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithVersionLabel
CreateApplicationVersionRequest & WithVersionLabel(const char *value)
Definition: CreateApplicationVersionRequest.h:166
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::BuildConfigurationHasBeenSet
bool BuildConfigurationHasBeenSet() const
Definition: CreateApplicationVersionRequest.h:322
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetApplicationName
const Aws::String & GetApplicationName() const
Definition: CreateApplicationVersionRequest.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetSourceBuildInformation
void SetSourceBuildInformation(const SourceBuildInformation &value)
Definition: CreateApplicationVersionRequest.h:226
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithProcess
CreateApplicationVersionRequest & WithProcess(bool value)
Definition: CreateApplicationVersionRequest.h:424
SourceBuildInformation.h
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::ElasticBeanstalk::Model::BuildConfiguration
Definition: BuildConfiguration.h:33
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetDescription
const Aws::String & GetDescription() const
Definition: CreateApplicationVersionRequest.h:172
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateApplicationVersionRequest.h:446
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::GetAutoCreateApplication
bool GetAutoCreateApplication() const
Definition: CreateApplicationVersionRequest.h:349
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::WithApplicationName
CreateApplicationVersionRequest & WithApplicationName(Aws::String &&value)
Definition: CreateApplicationVersionRequest.h:94
Aws::ElasticBeanstalk::Model::CreateApplicationVersionRequest::AddTags
CreateApplicationVersionRequest & AddTags(Tag &&value)
Definition: CreateApplicationVersionRequest.h:481
BuildConfiguration.h