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

Detailed health information about the Amazon EC2 instances in an AWS Elastic * Beanstalk environment.

See Also:

AWS * API Reference

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

Detailed health information about each instance.

The output differs * slightly between Linux and Windows environments. There is a difference in the * members that are supported under the <CPUUtilization> * type.

*/ inline const Aws::Vector& GetInstanceHealthList() const{ return m_instanceHealthList; } /** *

Detailed health information about each instance.

The output differs * slightly between Linux and Windows environments. There is a difference in the * members that are supported under the <CPUUtilization> * type.

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

Detailed health information about each instance.

The output differs * slightly between Linux and Windows environments. There is a difference in the * members that are supported under the <CPUUtilization> * type.

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

Detailed health information about each instance.

The output differs * slightly between Linux and Windows environments. There is a difference in the * members that are supported under the <CPUUtilization> * type.

*/ inline DescribeInstancesHealthResult& WithInstanceHealthList(const Aws::Vector& value) { SetInstanceHealthList(value); return *this;} /** *

Detailed health information about each instance.

The output differs * slightly between Linux and Windows environments. There is a difference in the * members that are supported under the <CPUUtilization> * type.

*/ inline DescribeInstancesHealthResult& WithInstanceHealthList(Aws::Vector&& value) { SetInstanceHealthList(std::move(value)); return *this;} /** *

Detailed health information about each instance.

The output differs * slightly between Linux and Windows environments. There is a difference in the * members that are supported under the <CPUUtilization> * type.

*/ inline DescribeInstancesHealthResult& AddInstanceHealthList(const SingleInstanceHealth& value) { m_instanceHealthList.push_back(value); return *this; } /** *

Detailed health information about each instance.

The output differs * slightly between Linux and Windows environments. There is a difference in the * members that are supported under the <CPUUtilization> * type.

*/ inline DescribeInstancesHealthResult& AddInstanceHealthList(SingleInstanceHealth&& value) { m_instanceHealthList.push_back(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 DescribeInstancesHealthResult& WithRefreshedAt(const Aws::Utils::DateTime& value) { SetRefreshedAt(value); return *this;} /** *

The date and time that the health information was retrieved.

*/ inline DescribeInstancesHealthResult& WithRefreshedAt(Aws::Utils::DateTime&& value) { SetRefreshedAt(std::move(value)); return *this;} /** *

Pagination token for the next page of results, if available.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

Pagination token for the next page of results, if available.

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

Pagination token for the next page of results, if available.

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

Pagination token for the next page of results, if available.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

Pagination token for the next page of results, if available.

*/ inline DescribeInstancesHealthResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

Pagination token for the next page of results, if available.

*/ inline DescribeInstancesHealthResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

Pagination token for the next page of results, if available.

*/ inline DescribeInstancesHealthResult& WithNextToken(const char* value) { SetNextToken(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 DescribeInstancesHealthResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeInstancesHealthResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_instanceHealthList; Aws::Utils::DateTime m_refreshedAt; Aws::String m_nextToken; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElasticBeanstalk } // namespace Aws