@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceBlockDeviceMappingSpecification extends Object implements Serializable, Cloneable
Describes a block device mapping entry.
Constructor and Description |
---|
InstanceBlockDeviceMappingSpecification() |
Modifier and Type | Method and Description |
---|---|
InstanceBlockDeviceMappingSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceName()
The device name (for example,
/dev/sdh or xvdh ). |
EbsInstanceBlockDeviceSpecification |
getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
|
String |
getNoDevice()
suppress the specified device included in the block device mapping.
|
String |
getVirtualName()
The virtual device name.
|
int |
hashCode() |
void |
setDeviceName(String deviceName)
The device name (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(String noDevice)
suppress the specified device included in the block device mapping.
|
void |
setVirtualName(String virtualName)
The virtual device name.
|
String |
toString()
Returns a string representation of this object.
|
InstanceBlockDeviceMappingSpecification |
withDeviceName(String deviceName)
The device name (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(String noDevice)
suppress the specified device included in the block device mapping.
|
InstanceBlockDeviceMappingSpecification |
withVirtualName(String virtualName)
The virtual device name.
|
public InstanceBlockDeviceMappingSpecification()
public void setDeviceName(String deviceName)
The device name (for example, /dev/sdh
or xvdh
).
deviceName
- The device name (for example, /dev/sdh
or xvdh
).public String getDeviceName()
The device name (for example, /dev/sdh
or xvdh
).
/dev/sdh
or xvdh
).public InstanceBlockDeviceMappingSpecification withDeviceName(String deviceName)
The device name (for example, /dev/sdh
or xvdh
).
deviceName
- The device name (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 setNoDevice(String noDevice)
suppress the specified device included in the block device mapping.
noDevice
- suppress the specified device included in the block device mapping.public String getNoDevice()
suppress the specified device included in the block device mapping.
public InstanceBlockDeviceMappingSpecification withNoDevice(String noDevice)
suppress the specified device included in the block device mapping.
noDevice
- suppress the specified device included in the block device mapping.public void setVirtualName(String virtualName)
The virtual device name.
virtualName
- The virtual device name.public String getVirtualName()
The virtual device name.
public InstanceBlockDeviceMappingSpecification withVirtualName(String virtualName)
The virtual device name.
virtualName
- The virtual device name.public String toString()
toString
in class Object
Object.toString()
public InstanceBlockDeviceMappingSpecification clone()