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

Describes an EBS volume.

See Also:

AWS * API Reference

*/ class VolumeDetail { public: AWS_EC2_API VolumeDetail(); AWS_EC2_API VolumeDetail(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API VolumeDetail& 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 size of the volume, in GiB.

*/ inline long long GetSize() const{ return m_size; } /** *

The size of the volume, in GiB.

*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *

The size of the volume, in GiB.

*/ inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; } /** *

The size of the volume, in GiB.

*/ inline VolumeDetail& WithSize(long long value) { SetSize(value); return *this;} private: long long m_size; bool m_sizeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws