/** * 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 Lightsail { namespace Model { /** *

Describes a disk.

See Also:

AWS * API Reference

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

The disk name.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The disk name.

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

The disk name.

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

The disk name.

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

The disk name.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The disk name.

*/ inline DiskInfo& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The disk name.

*/ inline DiskInfo& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The disk name.

*/ inline DiskInfo& WithName(const char* value) { SetName(value); return *this;} /** *

The disk path.

*/ inline const Aws::String& GetPath() const{ return m_path; } /** *

The disk path.

*/ inline bool PathHasBeenSet() const { return m_pathHasBeenSet; } /** *

The disk path.

*/ inline void SetPath(const Aws::String& value) { m_pathHasBeenSet = true; m_path = value; } /** *

The disk path.

*/ inline void SetPath(Aws::String&& value) { m_pathHasBeenSet = true; m_path = std::move(value); } /** *

The disk path.

*/ inline void SetPath(const char* value) { m_pathHasBeenSet = true; m_path.assign(value); } /** *

The disk path.

*/ inline DiskInfo& WithPath(const Aws::String& value) { SetPath(value); return *this;} /** *

The disk path.

*/ inline DiskInfo& WithPath(Aws::String&& value) { SetPath(std::move(value)); return *this;} /** *

The disk path.

*/ inline DiskInfo& WithPath(const char* value) { SetPath(value); return *this;} /** *

The size of the disk in GB (e.g., 32).

*/ inline int GetSizeInGb() const{ return m_sizeInGb; } /** *

The size of the disk in GB (e.g., 32).

*/ inline bool SizeInGbHasBeenSet() const { return m_sizeInGbHasBeenSet; } /** *

The size of the disk in GB (e.g., 32).

*/ inline void SetSizeInGb(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; } /** *

The size of the disk in GB (e.g., 32).

*/ inline DiskInfo& WithSizeInGb(int value) { SetSizeInGb(value); return *this;} /** *

A Boolean value indicating whether this disk is a system disk (has an * operating system loaded on it).

*/ inline bool GetIsSystemDisk() const{ return m_isSystemDisk; } /** *

A Boolean value indicating whether this disk is a system disk (has an * operating system loaded on it).

*/ inline bool IsSystemDiskHasBeenSet() const { return m_isSystemDiskHasBeenSet; } /** *

A Boolean value indicating whether this disk is a system disk (has an * operating system loaded on it).

*/ inline void SetIsSystemDisk(bool value) { m_isSystemDiskHasBeenSet = true; m_isSystemDisk = value; } /** *

A Boolean value indicating whether this disk is a system disk (has an * operating system loaded on it).

*/ inline DiskInfo& WithIsSystemDisk(bool value) { SetIsSystemDisk(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_path; bool m_pathHasBeenSet = false; int m_sizeInGb; bool m_sizeInGbHasBeenSet = false; bool m_isSystemDisk; bool m_isSystemDiskHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws