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