/** * 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 status of a volume.

See Also:

AWS * API Reference

*/ class VolumeStatusInfo { public: AWS_EC2_API VolumeStatusInfo(); AWS_EC2_API VolumeStatusInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VolumeStatusInfo& 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 details of the volume status.

*/ inline const Aws::Vector& GetDetails() const{ return m_details; } /** *

The details of the volume status.

*/ inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; } /** *

The details of the volume status.

*/ inline void SetDetails(const Aws::Vector& value) { m_detailsHasBeenSet = true; m_details = value; } /** *

The details of the volume status.

*/ inline void SetDetails(Aws::Vector&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); } /** *

The details of the volume status.

*/ inline VolumeStatusInfo& WithDetails(const Aws::Vector& value) { SetDetails(value); return *this;} /** *

The details of the volume status.

*/ inline VolumeStatusInfo& WithDetails(Aws::Vector&& value) { SetDetails(std::move(value)); return *this;} /** *

The details of the volume status.

*/ inline VolumeStatusInfo& AddDetails(const VolumeStatusDetails& value) { m_detailsHasBeenSet = true; m_details.push_back(value); return *this; } /** *

The details of the volume status.

*/ inline VolumeStatusInfo& AddDetails(VolumeStatusDetails&& value) { m_detailsHasBeenSet = true; m_details.push_back(std::move(value)); return *this; } /** *

The status of the volume.

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

The status of the volume.

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

The status of the volume.

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

The status of the volume.

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

The status of the volume.

*/ inline VolumeStatusInfo& WithStatus(const VolumeStatusInfoStatus& value) { SetStatus(value); return *this;} /** *

The status of the volume.

*/ inline VolumeStatusInfo& WithStatus(VolumeStatusInfoStatus&& value) { SetStatus(std::move(value)); return *this;} private: Aws::Vector m_details; bool m_detailsHasBeenSet = false; VolumeStatusInfoStatus m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws