public class EbsInstanceBlockDeviceSpecification
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes information used to set up an EBS volume specified in a block device mapping.
Modifier and Type | Field and Description |
---|---|
private java.lang.Boolean |
deleteOnTermination
Indicates whether the volume is deleted on instance termination.
|
private java.lang.String |
volumeId
The ID of the EBS volume.
|
Constructor and Description |
---|
EbsInstanceBlockDeviceSpecification() |
Modifier and Type | Method and Description |
---|---|
EbsInstanceBlockDeviceSpecification |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Boolean |
getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
java.lang.String |
getVolumeId()
The ID of the EBS volume.
|
int |
hashCode() |
java.lang.Boolean |
isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
void |
setVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EbsInstanceBlockDeviceSpecification |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
EbsInstanceBlockDeviceSpecification |
withVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
|
private java.lang.String volumeId
The ID of the EBS volume.
private java.lang.Boolean deleteOnTermination
Indicates whether the volume is deleted on instance termination.
public void setVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.public java.lang.String getVolumeId()
The ID of the EBS volume.
public EbsInstanceBlockDeviceSpecification withVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.public java.lang.Boolean getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
public EbsInstanceBlockDeviceSpecification withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.public java.lang.Boolean isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
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 EbsInstanceBlockDeviceSpecification clone()
clone
in class java.lang.Object