/** * 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 AWS_EC2_API ElasticGpuHealth { public: ElasticGpuHealth(); ElasticGpuHealth(const Aws::Utils::Xml::XmlNode& xmlNode); ElasticGpuHealth& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; 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; }; } // namespace Model } // namespace EC2 } // namespace Aws