@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateBlockDeviceMappingRequest extends Object implements Serializable, Cloneable
Describes a block device mapping.
Constructor and Description |
---|
LaunchTemplateBlockDeviceMappingRequest() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateBlockDeviceMappingRequest |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceName()
The device name (for example, /dev/sdh or xvdh).
|
LaunchTemplateEbsBlockDeviceRequest |
getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
|
String |
getNoDevice()
To omit the device from the block device mapping, specify an empty string.
|
String |
getVirtualName()
The virtual device name (ephemeralN).
|
int |
hashCode() |
void |
setDeviceName(String deviceName)
The device name (for example, /dev/sdh or xvdh).
|
void |
setEbs(LaunchTemplateEbsBlockDeviceRequest ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
|
void |
setNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
|
void |
setVirtualName(String virtualName)
The virtual device name (ephemeralN).
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateBlockDeviceMappingRequest |
withDeviceName(String deviceName)
The device name (for example, /dev/sdh or xvdh).
|
LaunchTemplateBlockDeviceMappingRequest |
withEbs(LaunchTemplateEbsBlockDeviceRequest ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
|
LaunchTemplateBlockDeviceMappingRequest |
withNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
|
LaunchTemplateBlockDeviceMappingRequest |
withVirtualName(String virtualName)
The virtual device name (ephemeralN).
|
public LaunchTemplateBlockDeviceMappingRequest()
public void setDeviceName(String deviceName)
The device name (for example, /dev/sdh or xvdh).
deviceName
- The device name (for example, /dev/sdh or xvdh).public String getDeviceName()
The device name (for example, /dev/sdh or xvdh).
public LaunchTemplateBlockDeviceMappingRequest withDeviceName(String deviceName)
The device name (for example, /dev/sdh or xvdh).
deviceName
- The device name (for example, /dev/sdh or xvdh).public void setVirtualName(String virtualName)
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. After you connect to the instance, you must mount the volume.
virtualName
- 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. After you connect to the
instance, you must mount the volume.public String getVirtualName()
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. After you connect to the instance, you must mount the volume.
public LaunchTemplateBlockDeviceMappingRequest withVirtualName(String virtualName)
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. After you connect to the instance, you must mount the volume.
virtualName
- 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. After you connect to the
instance, you must mount the volume.public void setEbs(LaunchTemplateEbsBlockDeviceRequest ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.public LaunchTemplateEbsBlockDeviceRequest getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
public LaunchTemplateBlockDeviceMappingRequest withEbs(LaunchTemplateEbsBlockDeviceRequest ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the instance is launched.public void setNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
noDevice
- To omit the device from the block device mapping, specify an empty string.public String getNoDevice()
To omit the device from the block device mapping, specify an empty string.
public LaunchTemplateBlockDeviceMappingRequest withNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
noDevice
- To omit the device from the block device mapping, specify an empty string.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateBlockDeviceMappingRequest clone()