public class EbsInstanceBlockDeviceSpecification
extends java.lang.Object
implements java.io.Serializable
Describes information used to set up an EBS volume specified in a block device mapping.
| Constructor and Description |
|---|
EbsInstanceBlockDeviceSpecification() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId - The ID of the EBS volume.public EbsInstanceBlockDeviceSpecification withVolumeId(java.lang.String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId - The ID of the EBS volume.public java.lang.Boolean isDeleteOnTermination()
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
deleteOnTermination - Indicates whether the volume is deleted on instance termination.public EbsInstanceBlockDeviceSpecification withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination - Indicates whether the volume is deleted on instance termination.public java.lang.Boolean getDeleteOnTermination()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018 Amazon Web Services, Inc. All Rights Reserved.