@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class LaunchTemplateBlockDeviceMapping extends Object implements Serializable, Cloneable
Describes a block device mapping.
Constructor and Description |
---|
LaunchTemplateBlockDeviceMapping() |
Modifier and Type | Method and Description |
---|---|
LaunchTemplateBlockDeviceMapping |
clone() |
boolean |
equals(Object obj) |
String |
getDeviceName()
The device name.
|
LaunchTemplateEbsBlockDevice |
getEbs()
Information about the block device for an EBS volume.
|
String |
getNoDevice()
To omit the device from the block device mapping, specify an empty string.
|
String |
getVirtualName()
The virtual device name (ephemeralN).
|
int |
hashCode() |
void |
setDeviceName(String deviceName)
The device name.
|
void |
setEbs(LaunchTemplateEbsBlockDevice ebs)
Information about the block device for an EBS volume.
|
void |
setNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
|
void |
setVirtualName(String virtualName)
The virtual device name (ephemeralN).
|
String |
toString()
Returns a string representation of this object.
|
LaunchTemplateBlockDeviceMapping |
withDeviceName(String deviceName)
The device name.
|
LaunchTemplateBlockDeviceMapping |
withEbs(LaunchTemplateEbsBlockDevice ebs)
Information about the block device for an EBS volume.
|
LaunchTemplateBlockDeviceMapping |
withNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
|
LaunchTemplateBlockDeviceMapping |
withVirtualName(String virtualName)
The virtual device name (ephemeralN).
|
public void setDeviceName(String deviceName)
The device name.
deviceName
- The device name.public String getDeviceName()
The device name.
public LaunchTemplateBlockDeviceMapping withDeviceName(String deviceName)
The device name.
deviceName
- The device name.public void setVirtualName(String virtualName)
The virtual device name (ephemeralN).
virtualName
- The virtual device name (ephemeralN).public String getVirtualName()
The virtual device name (ephemeralN).
public LaunchTemplateBlockDeviceMapping withVirtualName(String virtualName)
The virtual device name (ephemeralN).
virtualName
- The virtual device name (ephemeralN).public void setEbs(LaunchTemplateEbsBlockDevice ebs)
Information about the block device for an EBS volume.
ebs
- Information about the block device for an EBS volume.public LaunchTemplateEbsBlockDevice getEbs()
Information about the block device for an EBS volume.
public LaunchTemplateBlockDeviceMapping withEbs(LaunchTemplateEbsBlockDevice ebs)
Information about the block device for an EBS volume.
ebs
- Information about the block device for an EBS volume.public void setNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
noDevice
- To omit the device from the block device mapping, specify an empty string.public String getNoDevice()
To omit the device from the block device mapping, specify an empty string.
public LaunchTemplateBlockDeviceMapping withNoDevice(String noDevice)
To omit the device from the block device mapping, specify an empty string.
noDevice
- To omit the device from the block device mapping, specify an empty string.public String toString()
toString
in class Object
Object.toString()
public LaunchTemplateBlockDeviceMapping clone()