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

Contains the output for DescribeInstanceHealth.

See Also:

AWS * API Reference

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

Information about the health of the instances.

*/ inline const Aws::Vector& GetInstanceStates() const{ return m_instanceStates; } /** *

Information about the health of the instances.

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

Information about the health of the instances.

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

Information about the health of the instances.

*/ inline DescribeInstanceHealthResult& WithInstanceStates(const Aws::Vector& value) { SetInstanceStates(value); return *this;} /** *

Information about the health of the instances.

*/ inline DescribeInstanceHealthResult& WithInstanceStates(Aws::Vector&& value) { SetInstanceStates(std::move(value)); return *this;} /** *

Information about the health of the instances.

*/ inline DescribeInstanceHealthResult& AddInstanceStates(const InstanceState& value) { m_instanceStates.push_back(value); return *this; } /** *

Information about the health of the instances.

*/ inline DescribeInstanceHealthResult& AddInstanceStates(InstanceState&& value) { m_instanceStates.push_back(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 DescribeInstanceHealthResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;} inline DescribeInstanceHealthResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(std::move(value)); return *this;} private: Aws::Vector m_instanceStates; ResponseMetadata m_responseMetadata; }; } // namespace Model } // namespace ElasticLoadBalancing } // namespace Aws