/** * 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 mapping.

See Also:

AWS * API Reference

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

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline const Aws::String& GetOriginalDiskPath() const{ return m_originalDiskPath; } /** *

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline bool OriginalDiskPathHasBeenSet() const { return m_originalDiskPathHasBeenSet; } /** *

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline void SetOriginalDiskPath(const Aws::String& value) { m_originalDiskPathHasBeenSet = true; m_originalDiskPath = value; } /** *

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline void SetOriginalDiskPath(Aws::String&& value) { m_originalDiskPathHasBeenSet = true; m_originalDiskPath = std::move(value); } /** *

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline void SetOriginalDiskPath(const char* value) { m_originalDiskPathHasBeenSet = true; m_originalDiskPath.assign(value); } /** *

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline DiskMap& WithOriginalDiskPath(const Aws::String& value) { SetOriginalDiskPath(value); return *this;} /** *

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline DiskMap& WithOriginalDiskPath(Aws::String&& value) { SetOriginalDiskPath(std::move(value)); return *this;} /** *

The original disk path exposed to the instance (for example, * /dev/sdh).

*/ inline DiskMap& WithOriginalDiskPath(const char* value) { SetOriginalDiskPath(value); return *this;} /** *

The new disk name (e.g., my-new-disk).

*/ inline const Aws::String& GetNewDiskName() const{ return m_newDiskName; } /** *

The new disk name (e.g., my-new-disk).

*/ inline bool NewDiskNameHasBeenSet() const { return m_newDiskNameHasBeenSet; } /** *

The new disk name (e.g., my-new-disk).

*/ inline void SetNewDiskName(const Aws::String& value) { m_newDiskNameHasBeenSet = true; m_newDiskName = value; } /** *

The new disk name (e.g., my-new-disk).

*/ inline void SetNewDiskName(Aws::String&& value) { m_newDiskNameHasBeenSet = true; m_newDiskName = std::move(value); } /** *

The new disk name (e.g., my-new-disk).

*/ inline void SetNewDiskName(const char* value) { m_newDiskNameHasBeenSet = true; m_newDiskName.assign(value); } /** *

The new disk name (e.g., my-new-disk).

*/ inline DiskMap& WithNewDiskName(const Aws::String& value) { SetNewDiskName(value); return *this;} /** *

The new disk name (e.g., my-new-disk).

*/ inline DiskMap& WithNewDiskName(Aws::String&& value) { SetNewDiskName(std::move(value)); return *this;} /** *

The new disk name (e.g., my-new-disk).

*/ inline DiskMap& WithNewDiskName(const char* value) { SetNewDiskName(value); return *this;} private: Aws::String m_originalDiskPath; bool m_originalDiskPathHasBeenSet = false; Aws::String m_newDiskName; bool m_newDiskNameHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws