/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a block device mapping entry.See Also:
AWS
* API Reference
The device name (for example, /dev/sdh
or
* xvdh
).
The device name (for example, /dev/sdh
or
* xvdh
).
The device name (for example, /dev/sdh
or
* xvdh
).
The device name (for example, /dev/sdh
or
* xvdh
).
The device name (for example, /dev/sdh
or
* xvdh
).
The device name (for example, /dev/sdh
or
* xvdh
).
The device name (for example, /dev/sdh
or
* xvdh
).
The device name (for example, /dev/sdh
or
* xvdh
).
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