/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes a block device mapping for a Scheduled Instance.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 set up EBS volumes automatically when the instance is * launched.
*/ inline const ScheduledInstancesEbs& GetEbs() const{ return m_ebs; } /** *Parameters used to set up EBS volumes automatically when the instance is * launched.
*/ inline bool EbsHasBeenSet() const { return m_ebsHasBeenSet; } /** *Parameters used to set up EBS volumes automatically when the instance is * launched.
*/ inline void SetEbs(const ScheduledInstancesEbs& value) { m_ebsHasBeenSet = true; m_ebs = value; } /** *Parameters used to set up EBS volumes automatically when the instance is * launched.
*/ inline void SetEbs(ScheduledInstancesEbs&& value) { m_ebsHasBeenSet = true; m_ebs = std::move(value); } /** *Parameters used to set up EBS volumes automatically when the instance is * launched.
*/ inline ScheduledInstancesBlockDeviceMapping& WithEbs(const ScheduledInstancesEbs& value) { SetEbs(value); return *this;} /** *Parameters used to set up EBS volumes automatically when the instance is * launched.
*/ inline ScheduledInstancesBlockDeviceMapping& WithEbs(ScheduledInstancesEbs&& 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 ScheduledInstancesBlockDeviceMapping& WithNoDevice(const Aws::String& value) { SetNoDevice(value); return *this;} /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(Aws::String&& value) { SetNoDevice(std::move(value)); return *this;} /** *To omit the device from the block device mapping, specify an empty * string.
*/ inline ScheduledInstancesBlockDeviceMapping& WithNoDevice(const char* value) { SetNoDevice(value); return *this;} /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline const Aws::String& GetVirtualName() const{ return m_virtualName; } /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline bool VirtualNameHasBeenSet() const { return m_virtualNameHasBeenSet; } /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline void SetVirtualName(const Aws::String& value) { m_virtualNameHasBeenSet = true; m_virtualName = value; } /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline void SetVirtualName(Aws::String&& value) { m_virtualNameHasBeenSet = true; m_virtualName = std::move(value); } /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline void SetVirtualName(const char* value) { m_virtualNameHasBeenSet = true; m_virtualName.assign(value); } /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(const Aws::String& value) { SetVirtualName(value); return *this;} /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(Aws::String&& value) { SetVirtualName(std::move(value)); return *this;} /** *The virtual device name (ephemeral
N). Instance store volumes are
* numbered starting from 0. An instance type with two available instance store
* volumes can specify mappings for ephemeral0
and
* ephemeral1
. The number of available instance store volumes depends
* on the instance type. After you connect to the instance, you must mount the
* volume.
Constraints: For M3 instances, you must specify instance store * volumes in the block device mapping for the instance. When you launch an M3 * instance, we ignore any instance store volumes specified in the block device * mapping for the AMI.
*/ inline ScheduledInstancesBlockDeviceMapping& WithVirtualName(const char* value) { SetVirtualName(value); return *this;} private: Aws::String m_deviceName; bool m_deviceNameHasBeenSet = false; ScheduledInstancesEbs 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