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

Describes the instance status.

See Also:

AWS * API Reference

*/ class InstanceStatusDetails { public: AWS_EC2_API InstanceStatusDetails(); AWS_EC2_API InstanceStatusDetails(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceStatusDetails& 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 time when a status check failed. For an instance that was launched and * impaired, this is the time when the instance was launched.

*/ inline const Aws::Utils::DateTime& GetImpairedSince() const{ return m_impairedSince; } /** *

The time when a status check failed. For an instance that was launched and * impaired, this is the time when the instance was launched.

*/ inline bool ImpairedSinceHasBeenSet() const { return m_impairedSinceHasBeenSet; } /** *

The time when a status check failed. For an instance that was launched and * impaired, this is the time when the instance was launched.

*/ inline void SetImpairedSince(const Aws::Utils::DateTime& value) { m_impairedSinceHasBeenSet = true; m_impairedSince = value; } /** *

The time when a status check failed. For an instance that was launched and * impaired, this is the time when the instance was launched.

*/ inline void SetImpairedSince(Aws::Utils::DateTime&& value) { m_impairedSinceHasBeenSet = true; m_impairedSince = std::move(value); } /** *

The time when a status check failed. For an instance that was launched and * impaired, this is the time when the instance was launched.

*/ inline InstanceStatusDetails& WithImpairedSince(const Aws::Utils::DateTime& value) { SetImpairedSince(value); return *this;} /** *

The time when a status check failed. For an instance that was launched and * impaired, this is the time when the instance was launched.

*/ inline InstanceStatusDetails& WithImpairedSince(Aws::Utils::DateTime&& value) { SetImpairedSince(std::move(value)); return *this;} /** *

The type of instance status.

*/ inline const StatusName& GetName() const{ return m_name; } /** *

The type of instance status.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The type of instance status.

*/ inline void SetName(const StatusName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The type of instance status.

*/ inline void SetName(StatusName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The type of instance status.

*/ inline InstanceStatusDetails& WithName(const StatusName& value) { SetName(value); return *this;} /** *

The type of instance status.

*/ inline InstanceStatusDetails& WithName(StatusName&& value) { SetName(std::move(value)); return *this;} /** *

The status.

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

The status.

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

The status.

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

The status.

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

The status.

*/ inline InstanceStatusDetails& WithStatus(const StatusType& value) { SetStatus(value); return *this;} /** *

The status.

*/ inline InstanceStatusDetails& WithStatus(StatusType&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Utils::DateTime m_impairedSince; bool m_impairedSinceHasBeenSet = false; StatusName m_name; bool m_nameHasBeenSet = false; StatusType m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws