public class InstanceBlockDeviceMappingSpecification extends Object implements Serializable
Specifies how an instance's block devices should be mapped on a running instance.
Constructor and Description |
---|
InstanceBlockDeviceMappingSpecification() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getDeviceName()
The device name (e.g.,
/dev/sdh ) at which the block
device is exposed on the instance. |
EbsInstanceBlockDeviceSpecification |
getEbs()
The EBS instance block device specification describing the EBS block
device to map to the specified device name on a running instance.
|
String |
getNoDevice()
When set to the empty string, specifies that the device name in this
object should not be mapped to any real device.
|
String |
getVirtualName()
The virtual device name.
|
int |
hashCode() |
void |
setDeviceName(String deviceName)
The device name (e.g.,
/dev/sdh ) at which the block
device is exposed on the instance. |
void |
setEbs(EbsInstanceBlockDeviceSpecification ebs)
The EBS instance block device specification describing the EBS block
device to map to the specified device name on a running instance.
|
void |
setNoDevice(String noDevice)
When set to the empty string, specifies that the device name in this
object should not be mapped to any real device.
|
void |
setVirtualName(String virtualName)
The virtual device name.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceBlockDeviceMappingSpecification |
withDeviceName(String deviceName)
The device name (e.g.,
/dev/sdh ) at which the block
device is exposed on the instance. |
InstanceBlockDeviceMappingSpecification |
withEbs(EbsInstanceBlockDeviceSpecification ebs)
The EBS instance block device specification describing the EBS block
device to map to the specified device name on a running instance.
|
InstanceBlockDeviceMappingSpecification |
withNoDevice(String noDevice)
When set to the empty string, specifies that the device name in this
object should not be mapped to any real device.
|
InstanceBlockDeviceMappingSpecification |
withVirtualName(String virtualName)
The virtual device name.
|
public InstanceBlockDeviceMappingSpecification()
public String getDeviceName()
/dev/sdh
) at which the block
device is exposed on the instance./dev/sdh
) at which the block
device is exposed on the instance.public void setDeviceName(String deviceName)
/dev/sdh
) at which the block
device is exposed on the instance.deviceName
- The device name (e.g., /dev/sdh
) at which the block
device is exposed on the instance.public InstanceBlockDeviceMappingSpecification withDeviceName(String deviceName)
/dev/sdh
) at which the block
device is exposed on the instance.
Returns a reference to this object so that method calls can be chained together.
deviceName
- The device name (e.g., /dev/sdh
) at which the block
device is exposed on the instance.public EbsInstanceBlockDeviceSpecification getEbs()
public void setEbs(EbsInstanceBlockDeviceSpecification ebs)
ebs
- The EBS instance block device specification describing the EBS block
device to map to the specified device name on a running instance.public InstanceBlockDeviceMappingSpecification withEbs(EbsInstanceBlockDeviceSpecification ebs)
Returns a reference to this object so that method calls can be chained together.
ebs
- The EBS instance block device specification describing the EBS block
device to map to the specified device name on a running instance.public String getVirtualName()
public void setVirtualName(String virtualName)
virtualName
- The virtual device name.public InstanceBlockDeviceMappingSpecification withVirtualName(String virtualName)
Returns a reference to this object so that method calls can be chained together.
virtualName
- The virtual device name.public String getNoDevice()
public void setNoDevice(String noDevice)
noDevice
- When set to the empty string, specifies that the device name in this
object should not be mapped to any real device.public InstanceBlockDeviceMappingSpecification withNoDevice(String noDevice)
Returns a reference to this object so that method calls can be chained together.
noDevice
- When set to the empty string, specifies that the device name in this
object should not be mapped to any real device.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.