public class BlockDeviceMapping
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a block device mapping.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
deviceName
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
private Ebs |
ebs
The information about the Amazon EBS volume.
|
private java.lang.Boolean |
noDevice
Suppresses a device mapping.
|
private java.lang.String |
virtualName
The name of the virtual device (for example,
ephemeral0 ). |
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
BlockDeviceMapping |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceName()
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
Ebs |
getEbs()
The information about the Amazon EBS volume.
|
java.lang.Boolean |
getNoDevice()
Suppresses a device mapping.
|
java.lang.String |
getVirtualName()
The name of the virtual device (for example,
ephemeral0 ). |
int |
hashCode() |
java.lang.Boolean |
isNoDevice()
Suppresses a device mapping.
|
void |
setDeviceName(java.lang.String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
void |
setEbs(Ebs ebs)
The information about the Amazon EBS volume.
|
void |
setNoDevice(java.lang.Boolean noDevice)
Suppresses a device mapping.
|
void |
setVirtualName(java.lang.String virtualName)
The name of the virtual device (for example,
ephemeral0 ). |
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
BlockDeviceMapping |
withDeviceName(java.lang.String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh or xvdh ). |
BlockDeviceMapping |
withEbs(Ebs ebs)
The information about the Amazon EBS volume.
|
BlockDeviceMapping |
withNoDevice(java.lang.Boolean noDevice)
Suppresses a device mapping.
|
BlockDeviceMapping |
withVirtualName(java.lang.String virtualName)
The name of the virtual device (for example,
ephemeral0 ). |
private java.lang.String virtualName
The name of the virtual device (for example, ephemeral0
).
private java.lang.String deviceName
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
private Ebs ebs
The information about the Amazon EBS volume.
private java.lang.Boolean noDevice
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
public void setVirtualName(java.lang.String virtualName)
The name of the virtual device (for example, ephemeral0
).
virtualName
- The name of the virtual device (for example,
ephemeral0
).public java.lang.String getVirtualName()
The name of the virtual device (for example, ephemeral0
).
ephemeral0
).public BlockDeviceMapping withVirtualName(java.lang.String virtualName)
The name of the virtual device (for example, ephemeral0
).
virtualName
- The name of the virtual device (for example,
ephemeral0
).public void setDeviceName(java.lang.String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
deviceName
- The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).public java.lang.String getDeviceName()
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public BlockDeviceMapping withDeviceName(java.lang.String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
deviceName
- The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).public void setEbs(Ebs ebs)
The information about the Amazon EBS volume.
ebs
- The information about the Amazon EBS volume.public Ebs getEbs()
The information about the Amazon EBS volume.
public BlockDeviceMapping withEbs(Ebs ebs)
The information about the Amazon EBS volume.
ebs
- The information about the Amazon EBS volume.public void setNoDevice(java.lang.Boolean noDevice)
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
noDevice
- Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
public java.lang.Boolean getNoDevice()
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
public BlockDeviceMapping withNoDevice(java.lang.Boolean noDevice)
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
noDevice
- Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
public java.lang.Boolean isNoDevice()
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
If this parameter is true for the root device, the instance might fail the EC2 health check. Auto Scaling launches a replacement instance if the instance fails the health check.
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public BlockDeviceMapping clone()
clone
in class java.lang.Object