public class EbsInstanceBlockDevice
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Describes a parameter used to set up an EBS volume in a block device mapping.
Modifier and Type | Field and Description |
---|---|
private java.util.Date |
attachTime
The time stamp when the attachment initiated.
|
private java.lang.Boolean |
deleteOnTermination
Indicates whether the volume is deleted on instance termination.
|
private java.lang.String |
status
The attachment state.
|
private java.lang.String |
volumeId
The ID of the EBS volume.
|
Constructor and Description |
---|
EbsInstanceBlockDevice() |
Modifier and Type | Method and Description |
---|---|
EbsInstanceBlockDevice |
clone() |
boolean |
equals(java.lang.Object obj) |
java.util.Date |
getAttachTime()
The time stamp when the attachment initiated.
|
java.lang.Boolean |
getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
java.lang.String |
getStatus()
The attachment state.
|
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 |
setAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
|
void |
setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
void |
setStatus(AttachmentStatus status)
The attachment state.
|
void |
setStatus(java.lang.String status)
The attachment state.
|
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.
|
EbsInstanceBlockDevice |
withAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
|
EbsInstanceBlockDevice |
withDeleteOnTermination(java.lang.Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
EbsInstanceBlockDevice |
withStatus(AttachmentStatus status)
The attachment state.
|
EbsInstanceBlockDevice |
withStatus(java.lang.String status)
The attachment state.
|
EbsInstanceBlockDevice |
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.String status
The attachment state.
private java.util.Date attachTime
The time stamp when the attachment initiated.
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 EbsInstanceBlockDevice withVolumeId(java.lang.String volumeId)
The ID of the EBS volume.
volumeId
- The ID of the EBS volume.public void setStatus(java.lang.String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public java.lang.String getStatus()
The attachment state.
AttachmentStatus
public EbsInstanceBlockDevice withStatus(java.lang.String status)
The attachment state.
status
- The attachment state.AttachmentStatus
public void setStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
public EbsInstanceBlockDevice withStatus(AttachmentStatus status)
The attachment state.
status
- The attachment state.AttachmentStatus
public void setAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.public java.util.Date getAttachTime()
The time stamp when the attachment initiated.
public EbsInstanceBlockDevice withAttachTime(java.util.Date attachTime)
The time stamp when the attachment initiated.
attachTime
- The time stamp when the attachment initiated.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 EbsInstanceBlockDevice 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 EbsInstanceBlockDevice clone()
clone
in class java.lang.Object