/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a block device mapping.See Also:
AWS
* API Reference
The device name.
*/ inline const Aws::String& GetDeviceName() const{ return m_deviceName; } /** *The device name.
*/ inline bool DeviceNameHasBeenSet() const { return m_deviceNameHasBeenSet; } /** *The device name.
*/ inline void SetDeviceName(const Aws::String& value) { m_deviceNameHasBeenSet = true; m_deviceName = value; } /** *The device name.
*/ inline void SetDeviceName(Aws::String&& value) { m_deviceNameHasBeenSet = true; m_deviceName = std::move(value); } /** *The device name.
*/ inline void SetDeviceName(const char* value) { m_deviceNameHasBeenSet = true; m_deviceName.assign(value); } /** *The device name.
*/ inline LaunchTemplateBlockDeviceMapping& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *The device name.
*/ inline LaunchTemplateBlockDeviceMapping& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *The device name.
*/ inline LaunchTemplateBlockDeviceMapping& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *The virtual device name (ephemeralN).
*/ inline const Aws::String& GetVirtualName() const{ return m_virtualName; } /** *The virtual device name (ephemeralN).
*/ inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; } /** *The virtual device name (ephemeralN).
*/ inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; } /** *The virtual device name (ephemeralN).
*/ inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); } /** *The virtual device name (ephemeralN).
*/ inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); } /** *The virtual device name (ephemeralN).
*/ inline LaunchTemplateBlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;} /** *The virtual device name (ephemeralN).
*/ inline LaunchTemplateBlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;} /** *The virtual device name (ephemeralN).
*/ inline LaunchTemplateBlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;} /** *Information about the block device for an EBS volume.
*/ inline const LaunchTemplateEbsBlockDevice& GetEbs() const{ return m_ebs; } /** *Information about the block device for an EBS volume.
*/ inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; } /** *Information about the block device for an EBS volume.
*/ inline void SetEbs(const LaunchTemplateEbsBlockDevice& value) { m_ebsHasBeenSet = true; m_ebs = value; } /** *Information about the block device for an EBS volume.
*/ inline void SetEbs(LaunchTemplateEbsBlockDevice&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); } /** *Information about the block device for an EBS volume.
*/ inline LaunchTemplateBlockDeviceMapping& WithEbs(const LaunchTemplateEbsBlockDevice& value) { SetEbs(value); return *this;} /** *Information about the block device for an EBS volume.
*/ inline LaunchTemplateBlockDeviceMapping& WithEbs(LaunchTemplateEbsBlockDevice&& value) { SetEbs(std::move(value)); return *this;} /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline const Aws::String& GetNoDevice() const{ return m_noDevice; } /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; } /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; } /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); } /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); } /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline LaunchTemplateBlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;} /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline LaunchTemplateBlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;} /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline LaunchTemplateBlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;} private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; Aws::String m_virtualName; bool m_virtualNameHasBeenSet = false; LaunchTemplateEbsBlockDevice m_ebs; bool m_ebsHasBeenSet = false; Aws::String m_noDevice; bool m_noDeviceHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws