public class BlockDeviceMapping
extends java.lang.Object
implements java.io.Serializable
Describes a block device mapping.
Constructor and Description |
---|
BlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
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 ). |
public java.lang.String getVirtualName()
The name of the virtual device (for example, ephemeral0
).
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The name of the virtual device (for example,
ephemeral0
).
public void setVirtualName(java.lang.String virtualName)
The name of the virtual device (for example, ephemeral0
).
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
virtualName
-
The name of the virtual device (for example,
ephemeral0
).
public BlockDeviceMapping withVirtualName(java.lang.String virtualName)
The name of the virtual device (for example, ephemeral0
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
virtualName
-
The name of the virtual device (for example,
ephemeral0
).
public java.lang.String getDeviceName()
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
public void setDeviceName(java.lang.String deviceName)
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
deviceName
-
The device name exposed to the EC2 instance (for example,
/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
).
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [ --�𐀀-\r\n\t]*
deviceName
-
The device name exposed to the EC2 instance (for example,
/dev/sdh
or xvdh
).
public Ebs getEbs()
The information about the Amazon EBS volume.
The information about the Amazon EBS volume.
public void setEbs(Ebs ebs)
The information about the Amazon EBS volume.
ebs
- The information about the Amazon EBS volume.
public BlockDeviceMapping withEbs(Ebs ebs)
The information about the Amazon EBS volume.
Returns a reference to this object so that method calls can be chained together.
ebs
- The information about the Amazon EBS volume.
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.
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.
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 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 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.
Returns a reference to this object so that method calls can be chained together.
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.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.