public class EbsInstanceBlockDevice extends Object implements Serializable
An EBS volume backed block device which is attached to an instance.
Constructor and Description |
---|
EbsInstanceBlockDevice() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getAttachTime()
The time at which the EBS volume was attached to the associated
instance.
|
Boolean |
getDeleteOnTermination()
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
String |
getStatus()
The status of the EBS volume.
|
String |
getVolumeId()
The ID of the EBS volume.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
void |
setAttachTime(Date attachTime)
The time at which the EBS volume was attached to the associated
instance.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
void |
setStatus(AttachmentStatus status)
The status of the EBS volume.
|
void |
setStatus(String status)
The status of the EBS volume.
|
void |
setVolumeId(String volumeId)
The ID of the EBS volume.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EbsInstanceBlockDevice |
withAttachTime(Date attachTime)
The time at which the EBS volume was attached to the associated
instance.
|
EbsInstanceBlockDevice |
withDeleteOnTermination(Boolean deleteOnTermination)
Specifies whether the Amazon EBS volume is deleted on instance
termination.
|
EbsInstanceBlockDevice |
withStatus(AttachmentStatus status)
The status of the EBS volume.
|
EbsInstanceBlockDevice |
withStatus(String status)
The status of the EBS volume.
|
EbsInstanceBlockDevice |
withVolumeId(String volumeId)
The ID of the EBS volume.
|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the EBS volume.public EbsInstanceBlockDevice withVolumeId(String volumeId)
Returns a reference to this object so that method calls can be chained together.
volumeId
- The ID of the EBS volume.public String getStatus()
Constraints:
Allowed Values: attaching, attached, detaching, detached
AttachmentStatus
public void setStatus(String status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The status of the EBS volume.AttachmentStatus
public EbsInstanceBlockDevice withStatus(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 status of the EBS volume.AttachmentStatus
public void setStatus(AttachmentStatus status)
Constraints:
Allowed Values: attaching, attached, detaching, detached
status
- The status of the EBS volume.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 status of the EBS volume.AttachmentStatus
public Date getAttachTime()
public void setAttachTime(Date attachTime)
attachTime
- The time at which the EBS volume was attached to the associated
instance.public EbsInstanceBlockDevice withAttachTime(Date attachTime)
Returns a reference to this object so that method calls can be chained together.
attachTime
- The time at which the EBS volume was attached to the associated
instance.public Boolean isDeleteOnTermination()
public void setDeleteOnTermination(Boolean deleteOnTermination)
deleteOnTermination
- Specifies whether the Amazon EBS volume is deleted on instance
termination.public EbsInstanceBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
Returns a reference to this object so that method calls can be chained together.
deleteOnTermination
- Specifies whether the Amazon EBS volume is deleted on instance
termination.public Boolean getDeleteOnTermination()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.