Class InstanceBlockDeviceMappingSpecification
- java.lang.Object
-
- com.amazonaws.services.ec2.model.InstanceBlockDeviceMappingSpecification
-
- All Implemented Interfaces:
Serializable,Cloneable
public class InstanceBlockDeviceMappingSpecification extends Object implements Serializable, Cloneable
Describes a block device mapping entry.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InstanceBlockDeviceMappingSpecification()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceBlockDeviceMappingSpecificationclone()booleanequals(Object obj)StringgetDeviceName()The device name exposed to the instance (for example,/dev/sdhorxvdh).EbsInstanceBlockDeviceSpecificationgetEbs()Parameters used to automatically set up EBS volumes when the instance is launched.StringgetNoDevice()suppress the specified device included in the block device mapping.StringgetVirtualName()The virtual device name.inthashCode()voidsetDeviceName(String deviceName)The device name exposed to the instance (for example,/dev/sdhorxvdh).voidsetEbs(EbsInstanceBlockDeviceSpecification ebs)Parameters used to automatically set up EBS volumes when the instance is launched.voidsetNoDevice(String noDevice)suppress the specified device included in the block device mapping.voidsetVirtualName(String virtualName)The virtual device name.StringtoString()Returns a string representation of this object; useful for testing and debugging.InstanceBlockDeviceMappingSpecificationwithDeviceName(String deviceName)The device name exposed to the instance (for example,/dev/sdhorxvdh).InstanceBlockDeviceMappingSpecificationwithEbs(EbsInstanceBlockDeviceSpecification ebs)Parameters used to automatically set up EBS volumes when the instance is launched.InstanceBlockDeviceMappingSpecificationwithNoDevice(String noDevice)suppress the specified device included in the block device mapping.InstanceBlockDeviceMappingSpecificationwithVirtualName(String virtualName)The virtual device name.
-
-
-
Method Detail
-
setDeviceName
public void setDeviceName(String deviceName)
The device name exposed to the instance (for example,
/dev/sdhorxvdh).- Parameters:
deviceName- The device name exposed to the instance (for example,/dev/sdhorxvdh).
-
getDeviceName
public String getDeviceName()
The device name exposed to the instance (for example,
/dev/sdhorxvdh).- Returns:
- The device name exposed to the instance (for example,
/dev/sdhorxvdh).
-
withDeviceName
public InstanceBlockDeviceMappingSpecification withDeviceName(String deviceName)
The device name exposed to the instance (for example,
/dev/sdhorxvdh).- Parameters:
deviceName- The device name exposed to the instance (for example,/dev/sdhorxvdh).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setEbs
public void setEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs- Parameters used to automatically set up EBS volumes when the instance is launched.
-
getEbs
public EbsInstanceBlockDeviceSpecification getEbs()
Parameters used to automatically set up EBS volumes when the instance is launched.
- Returns:
- Parameters used to automatically set up EBS volumes when the instance is launched.
-
withEbs
public InstanceBlockDeviceMappingSpecification withEbs(EbsInstanceBlockDeviceSpecification ebs)
Parameters used to automatically set up EBS volumes when the instance is launched.
- Parameters:
ebs- Parameters used to automatically set up EBS volumes when the instance is launched.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setVirtualName
public void setVirtualName(String virtualName)
The virtual device name.
- Parameters:
virtualName- The virtual device name.
-
getVirtualName
public String getVirtualName()
The virtual device name.
- Returns:
- The virtual device name.
-
withVirtualName
public InstanceBlockDeviceMappingSpecification withVirtualName(String virtualName)
The virtual device name.
- Parameters:
virtualName- The virtual device name.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
setNoDevice
public void setNoDevice(String noDevice)
suppress the specified device included in the block device mapping.
- Parameters:
noDevice- suppress the specified device included in the block device mapping.
-
getNoDevice
public String getNoDevice()
suppress the specified device included in the block device mapping.
- Returns:
- suppress the specified device included in the block device mapping.
-
withNoDevice
public InstanceBlockDeviceMappingSpecification withNoDevice(String noDevice)
suppress the specified device included in the block device mapping.
- Parameters:
noDevice- suppress the specified device included in the block device mapping.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toStringin classObject- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public InstanceBlockDeviceMappingSpecification clone()
-
-