/** * 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 namespace Aws { namespace Utils { namespace Xml { class XmlNode; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

Describes the properties of an application version.

See Also:

* AWS * API Reference

*/ class ApplicationVersionDescription { public: AWS_ELASTICBEANSTALK_API ApplicationVersionDescription(); AWS_ELASTICBEANSTALK_API ApplicationVersionDescription(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API ApplicationVersionDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_ELASTICBEANSTALK_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline const Aws::String& GetApplicationVersionArn() const{ return m_applicationVersionArn; } /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline bool ApplicationVersionArnHasBeenSet() const { return m_applicationVersionArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline void SetApplicationVersionArn(const Aws::String& value) { m_applicationVersionArnHasBeenSet = true; m_applicationVersionArn = value; } /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline void SetApplicationVersionArn(Aws::String&& value) { m_applicationVersionArnHasBeenSet = true; m_applicationVersionArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline void SetApplicationVersionArn(const char* value) { m_applicationVersionArnHasBeenSet = true; m_applicationVersionArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline ApplicationVersionDescription& WithApplicationVersionArn(const Aws::String& value) { SetApplicationVersionArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline ApplicationVersionDescription& WithApplicationVersionArn(Aws::String&& value) { SetApplicationVersionArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the application version.

*/ inline ApplicationVersionDescription& WithApplicationVersionArn(const char* value) { SetApplicationVersionArn(value); return *this;} /** *

The name of the application to which the application version belongs.

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

The name of the application to which the application version belongs.

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

The name of the application to which the application version belongs.

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

The name of the application to which the application version belongs.

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

The name of the application to which the application version belongs.

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

The name of the application to which the application version belongs.

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

The name of the application to which the application version belongs.

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

The name of the application to which the application version belongs.

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

The description of the application version.

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

The description of the application version.

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

The description of the application version.

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

The description of the application version.

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

The description of the application version.

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

The description of the application version.

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

The description of the application version.

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

The description of the application version.

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

A unique identifier for the application version.

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

A unique identifier for the application version.

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

A unique identifier for the application version.

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

A unique identifier for the application version.

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

A unique identifier for the application version.

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

A unique identifier for the application version.

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

A unique identifier for the application version.

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

A unique identifier for the application version.

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

If the version's source code was retrieved from AWS CodeCommit, the location * of the source code for the application version.

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

If the version's source code was retrieved from AWS CodeCommit, the location * of the source code for the application version.

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

If the version's source code was retrieved from AWS CodeCommit, the location * of the source code for the application version.

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

If the version's source code was retrieved from AWS CodeCommit, the location * of the source code for the application version.

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

If the version's source code was retrieved from AWS CodeCommit, the location * of the source code for the application version.

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

If the version's source code was retrieved from AWS CodeCommit, the location * of the source code for the application version.

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

Reference to the artifact from the AWS CodeBuild build.

*/ inline const Aws::String& GetBuildArn() const{ return m_buildArn; } /** *

Reference to the artifact from the AWS CodeBuild build.

*/ inline bool BuildArnHasBeenSet() const { return m_buildArnHasBeenSet; } /** *

Reference to the artifact from the AWS CodeBuild build.

*/ inline void SetBuildArn(const Aws::String& value) { m_buildArnHasBeenSet = true; m_buildArn = value; } /** *

Reference to the artifact from the AWS CodeBuild build.

*/ inline void SetBuildArn(Aws::String&& value) { m_buildArnHasBeenSet = true; m_buildArn = std::move(value); } /** *

Reference to the artifact from the AWS CodeBuild build.

*/ inline void SetBuildArn(const char* value) { m_buildArnHasBeenSet = true; m_buildArn.assign(value); } /** *

Reference to the artifact from the AWS CodeBuild build.

*/ inline ApplicationVersionDescription& WithBuildArn(const Aws::String& value) { SetBuildArn(value); return *this;} /** *

Reference to the artifact from the AWS CodeBuild build.

*/ inline ApplicationVersionDescription& WithBuildArn(Aws::String&& value) { SetBuildArn(std::move(value)); return *this;} /** *

Reference to the artifact from the AWS CodeBuild build.

*/ inline ApplicationVersionDescription& WithBuildArn(const char* value) { SetBuildArn(value); return *this;} /** *

The storage location of the application version's source bundle in Amazon * S3.

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

The storage location of the application version's source bundle in Amazon * S3.

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

The storage location of the application version's source bundle in Amazon * S3.

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

The storage location of the application version's source bundle in Amazon * S3.

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

The storage location of the application version's source bundle in Amazon * S3.

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

The storage location of the application version's source bundle in Amazon * S3.

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

The creation date of the application version.

*/ inline const Aws::Utils::DateTime& GetDateCreated() const{ return m_dateCreated; } /** *

The creation date of the application version.

*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *

The creation date of the application version.

*/ inline void SetDateCreated(const Aws::Utils::DateTime& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *

The creation date of the application version.

*/ inline void SetDateCreated(Aws::Utils::DateTime&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *

The creation date of the application version.

*/ inline ApplicationVersionDescription& WithDateCreated(const Aws::Utils::DateTime& value) { SetDateCreated(value); return *this;} /** *

The creation date of the application version.

*/ inline ApplicationVersionDescription& WithDateCreated(Aws::Utils::DateTime&& value) { SetDateCreated(std::move(value)); return *this;} /** *

The last modified date of the application version.

*/ inline const Aws::Utils::DateTime& GetDateUpdated() const{ return m_dateUpdated; } /** *

The last modified date of the application version.

*/ inline bool DateUpdatedHasBeenSet() const { return m_dateUpdatedHasBeenSet; } /** *

The last modified date of the application version.

*/ inline void SetDateUpdated(const Aws::Utils::DateTime& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = value; } /** *

The last modified date of the application version.

*/ inline void SetDateUpdated(Aws::Utils::DateTime&& value) { m_dateUpdatedHasBeenSet = true; m_dateUpdated = std::move(value); } /** *

The last modified date of the application version.

*/ inline ApplicationVersionDescription& WithDateUpdated(const Aws::Utils::DateTime& value) { SetDateUpdated(value); return *this;} /** *

The last modified date of the application version.

*/ inline ApplicationVersionDescription& WithDateUpdated(Aws::Utils::DateTime&& value) { SetDateUpdated(std::move(value)); return *this;} /** *

The processing status of the application version. Reflects the state of the * application version during its creation. Many of the values are only applicable * if you specified True for the Process parameter of the * CreateApplicationVersion action. The following list describes the * possible values.

  • Unprocessed – Application * version wasn't pre-processed or validated. Elastic Beanstalk will validate * configuration files during deployment of the application version to an * environment.

  • Processing – Elastic Beanstalk is * currently processing the application version.

  • * Building – Application version is currently undergoing an AWS * CodeBuild build.

  • Processed – Elastic Beanstalk * was successfully pre-processed and validated.

  • * Failed – Either the AWS CodeBuild build failed or configuration * files didn't pass validation. This application version isn't usable.

  • *
*/ inline const ApplicationVersionStatus& GetStatus() const{ return m_status; } /** *

The processing status of the application version. Reflects the state of the * application version during its creation. Many of the values are only applicable * if you specified True for the Process parameter of the * CreateApplicationVersion action. The following list describes the * possible values.

  • Unprocessed – Application * version wasn't pre-processed or validated. Elastic Beanstalk will validate * configuration files during deployment of the application version to an * environment.

  • Processing – Elastic Beanstalk is * currently processing the application version.

  • * Building – Application version is currently undergoing an AWS * CodeBuild build.

  • Processed – Elastic Beanstalk * was successfully pre-processed and validated.

  • * Failed – Either the AWS CodeBuild build failed or configuration * files didn't pass validation. This application version isn't usable.

  • *
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The processing status of the application version. Reflects the state of the * application version during its creation. Many of the values are only applicable * if you specified True for the Process parameter of the * CreateApplicationVersion action. The following list describes the * possible values.

  • Unprocessed – Application * version wasn't pre-processed or validated. Elastic Beanstalk will validate * configuration files during deployment of the application version to an * environment.

  • Processing – Elastic Beanstalk is * currently processing the application version.

  • * Building – Application version is currently undergoing an AWS * CodeBuild build.

  • Processed – Elastic Beanstalk * was successfully pre-processed and validated.

  • * Failed – Either the AWS CodeBuild build failed or configuration * files didn't pass validation. This application version isn't usable.

  • *
*/ inline void SetStatus(const ApplicationVersionStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The processing status of the application version. Reflects the state of the * application version during its creation. Many of the values are only applicable * if you specified True for the Process parameter of the * CreateApplicationVersion action. The following list describes the * possible values.

  • Unprocessed – Application * version wasn't pre-processed or validated. Elastic Beanstalk will validate * configuration files during deployment of the application version to an * environment.

  • Processing – Elastic Beanstalk is * currently processing the application version.

  • * Building – Application version is currently undergoing an AWS * CodeBuild build.

  • Processed – Elastic Beanstalk * was successfully pre-processed and validated.

  • * Failed – Either the AWS CodeBuild build failed or configuration * files didn't pass validation. This application version isn't usable.

  • *
*/ inline void SetStatus(ApplicationVersionStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The processing status of the application version. Reflects the state of the * application version during its creation. Many of the values are only applicable * if you specified True for the Process parameter of the * CreateApplicationVersion action. The following list describes the * possible values.

  • Unprocessed – Application * version wasn't pre-processed or validated. Elastic Beanstalk will validate * configuration files during deployment of the application version to an * environment.

  • Processing – Elastic Beanstalk is * currently processing the application version.

  • * Building – Application version is currently undergoing an AWS * CodeBuild build.

  • Processed – Elastic Beanstalk * was successfully pre-processed and validated.

  • * Failed – Either the AWS CodeBuild build failed or configuration * files didn't pass validation. This application version isn't usable.

  • *
*/ inline ApplicationVersionDescription& WithStatus(const ApplicationVersionStatus& value) { SetStatus(value); return *this;} /** *

The processing status of the application version. Reflects the state of the * application version during its creation. Many of the values are only applicable * if you specified True for the Process parameter of the * CreateApplicationVersion action. The following list describes the * possible values.

  • Unprocessed – Application * version wasn't pre-processed or validated. Elastic Beanstalk will validate * configuration files during deployment of the application version to an * environment.

  • Processing – Elastic Beanstalk is * currently processing the application version.

  • * Building – Application version is currently undergoing an AWS * CodeBuild build.

  • Processed – Elastic Beanstalk * was successfully pre-processed and validated.

  • * Failed – Either the AWS CodeBuild build failed or configuration * files didn't pass validation. This application version isn't usable.

  • *
*/ inline ApplicationVersionDescription& WithStatus(ApplicationVersionStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_applicationVersionArn; bool m_applicationVersionArnHasBeenSet = false; Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_versionLabel; bool m_versionLabelHasBeenSet = false; SourceBuildInformation m_sourceBuildInformation; bool m_sourceBuildInformationHasBeenSet = false; Aws::String m_buildArn; bool m_buildArnHasBeenSet = false; S3Location m_sourceBundle; bool m_sourceBundleHasBeenSet = false; Aws::Utils::DateTime m_dateCreated; bool m_dateCreatedHasBeenSet = false; Aws::Utils::DateTime m_dateUpdated; bool m_dateUpdatedHasBeenSet = false; ApplicationVersionStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws