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

Describes the status of an Elastic Graphics accelerator.

See * Also:

AWS * API Reference

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

The health status.

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

The health status.

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

The health status.

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

The health status.

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

The health status.

*/ inline ElasticGpuHealth& WithStatus(const ElasticGpuStatus& value) { SetStatus(value); return *this;} /** *

The health status.

*/ inline ElasticGpuHealth& WithStatus(ElasticGpuStatus&& value) { SetStatus(std::move(value)); return *this;} private: ElasticGpuStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws