/** * 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 a disk.

See Also:

AWS API * Reference

*/ class DiskInfo { public: AWS_EC2_API DiskInfo(); AWS_EC2_API DiskInfo(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API DiskInfo& 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 disk in GB.

*/ inline long long GetSizeInGB() const{ return m_sizeInGB; } /** *

The size of the disk in GB.

*/ inline bool SizeInGBHasBeenSet() const { return m_sizeInGBHasBeenSet; } /** *

The size of the disk in GB.

*/ inline void SetSizeInGB(long long value) { m_sizeInGBHasBeenSet = true; m_sizeInGB = value; } /** *

The size of the disk in GB.

*/ inline DiskInfo& WithSizeInGB(long long value) { SetSizeInGB(value); return *this;} /** *

The number of disks with this configuration.

*/ inline int GetCount() const{ return m_count; } /** *

The number of disks with this configuration.

*/ inline bool CountHasBeenSet() const { return m_countHasBeenSet; } /** *

The number of disks with this configuration.

*/ inline void SetCount(int value) { m_countHasBeenSet = true; m_count = value; } /** *

The number of disks with this configuration.

*/ inline DiskInfo& WithCount(int value) { SetCount(value); return *this;} /** *

The type of disk.

*/ inline const DiskType& GetType() const{ return m_type; } /** *

The type of disk.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of disk.

*/ inline void SetType(const DiskType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of disk.

*/ inline void SetType(DiskType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of disk.

*/ inline DiskInfo& WithType(const DiskType& value) { SetType(value); return *this;} /** *

The type of disk.

*/ inline DiskInfo& WithType(DiskType&& value) { SetType(std::move(value)); return *this;} private: long long m_sizeInGB; bool m_sizeInGBHasBeenSet = false; int m_count; bool m_countHasBeenSet = false; DiskType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws