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

The disk identifier.

See Also:

AWS API * Reference

*/ class Disk { public: AWS_MGN_API Disk(); AWS_MGN_API Disk(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API Disk& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MGN_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The amount of storage on the disk in bytes.

*/ inline long long GetBytes() const{ return m_bytes; } /** *

The amount of storage on the disk in bytes.

*/ inline bool BytesHasBeenSet() const { return m_bytesHasBeenSet; } /** *

The amount of storage on the disk in bytes.

*/ inline void SetBytes(long long value) { m_bytesHasBeenSet = true; m_bytes = value; } /** *

The amount of storage on the disk in bytes.

*/ inline Disk& WithBytes(long long value) { SetBytes(value); return *this;} /** *

The disk or device name.

*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *

The disk or device name.

*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *

The disk or device name.

*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *

The disk or device name.

*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *

The disk or device name.

*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *

The disk or device name.

*/ inline Disk& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *

The disk or device name.

*/ inline Disk& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *

The disk or device name.

*/ inline Disk& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} private: long long m_bytes; bool m_bytesHasBeenSet = false; Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; }; } // namespace Model } // namespace mgn } // namespace Aws