public class InstanceBlockDeviceMappingSpecification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a block device mapping entry.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
deviceName
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
private EbsInstanceBlockDeviceSpecification |
ebs
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
private java.lang.String |
noDevice
suppress the specified device included in the block device mapping.
|
private java.lang.String |
virtualName
The virtual device name.
|
Constructor and Description |
---|
InstanceBlockDeviceMappingSpecification() |
Modifier and Type | Method and Description |
---|---|
InstanceBlockDeviceMappingSpecification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
EbsInstanceBlockDeviceSpecification |
getEbs()
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
java.lang.String |
getNoDevice()
suppress the specified device included in the block device mapping.
|
java.lang.String |
getVirtualName()
The virtual device name.
|
int |
hashCode() |
void |
setDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
void |
setEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
void |
setNoDevice(java.lang.String noDevice)
suppress the specified device included in the block device mapping.
|
void |
setVirtualName(java.lang.String virtualName)
The virtual device name.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
InstanceBlockDeviceMappingSpecification |
withDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh or xvdh ). |
InstanceBlockDeviceMappingSpecification |
withEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance is
launched.
|
InstanceBlockDeviceMappingSpecification |
withNoDevice(java.lang.String noDevice)
suppress the specified device included in the block device mapping.
|
InstanceBlockDeviceMappingSpecification |
withVirtualName(java.lang.String virtualName)
The virtual device name.
|
private java.lang.String deviceName
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
private EbsInstanceBlockDeviceSpecification ebs
Parameters used to automatically set up EBS volumes when the instance is launched.
private java.lang.String virtualName
The virtual device name.
private java.lang.String noDevice
suppress the specified device included in the block device mapping.
public InstanceBlockDeviceMappingSpecification()
public void setDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
deviceName
- The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).public java.lang.String getDeviceName()
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public InstanceBlockDeviceMappingSpecification withDeviceName(java.lang.String deviceName)
The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).
deviceName
- The device name exposed to the instance (for example,
/dev/sdh
or xvdh
).public void setEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the
instance is launched.public EbsInstanceBlockDeviceSpecification getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
public InstanceBlockDeviceMappingSpecification withEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
ebs
- Parameters used to automatically set up EBS volumes when the
instance is launched.public void setVirtualName(java.lang.String virtualName)
The virtual device name.
virtualName
- The virtual device name.public java.lang.String getVirtualName()
The virtual device name.
public InstanceBlockDeviceMappingSpecification withVirtualName(java.lang.String virtualName)
The virtual device name.
virtualName
- The virtual device name.public void setNoDevice(java.lang.String noDevice)
suppress the specified device included in the block device mapping.
noDevice
- suppress the specified device included in the block device
mapping.public java.lang.String getNoDevice()
suppress the specified device included in the block device mapping.
public InstanceBlockDeviceMappingSpecification withNoDevice(java.lang.String noDevice)
suppress the specified device included in the block device mapping.
noDevice
- suppress the specified device included in the block device
mapping.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 InstanceBlockDeviceMappingSpecification clone()
clone
in class java.lang.Object