@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; useful for testing and debugging.
|
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
).
deviceName
- The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
).public String getDeviceName()
The device name exposed to the EC2 instance (for example, /dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public BlockDeviceMapping withDeviceName(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(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 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(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 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 String toString()
toString
in class Object
Object.toString()
public BlockDeviceMapping clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.