@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class BlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping.
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
BlockDeviceMapping |
clone() |
boolean |
equals(Object obj) |
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.
|
Boolean |
getNoDevice()
Suppresses a device mapping.
|
String |
getVirtualName()
The name of the virtual device (for example,
ephemeral0 ). |
int |
hashCode() |
Boolean |
isNoDevice()
Suppresses a device mapping.
|
void |
setDeviceName(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(Boolean noDevice)
Suppresses a device mapping.
|
void |
setVirtualName(String virtualName)
The name of the virtual device (for example,
ephemeral0 ). |
String |
toString()
Returns a string representation of this object.
|
BlockDeviceMapping |
withDeviceName(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(Boolean noDevice)
Suppresses a device mapping.
|
BlockDeviceMapping |
withVirtualName(String virtualName)
The name of the virtual device (for example,
ephemeral0 ). |
public void setVirtualName(String virtualName)
The name of the virtual device (for example, ephemeral0
).
virtualName
- The name of the virtual device (for example, ephemeral0
).public String getVirtualName()
The name of the virtual device (for example, ephemeral0
).
ephemeral0
).public BlockDeviceMapping withVirtualName(String virtualName)
The name of the virtual device (for example, ephemeral0
).
virtualName
- The name of the virtual device (for example, ephemeral0
).public void setDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
). For more
information, see Device Naming
on Linux Instances in the Amazon EC2 User Guide for Linux Instances.
deviceName
- The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
). For
more information, see Device Naming on Linux
Instances in the Amazon EC2 User Guide for Linux Instances.public String getDeviceName()
The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
). For more
information, see Device Naming
on Linux Instances in the Amazon EC2 User Guide for Linux Instances.
/dev/sdh
or xvdh
).
For more information, see Device Naming on Linux
Instances in the Amazon EC2 User Guide for Linux Instances.public BlockDeviceMapping withDeviceName(String deviceName)
The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
). For more
information, see Device Naming
on Linux Instances in the Amazon EC2 User Guide for Linux Instances.
deviceName
- The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
). For
more information, see Device Naming on Linux
Instances in the Amazon EC2 User Guide for Linux Instances.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(Boolean noDevice)
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
noDevice
- Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
public Boolean getNoDevice()
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
public BlockDeviceMapping withNoDevice(Boolean noDevice)
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
noDevice
- Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
public Boolean isNoDevice()
Suppresses a device mapping.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
If this parameter is true for the root device, the instance might fail the EC2 health check. In that case, Amazon EC2 Auto Scaling launches a replacement instance.
public String toString()
toString
in class Object
Object.toString()
public BlockDeviceMapping clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.