/** * 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 block storage disk that is attached to an instance, and is * included in an automatic snapshot.

See Also:

AWS * API Reference

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

The path of the disk (e.g., /dev/xvdf).

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

The path of the disk (e.g., /dev/xvdf).

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

The path of the disk (e.g., /dev/xvdf).

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

The path of the disk (e.g., /dev/xvdf).

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

The path of the disk (e.g., /dev/xvdf).

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

The path of the disk (e.g., /dev/xvdf).

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

The path of the disk (e.g., /dev/xvdf).

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

The path of the disk (e.g., /dev/xvdf).

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

The size of the disk in GB.

*/ inline int 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(int value) { m_sizeInGbHasBeenSet = true; m_sizeInGb = value; } /** *

The size of the disk in GB.

*/ inline AttachedDisk& WithSizeInGb(int value) { SetSizeInGb(value); return *this;} private: Aws::String m_path; bool m_pathHasBeenSet = false; int m_sizeInGb; bool m_sizeInGbHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws