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

EBS block device that's attached to an Amazon EC2 instance.

See * Also:

AWS * API Reference

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

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline const Aws::String& GetDevice() const{ return m_device; } /** *

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline bool DeviceHasBeenSet() const { return m_deviceHasBeenSet; } /** *

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline void SetDevice(const Aws::String& value) { m_deviceHasBeenSet = true; m_device = value; } /** *

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline void SetDevice(Aws::String&& value) { m_deviceHasBeenSet = true; m_device = std::move(value); } /** *

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline void SetDevice(const char* value) { m_deviceHasBeenSet = true; m_device.assign(value); } /** *

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline EbsVolume& WithDevice(const Aws::String& value) { SetDevice(value); return *this;} /** *

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline EbsVolume& WithDevice(Aws::String&& value) { SetDevice(std::move(value)); return *this;} /** *

The device name that is exposed to the instance, such as /dev/sdh.

*/ inline EbsVolume& WithDevice(const char* value) { SetDevice(value); return *this;} /** *

The volume identifier of the EBS volume.

*/ inline const Aws::String& GetVolumeId() const{ return m_volumeId; } /** *

The volume identifier of the EBS volume.

*/ inline bool VolumeIdHasBeenSet() const { return m_volumeIdHasBeenSet; } /** *

The volume identifier of the EBS volume.

*/ inline void SetVolumeId(const Aws::String& value) { m_volumeIdHasBeenSet = true; m_volumeId = value; } /** *

The volume identifier of the EBS volume.

*/ inline void SetVolumeId(Aws::String&& value) { m_volumeIdHasBeenSet = true; m_volumeId = std::move(value); } /** *

The volume identifier of the EBS volume.

*/ inline void SetVolumeId(const char* value) { m_volumeIdHasBeenSet = true; m_volumeId.assign(value); } /** *

The volume identifier of the EBS volume.

*/ inline EbsVolume& WithVolumeId(const Aws::String& value) { SetVolumeId(value); return *this;} /** *

The volume identifier of the EBS volume.

*/ inline EbsVolume& WithVolumeId(Aws::String&& value) { SetVolumeId(std::move(value)); return *this;} /** *

The volume identifier of the EBS volume.

*/ inline EbsVolume& WithVolumeId(const char* value) { SetVolumeId(value); return *this;} private: Aws::String m_device; bool m_deviceHasBeenSet = false; Aws::String m_volumeId; bool m_volumeIdHasBeenSet = false; }; } // namespace Model } // namespace EMR } // namespace Aws