AWS SDK for C++  1.8.71
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
CreateApplicationVersionRequest & WithApplicationName(Aws::String &&value)
CreateApplicationVersionRequest & WithBuildConfiguration(const BuildConfiguration &value)
#define AWS_ELASTICBEANSTALK_API
CreateApplicationVersionRequest & WithVersionLabel(const char *value)
CreateApplicationVersionRequest & WithTags(Aws::Vector< Tag > &&value)
CreateApplicationVersionRequest & WithSourceBuildInformation(const SourceBuildInformation &value)
CreateApplicationVersionRequest & WithDescription(Aws::String &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateApplicationVersionRequest & WithSourceBuildInformation(SourceBuildInformation &&value)
CreateApplicationVersionRequest & WithApplicationName(const Aws::String &value)
CreateApplicationVersionRequest & WithApplicationName(const char *value)
CreateApplicationVersionRequest & WithVersionLabel(Aws::String &&value)
CreateApplicationVersionRequest & WithBuildConfiguration(BuildConfiguration &&value)
CreateApplicationVersionRequest & WithSourceBundle(S3Location &&value)
CreateApplicationVersionRequest & WithVersionLabel(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateApplicationVersionRequest & WithSourceBundle(const S3Location &value)
CreateApplicationVersionRequest & WithDescription(const char *value)
CreateApplicationVersionRequest & WithTags(const Aws::Vector< Tag > &value)
CreateApplicationVersionRequest & WithDescription(const Aws::String &value)