/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a block device mapping for an Amazon Elastic Compute Cloud
* (Amazon EC2) launch template. 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 AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithDeviceName(const Aws::String& value) { SetDeviceName(value); return *this;} /** *The device name.
*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithDeviceName(Aws::String&& value) { SetDeviceName(std::move(value)); return *this;} /** *The device name.
*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithDeviceName(const char* value) { SetDeviceName(value); return *this;} /** *Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.
*/ inline const AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& GetEbs() const{ return m_ebs; } /** *Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.
*/ inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; } /** *Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.
*/ inline void SetEbs(const AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& value) { m_ebsHasBeenSet = true; m_ebs = value; } /** *Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.
*/ inline void SetEbs(AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); } /** *Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.
*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithEbs(const AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails& value) { SetEbs(value); return *this;} /** *Parameters used to automatically set up Amazon EBS volumes when the instance * is launched.
*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithEbs(AwsEc2LaunchTemplateDataBlockDeviceMappingSetEbsDetails&& value) { SetEbs(std::move(value)); return *this;} /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline const Aws::String& GetNoDevice() const{ return m_noDevice; } /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline bool NoDeviceHasBeenSet() const { return m_noDeviceHasBeenSet; } /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline void SetNoDevice(const Aws::String& value) { m_noDeviceHasBeenSet = true; m_noDevice = value; } /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline void SetNoDevice(Aws::String&& value) { m_noDeviceHasBeenSet = true; m_noDevice = std::move(value); } /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline void SetNoDevice(const char* value) { m_noDeviceHasBeenSet = true; m_noDevice.assign(value); } /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;} /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;} /** *Omits the device from the block device mapping when an empty string is * specified.
*/ inline AwsEc2LaunchTemplateDataBlockDeviceMappingSetDetails& WithNoDevice(const char* value) { SetNoDevice(value); return *this;} /** * The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.
The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.
The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.
The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.
The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.
The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.
The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.
The virtual device name (ephemeralN). Instance store volumes are numbered
* starting from 0. An instance type with 2 available instance store volumes can
* specify mappings for ephemeral0
and ephemeral1
. The
* number of available instance store volumes depends on the instance type.