public class EbsInstanceBlockDevice extends Object implements Serializable
Describes a parameter used to set up an Amazon EBS volume in a block device mapping.
Constructor and Description |
---|
EbsInstanceBlockDevice() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Date |
getAttachTime()
The time stamp when the attachment initiated.
|
Boolean |
getDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
String |
getStatus()
The attachment state.
|
String |
getVolumeId()
The ID of the Amazon EBS volume.
|
int |
hashCode() |
Boolean |
isDeleteOnTermination()
Indicates whether the volume is deleted on instance termination.
|
void |
setAttachTime(Date attachTime)
The time stamp when the attachment initiated.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
void |
setStatus(AttachmentStatus status)
The attachment state.
|
void |
setStatus(String status)
The attachment state.
|
void |
setVolumeId(String volumeId)
The ID of the Amazon EBS volume.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
EbsInstanceBlockDevice |
withAttachTime(Date attachTime)
The time stamp when the attachment initiated.
|
EbsInstanceBlockDevice |
withDeleteOnTermination(Boolean deleteOnTermination)
Indicates whether the volume is deleted on instance termination.
|
EbsInstanceBlockDevice |
withStatus(AttachmentStatus status)
The attachment state.
|
EbsInstanceBlockDevice |
withStatus(String status)
The attachment state.
|
EbsInstanceBlockDevice |
withVolumeId(String volumeId)
The ID of the Amazon EBS volume.
|
public String getVolumeId()
public void setVolumeId(String volumeId)
volumeId
- The ID of the Amazon 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 Amazon 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 attachment state.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 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 Date getAttachTime()
public void setAttachTime(Date attachTime)
attachTime
- The time stamp when the attachment initiated.public EbsInstanceBlockDevice withAttachTime(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 Boolean isDeleteOnTermination()
public void setDeleteOnTermination(Boolean deleteOnTermination)
deleteOnTermination
- Indicates whether the 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
- Indicates whether the volume is deleted on instance termination.public Boolean getDeleteOnTermination()
public String toString()
toString
in class Object
Object.toString()
Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.