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

Information about an application version deployment.

See Also:

* AWS * API Reference

*/ class Deployment { public: AWS_ELASTICBEANSTALK_API Deployment(); AWS_ELASTICBEANSTALK_API Deployment(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_ELASTICBEANSTALK_API Deployment& 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 version label of the application version in the deployment.

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

The version label of the application version in the deployment.

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

The version label of the application version in the deployment.

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

The version label of the application version in the deployment.

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

The version label of the application version in the deployment.

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

The version label of the application version in the deployment.

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

The version label of the application version in the deployment.

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

The version label of the application version in the deployment.

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

The ID of the deployment. This number increases by one each time that you * deploy source code or change instance configuration settings.

*/ inline long long GetDeploymentId() const{ return m_deploymentId; } /** *

The ID of the deployment. This number increases by one each time that you * deploy source code or change instance configuration settings.

*/ inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; } /** *

The ID of the deployment. This number increases by one each time that you * deploy source code or change instance configuration settings.

*/ inline void SetDeploymentId(long long value) { m_deploymentIdHasBeenSet = true; m_deploymentId = value; } /** *

The ID of the deployment. This number increases by one each time that you * deploy source code or change instance configuration settings.

*/ inline Deployment& WithDeploymentId(long long value) { SetDeploymentId(value); return *this;} /** *

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

*/ inline const Aws::String& GetStatus() const{ return m_status; } /** *

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

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

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

*/ inline void SetStatus(const Aws::String& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

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

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

*/ inline void SetStatus(const char* value) { m_statusHasBeenSet = true; m_status.assign(value); } /** *

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

*/ inline Deployment& WithStatus(const Aws::String& value) { SetStatus(value); return *this;} /** *

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

*/ inline Deployment& WithStatus(Aws::String&& value) { SetStatus(std::move(value)); return *this;} /** *

The status of the deployment:

  • In Progress : * The deployment is in progress.

  • Deployed : The * deployment succeeded.

  • Failed : The deployment * failed.

*/ inline Deployment& WithStatus(const char* value) { SetStatus(value); return *this;} /** *

For in-progress deployments, the time that the deployment started.

For * completed deployments, the time that the deployment ended.

*/ inline const Aws::Utils::DateTime& GetDeploymentTime() const{ return m_deploymentTime; } /** *

For in-progress deployments, the time that the deployment started.

For * completed deployments, the time that the deployment ended.

*/ inline bool DeploymentTimeHasBeenSet() const { return m_deploymentTimeHasBeenSet; } /** *

For in-progress deployments, the time that the deployment started.

For * completed deployments, the time that the deployment ended.

*/ inline void SetDeploymentTime(const Aws::Utils::DateTime& value) { m_deploymentTimeHasBeenSet = true; m_deploymentTime = value; } /** *

For in-progress deployments, the time that the deployment started.

For * completed deployments, the time that the deployment ended.

*/ inline void SetDeploymentTime(Aws::Utils::DateTime&& value) { m_deploymentTimeHasBeenSet = true; m_deploymentTime = std::move(value); } /** *

For in-progress deployments, the time that the deployment started.

For * completed deployments, the time that the deployment ended.

*/ inline Deployment& WithDeploymentTime(const Aws::Utils::DateTime& value) { SetDeploymentTime(value); return *this;} /** *

For in-progress deployments, the time that the deployment started.

For * completed deployments, the time that the deployment ended.

*/ inline Deployment& WithDeploymentTime(Aws::Utils::DateTime&& value) { SetDeploymentTime(std::move(value)); return *this;} private: Aws::String m_versionLabel; bool m_versionLabelHasBeenSet = false; long long m_deploymentId; bool m_deploymentIdHasBeenSet = false; Aws::String m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_deploymentTime; bool m_deploymentTimeHasBeenSet = false; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws