public class EbsInstanceBlockDevice
extends java.lang.Object
implements java.io.Serializable
Describes a parameter used to set up an EBS volume in a block device mapping.
Constructor and Description |
---|
EbsInstanceBlockDevice() |
Modifier and Type | Method and Description |
---|---|
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.
|
public java.lang.String getVolumeId()
public void setVolumeId(java.lang.String volumeId)
volumeId
- The ID of the EBS volume.public EbsInstanceBlockDevice 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.String getStatus()
Constraints:
Allowed Values: attaching, attached, detaching, detached
AttachmentStatus
public void setStatus(java.lang.String status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The attachment state.AttachmentStatus
public EbsInstanceBlockDevice withStatus(java.lang.String status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The attachment state.AttachmentStatus
public void setStatus(AttachmentStatus status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The attachment state.AttachmentStatus
public EbsInstanceBlockDevice withStatus(AttachmentStatus status)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The attachment state.AttachmentStatus
public java.util.Date getAttachTime()
public void setAttachTime(java.util.Date attachTime)
attachTime
- The time stamp when the attachment initiated.public EbsInstanceBlockDevice withAttachTime(java.util.Date attachTime)
Returns a reference to this object so that method calls can be chained together.
attachTime
- The time stamp when the attachment initiated.public java.lang.Boolean isDeleteOnTermination()
public void setDeleteOnTermination(java.lang.Boolean deleteOnTermination)
deleteOnTermination
- Indicates whether the volume is deleted on instance termination.public EbsInstanceBlockDevice 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.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.