/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Xml { class XmlDocument; } // namespace Xml } // namespace Utils namespace ElasticBeanstalk { namespace Model { /** *

Health details for an AWS Elastic Beanstalk environment.

See * Also:

AWS * API Reference

*/ class DescribeEnvironmentHealthResult { public: AWS_ELASTICBEANSTALK_API DescribeEnvironmentHealthResult(); AWS_ELASTICBEANSTALK_API DescribeEnvironmentHealthResult(const Aws::AmazonWebServiceResult& result); AWS_ELASTICBEANSTALK_API DescribeEnvironmentHealthResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The environment's name.

*/ inline const Aws::String& GetEnvironmentName() const{ return m_environmentName; } /** *

The environment's name.

*/ inline void SetEnvironmentName(const Aws::String& value) { m_environmentName = value; } /** *

The environment's name.

*/ inline void SetEnvironmentName(Aws::String&& value) { m_environmentName = std::move(value); } /** *

The environment's name.

*/ inline void SetEnvironmentName(const char* value) { m_environmentName.assign(value); } /** *

The environment's name.

*/ inline DescribeEnvironmentHealthResult& WithEnvironmentName(const Aws::String& value) { SetEnvironmentName(value); return *this;} /** *

The environment's name.

*/ inline DescribeEnvironmentHealthResult& WithEnvironmentName(Aws::String&& value) { SetEnvironmentName(std::move(value)); return *this;} /** *

The environment's name.

*/ inline DescribeEnvironmentHealthResult& WithEnvironmentName(const char* value) { SetEnvironmentName(value); return *this;} /** *

The health * status of the environment. For example, Ok.

*/ inline const Aws::String& GetHealthStatus() const{ return m_healthStatus; } /** *

The health * status of the environment. For example, Ok.

*/ inline void SetHealthStatus(const Aws::String& value) { m_healthStatus = value; } /** *

The health * status of the environment. For example, Ok.

*/ inline void SetHealthStatus(Aws::String&& value) { m_healthStatus = std::move(value); } /** *

The health * status of the environment. For example, Ok.

*/ inline void SetHealthStatus(const char* value) { m_healthStatus.assign(value); } /** *

The health * status of the environment. For example, Ok.

*/ inline DescribeEnvironmentHealthResult& WithHealthStatus(const Aws::String& value) { SetHealthStatus(value); return *this;} /** *

The health * status of the environment. For example, Ok.

*/ inline DescribeEnvironmentHealthResult& WithHealthStatus(Aws::String&& value) { SetHealthStatus(std::move(value)); return *this;} /** *

The health * status of the environment. For example, Ok.

*/ inline DescribeEnvironmentHealthResult& WithHealthStatus(const char* value) { SetHealthStatus(value); return *this;} /** *

The environment's operational status. Ready, * Launching, Updating, Terminating, or * Terminated.

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

The environment's operational status. Ready, * Launching, Updating, Terminating, or * Terminated.

*/ inline void SetStatus(const EnvironmentHealth& value) { m_status = value; } /** *

The environment's operational status. Ready, * Launching, Updating, Terminating, or * Terminated.

*/ inline void SetStatus(EnvironmentHealth&& value) { m_status = std::move(value); } /** *

The environment's operational status. Ready, * Launching, Updating, Terminating, or * Terminated.

*/ inline DescribeEnvironmentHealthResult& WithStatus(const EnvironmentHealth& value) { SetStatus(value); return *this;} /** *

The environment's operational status. Ready, * Launching, Updating, Terminating, or * Terminated.

*/ inline DescribeEnvironmentHealthResult& WithStatus(EnvironmentHealth&& value) { SetStatus(std::move(value)); return *this;} /** *

The health * color of the environment.

*/ inline const Aws::String& GetColor() const{ return m_color; } /** *

The health * color of the environment.

*/ inline void SetColor(const Aws::String& value) { m_color = value; } /** *

The health * color of the environment.

*/ inline void SetColor(Aws::String&& value) { m_color = std::move(value); } /** *

The health * color of the environment.

*/ inline void SetColor(const char* value) { m_color.assign(value); } /** *

The health * color of the environment.

*/ inline DescribeEnvironmentHealthResult& WithColor(const Aws::String& value) { SetColor(value); return *this;} /** *

The health * color of the environment.

*/ inline DescribeEnvironmentHealthResult& WithColor(Aws::String&& value) { SetColor(std::move(value)); return *this;} /** *

The health * color of the environment.

*/ inline DescribeEnvironmentHealthResult& WithColor(const char* value) { SetColor(value); return *this;} /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline const Aws::Vector& GetCauses() const{ return m_causes; } /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline void SetCauses(const Aws::Vector& value) { m_causes = value; } /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline void SetCauses(Aws::Vector&& value) { m_causes = std::move(value); } /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline DescribeEnvironmentHealthResult& WithCauses(const Aws::Vector& value) { SetCauses(value); return *this;} /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline DescribeEnvironmentHealthResult& WithCauses(Aws::Vector&& value) { SetCauses(std::move(value)); return *this;} /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline DescribeEnvironmentHealthResult& AddCauses(const Aws::String& value) { m_causes.push_back(value); return *this; } /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline DescribeEnvironmentHealthResult& AddCauses(Aws::String&& value) { m_causes.push_back(std::move(value)); return *this; } /** *

Descriptions of the data that contributed to the environment's current health * status.

*/ inline DescribeEnvironmentHealthResult& AddCauses(const char* value) { m_causes.push_back(value); return *this; } /** *

Application request metrics for the environment.

*/ inline const ApplicationMetrics& GetApplicationMetrics() const{ return m_applicationMetrics; } /** *

Application request metrics for the environment.

*/ inline void SetApplicationMetrics(const ApplicationMetrics& value) { m_applicationMetrics = value; } /** *

Application request metrics for the environment.

*/ inline void SetApplicationMetrics(ApplicationMetrics&& value) { m_applicationMetrics = std::move(value); } /** *

Application request metrics for the environment.

*/ inline DescribeEnvironmentHealthResult& WithApplicationMetrics(const ApplicationMetrics& value) { SetApplicationMetrics(value); return *this;} /** *

Application request metrics for the environment.

*/ inline DescribeEnvironmentHealthResult& WithApplicationMetrics(ApplicationMetrics&& value) { SetApplicationMetrics(std::move(value)); return *this;} /** *

Summary health information for the instances in the environment.

*/ inline const InstanceHealthSummary& GetInstancesHealth() const{ return m_instancesHealth; } /** *

Summary health information for the instances in the environment.

*/ inline void SetInstancesHealth(const InstanceHealthSummary& value) { m_instancesHealth = value; } /** *

Summary health information for the instances in the environment.

*/ inline void SetInstancesHealth(InstanceHealthSummary&& value) { m_instancesHealth = std::move(value); } /** *

Summary health information for the instances in the environment.

*/ inline DescribeEnvironmentHealthResult& WithInstancesHealth(const InstanceHealthSummary& value) { SetInstancesHealth(value); return *this;} /** *

Summary health information for the instances in the environment.

*/ inline DescribeEnvironmentHealthResult& WithInstancesHealth(InstanceHealthSummary&& value) { SetInstancesHealth(std::move(value)); return *this;} /** *

The date and time that the health information was retrieved.

*/ inline const Aws::Utils::DateTime& GetRefreshedAt() const{ return m_refreshedAt; } /** *

The date and time that the health information was retrieved.

*/ inline void SetRefreshedAt(const Aws::Utils::DateTime& value) { m_refreshedAt = value; } /** *

The date and time that the health information was retrieved.

*/ inline void SetRefreshedAt(Aws::Utils::DateTime&& value) { m_refreshedAt = std::move(value); } /** *

The date and time that the health information was retrieved.

*/ inline DescribeEnvironmentHealthResult& WithRefreshedAt(const Aws::Utils::DateTime& value) { SetRefreshedAt(value); return *this;} /** *

The date and time that the health information was retrieved.

*/ inline DescribeEnvironmentHealthResult& WithRefreshedAt(Aws::Utils::DateTime&& value) { SetRefreshedAt(std::move(value)); return *this;} inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; } inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; } inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = std::move(value); } inline DescribeEnvironmentHealthResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeEnvironmentHealthResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::String m_environmentName; Aws::String m_healthStatus; EnvironmentHealth m_status; Aws::String m_color; Aws::Vector m_causes; ApplicationMetrics m_applicationMetrics; InstanceHealthSummary m_instancesHealth; Aws::Utils::DateTime m_refreshedAt; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws