/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace ElasticBeanstalk { namespace Model { /** *

See Also:

AWS * API Reference

*/ class CreateApplicationVersionRequest : public ElasticBeanstalkRequest { public: AWS_ELASTICBEANSTALK_API CreateApplicationVersionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "CreateApplicationVersion"; } AWS_ELASTICBEANSTALK_API Aws::String SerializePayload() const override; protected: AWS_ELASTICBEANSTALK_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline CreateApplicationVersionRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline CreateApplicationVersionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** *

The name of the application. If no application is found with this name, and * AutoCreateApplication is false, returns an * InvalidParameterValue error.

*/ inline CreateApplicationVersionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline const Aws::String& GetVersionLabel() const{ return m_versionLabel; } /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline bool VersionLabelHasBeenSet() const { return m_versionLabelHasBeenSet; } /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline void SetVersionLabel(const Aws::String& value) { m_versionLabelHasBeenSet = true; m_versionLabel = value; } /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline void SetVersionLabel(Aws::String&& value) { m_versionLabelHasBeenSet = true; m_versionLabel = std::move(value); } /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline void SetVersionLabel(const char* value) { m_versionLabelHasBeenSet = true; m_versionLabel.assign(value); } /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline CreateApplicationVersionRequest& WithVersionLabel(const Aws::String& value) { SetVersionLabel(value); return *this;} /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline CreateApplicationVersionRequest& WithVersionLabel(Aws::String&& value) { SetVersionLabel(std::move(value)); return *this;} /** *

A label identifying this version.

Constraint: Must be unique per * application. If an application version already exists with this label for the * specified application, AWS Elastic Beanstalk returns an * InvalidParameterValue error.

*/ inline CreateApplicationVersionRequest& WithVersionLabel(const char* value) { SetVersionLabel(value); return *this;} /** *

A description of this application version.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of this application version.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of this application version.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of this application version.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of this application version.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of this application version.

*/ inline CreateApplicationVersionRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of this application version.

*/ inline CreateApplicationVersionRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of this application version.

*/ inline CreateApplicationVersionRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Specify a commit in an AWS CodeCommit Git repository to use as the source * code for the application version.

*/ inline const SourceBuildInformation& GetSourceBuildInformation() const{ return m_sourceBuildInformation; } /** *

Specify a commit in an AWS CodeCommit Git repository to use as the source * code for the application version.

*/ inline bool SourceBuildInformationHasBeenSet() const { return m_sourceBuildInformationHasBeenSet; } /** *

Specify a commit in an AWS CodeCommit Git repository to use as the source * code for the application version.

*/ inline void SetSourceBuildInformation(const SourceBuildInformation& value) { m_sourceBuildInformationHasBeenSet = true; m_sourceBuildInformation = value; } /** *

Specify a commit in an AWS CodeCommit Git repository to use as the source * code for the application version.

*/ inline void SetSourceBuildInformation(SourceBuildInformation&& value) { m_sourceBuildInformationHasBeenSet = true; m_sourceBuildInformation = std::move(value); } /** *

Specify a commit in an AWS CodeCommit Git repository to use as the source * code for the application version.

*/ inline CreateApplicationVersionRequest& WithSourceBuildInformation(const SourceBuildInformation& value) { SetSourceBuildInformation(value); return *this;} /** *

Specify a commit in an AWS CodeCommit Git repository to use as the source * code for the application version.

*/ inline CreateApplicationVersionRequest& WithSourceBuildInformation(SourceBuildInformation&& value) { SetSourceBuildInformation(std::move(value)); return *this;} /** *

The Amazon S3 bucket and key that identify the location of the source bundle * for this version.

The Amazon S3 bucket must be in the same region * as the environment.

Specify a source bundle in S3 or a commit in * an AWS CodeCommit repository (with SourceBuildInformation), but not * both. If neither SourceBundle nor * SourceBuildInformation are provided, Elastic Beanstalk uses a * sample application.

*/ inline const S3Location& GetSourceBundle() const{ return m_sourceBundle; } /** *

The Amazon S3 bucket and key that identify the location of the source bundle * for this version.

The Amazon S3 bucket must be in the same region * as the environment.

Specify a source bundle in S3 or a commit in * an AWS CodeCommit repository (with SourceBuildInformation), but not * both. If neither SourceBundle nor * SourceBuildInformation are provided, Elastic Beanstalk uses a * sample application.

*/ inline bool SourceBundleHasBeenSet() const { return m_sourceBundleHasBeenSet; } /** *

The Amazon S3 bucket and key that identify the location of the source bundle * for this version.

The Amazon S3 bucket must be in the same region * as the environment.

Specify a source bundle in S3 or a commit in * an AWS CodeCommit repository (with SourceBuildInformation), but not * both. If neither SourceBundle nor * SourceBuildInformation are provided, Elastic Beanstalk uses a * sample application.

*/ inline void SetSourceBundle(const S3Location& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = value; } /** *

The Amazon S3 bucket and key that identify the location of the source bundle * for this version.

The Amazon S3 bucket must be in the same region * as the environment.

Specify a source bundle in S3 or a commit in * an AWS CodeCommit repository (with SourceBuildInformation), but not * both. If neither SourceBundle nor * SourceBuildInformation are provided, Elastic Beanstalk uses a * sample application.

*/ inline void SetSourceBundle(S3Location&& value) { m_sourceBundleHasBeenSet = true; m_sourceBundle = std::move(value); } /** *

The Amazon S3 bucket and key that identify the location of the source bundle * for this version.

The Amazon S3 bucket must be in the same region * as the environment.

Specify a source bundle in S3 or a commit in * an AWS CodeCommit repository (with SourceBuildInformation), but not * both. If neither SourceBundle nor * SourceBuildInformation are provided, Elastic Beanstalk uses a * sample application.

*/ inline CreateApplicationVersionRequest& WithSourceBundle(const S3Location& value) { SetSourceBundle(value); return *this;} /** *

The Amazon S3 bucket and key that identify the location of the source bundle * for this version.

The Amazon S3 bucket must be in the same region * as the environment.

Specify a source bundle in S3 or a commit in * an AWS CodeCommit repository (with SourceBuildInformation), but not * both. If neither SourceBundle nor * SourceBuildInformation are provided, Elastic Beanstalk uses a * sample application.

*/ inline CreateApplicationVersionRequest& WithSourceBundle(S3Location&& value) { SetSourceBundle(std::move(value)); return *this;} /** *

Settings for an AWS CodeBuild build.

*/ inline const BuildConfiguration& GetBuildConfiguration() const{ return m_buildConfiguration; } /** *

Settings for an AWS CodeBuild build.

*/ inline bool BuildConfigurationHasBeenSet() const { return m_buildConfigurationHasBeenSet; } /** *

Settings for an AWS CodeBuild build.

*/ inline void SetBuildConfiguration(const BuildConfiguration& value) { m_buildConfigurationHasBeenSet = true; m_buildConfiguration = value; } /** *

Settings for an AWS CodeBuild build.

*/ inline void SetBuildConfiguration(BuildConfiguration&& value) { m_buildConfigurationHasBeenSet = true; m_buildConfiguration = std::move(value); } /** *

Settings for an AWS CodeBuild build.

*/ inline CreateApplicationVersionRequest& WithBuildConfiguration(const BuildConfiguration& value) { SetBuildConfiguration(value); return *this;} /** *

Settings for an AWS CodeBuild build.

*/ inline CreateApplicationVersionRequest& WithBuildConfiguration(BuildConfiguration&& value) { SetBuildConfiguration(std::move(value)); return *this;} /** *

Set to true to create an application with the specified name if * it doesn't already exist.

*/ inline bool GetAutoCreateApplication() const{ return m_autoCreateApplication; } /** *

Set to true to create an application with the specified name if * it doesn't already exist.

*/ inline bool AutoCreateApplicationHasBeenSet() const { return m_autoCreateApplicationHasBeenSet; } /** *

Set to true to create an application with the specified name if * it doesn't already exist.

*/ inline void SetAutoCreateApplication(bool value) { m_autoCreateApplicationHasBeenSet = true; m_autoCreateApplication = value; } /** *

Set to true to create an application with the specified name if * it doesn't already exist.

*/ inline CreateApplicationVersionRequest& WithAutoCreateApplication(bool value) { SetAutoCreateApplication(value); return *this;} /** *

Pre-processes and validates the environment manifest (env.yaml) * and configuration files (*.config files in the * .ebextensions folder) in the source bundle. Validating * configuration files can identify issues prior to deploying the application * version to an environment.

You must turn processing on for application * versions that you create using AWS CodeBuild or AWS CodeCommit. For application * versions built from a source bundle in Amazon S3, processing is optional.

*

The Process option validates Elastic Beanstalk * configuration files. It doesn't validate your application's configuration files, * like proxy server or Docker configuration.

*/ inline bool GetProcess() const{ return m_process; } /** *

Pre-processes and validates the environment manifest (env.yaml) * and configuration files (*.config files in the * .ebextensions folder) in the source bundle. Validating * configuration files can identify issues prior to deploying the application * version to an environment.

You must turn processing on for application * versions that you create using AWS CodeBuild or AWS CodeCommit. For application * versions built from a source bundle in Amazon S3, processing is optional.

*

The Process option validates Elastic Beanstalk * configuration files. It doesn't validate your application's configuration files, * like proxy server or Docker configuration.

*/ inline bool ProcessHasBeenSet() const { return m_processHasBeenSet; } /** *

Pre-processes and validates the environment manifest (env.yaml) * and configuration files (*.config files in the * .ebextensions folder) in the source bundle. Validating * configuration files can identify issues prior to deploying the application * version to an environment.

You must turn processing on for application * versions that you create using AWS CodeBuild or AWS CodeCommit. For application * versions built from a source bundle in Amazon S3, processing is optional.

*

The Process option validates Elastic Beanstalk * configuration files. It doesn't validate your application's configuration files, * like proxy server or Docker configuration.

*/ inline void SetProcess(bool value) { m_processHasBeenSet = true; m_process = value; } /** *

Pre-processes and validates the environment manifest (env.yaml) * and configuration files (*.config files in the * .ebextensions folder) in the source bundle. Validating * configuration files can identify issues prior to deploying the application * version to an environment.

You must turn processing on for application * versions that you create using AWS CodeBuild or AWS CodeCommit. For application * versions built from a source bundle in Amazon S3, processing is optional.

*

The Process option validates Elastic Beanstalk * configuration files. It doesn't validate your application's configuration files, * like proxy server or Docker configuration.

*/ inline CreateApplicationVersionRequest& WithProcess(bool value) { SetProcess(value); return *this;} /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline CreateApplicationVersionRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline CreateApplicationVersionRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline CreateApplicationVersionRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

Specifies the tags applied to the application version.

Elastic * Beanstalk applies these tags only to the application version. Environments that * use the application version don't inherit the tags.

*/ inline CreateApplicationVersionRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; Aws::String m_versionLabel; bool m_versionLabelHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; SourceBuildInformation m_sourceBuildInformation; bool m_sourceBuildInformationHasBeenSet = false; S3Location m_sourceBundle; bool m_sourceBundleHasBeenSet = false; BuildConfiguration m_buildConfiguration; bool m_buildConfigurationHasBeenSet = false; bool m_autoCreateApplication; bool m_autoCreateApplicationHasBeenSet = false; bool m_process; bool m_processHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws