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

Describes a block device mapping entry.

See Also:

AWS * API Reference

*/ class InstanceBlockDeviceMappingSpecification { public: AWS_EC2_API InstanceBlockDeviceMappingSpecification(); AWS_EC2_API InstanceBlockDeviceMappingSpecification(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API InstanceBlockDeviceMappingSpecification& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const; AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const; /** *

The device name (for example, /dev/sdh or * xvdh).

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

The device name (for example, /dev/sdh or * xvdh).

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

The device name (for example, /dev/sdh or * xvdh).

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

The device name (for example, /dev/sdh or * xvdh).

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

The device name (for example, /dev/sdh or * xvdh).

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

The device name (for example, /dev/sdh or * xvdh).

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

The device name (for example, /dev/sdh or * xvdh).

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

The device name (for example, /dev/sdh or * xvdh).

*/ inline InstanceBlockDeviceMappingSpecification& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *

Parameters used to automatically set up EBS volumes when the instance is * launched.

*/ inline const EbsInstanceBlockDeviceSpecification& GetEbs() const{ return m_ebs; } /** *

Parameters used to automatically set up EBS volumes when the instance is * launched.

*/ inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; } /** *

Parameters used to automatically set up EBS volumes when the instance is * launched.

*/ inline void SetEbs(const EbsInstanceBlockDeviceSpecification& value) { m_ebsHasBeenSet = true; m_ebs = value; } /** *

Parameters used to automatically set up EBS volumes when the instance is * launched.

*/ inline void SetEbs(EbsInstanceBlockDeviceSpecification&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); } /** *

Parameters used to automatically set up EBS volumes when the instance is * launched.

*/ inline InstanceBlockDeviceMappingSpecification& WithEbs(const EbsInstanceBlockDeviceSpecification& value) { SetEbs(value); return *this;} /** *

Parameters used to automatically set up EBS volumes when the instance is * launched.

*/ inline InstanceBlockDeviceMappingSpecification& WithEbs(EbsInstanceBlockDeviceSpecification&& value) { SetEbs(std::move(value)); return *this;} /** *

suppress the specified device included in the block device mapping.

*/ inline const Aws::String& GetNoDevice() const{ return m_noDevice; } /** *

suppress the specified device included in the block device mapping.

*/ inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; } /** *

suppress the specified device included in the block device mapping.

*/ inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; } /** *

suppress the specified device included in the block device mapping.

*/ inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); } /** *

suppress the specified device included in the block device mapping.

*/ inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); } /** *

suppress the specified device included in the block device mapping.

*/ inline InstanceBlockDeviceMappingSpecification& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;} /** *

suppress the specified device included in the block device mapping.

*/ inline InstanceBlockDeviceMappingSpecification& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;} /** *

suppress the specified device included in the block device mapping.

*/ inline InstanceBlockDeviceMappingSpecification& WithNoDevice(const char* value) { SetNoDevice(value); return *this;} /** *

The virtual device name.

*/ inline const Aws::String& GetVirtualName() const{ return m_virtualName; } /** *

The virtual device name.

*/ inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; } /** *

The virtual device name.

*/ inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; } /** *

The virtual device name.

*/ inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); } /** *

The virtual device name.

*/ inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); } /** *

The virtual device name.

*/ inline InstanceBlockDeviceMappingSpecification& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;} /** *

The virtual device name.

*/ inline InstanceBlockDeviceMappingSpecification& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;} /** *

The virtual device name.

*/ inline InstanceBlockDeviceMappingSpecification& WithVirtualName(const char* value) { SetVirtualName(value); return *this;} private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; EbsInstanceBlockDeviceSpecification m_ebs; bool m_ebsHasBeenSet = false; Aws::String m_noDevice; bool m_noDeviceHasBeenSet = false; Aws::String m_virtualName; bool m_virtualNameHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws