@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class EbsInstanceBlockDevice extends Object implements Serializable, Cloneable, StructuredPojo
Describes a parameter used to set up an Amazon Elastic Block Store (Amazon EBS) volume in a block device mapping.
| Constructor and Description |
|---|
EbsInstanceBlockDevice() |
| Modifier and Type | Method and Description |
|---|---|
EbsInstanceBlockDevice |
clone() |
boolean |
equals(Object obj) |
Date |
getAttachTime()
When the attachment was initiated.
|
Boolean |
getDeleteOnTermination()
A value that 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()
A value that indicates whether the volume is deleted on instance termination.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setAttachTime(Date attachTime)
When the attachment was initiated.
|
void |
setDeleteOnTermination(Boolean deleteOnTermination)
A value that indicates whether the volume is deleted on instance termination.
|
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.
|
EbsInstanceBlockDevice |
withAttachTime(Date attachTime)
When the attachment was initiated.
|
EbsInstanceBlockDevice |
withDeleteOnTermination(Boolean deleteOnTermination)
A value that 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 void setAttachTime(Date attachTime)
When the attachment was initiated.
attachTime - When the attachment was initiated.public Date getAttachTime()
When the attachment was initiated.
public EbsInstanceBlockDevice withAttachTime(Date attachTime)
When the attachment was initiated.
attachTime - When the attachment was initiated.public void setDeleteOnTermination(Boolean deleteOnTermination)
A value that indicates whether the volume is deleted on instance termination.
deleteOnTermination - A value that indicates whether the volume is deleted on instance termination.public Boolean getDeleteOnTermination()
A value that indicates whether the volume is deleted on instance termination.
public EbsInstanceBlockDevice withDeleteOnTermination(Boolean deleteOnTermination)
A value that indicates whether the volume is deleted on instance termination.
deleteOnTermination - A value that indicates whether the volume is deleted on instance termination.public Boolean isDeleteOnTermination()
A value that indicates whether the volume is deleted on instance termination.
public void setStatus(String status)
The attachment state.
status - The attachment state.AttachmentStatuspublic String getStatus()
The attachment state.
AttachmentStatuspublic EbsInstanceBlockDevice withStatus(String status)
The attachment state.
status - The attachment state.AttachmentStatuspublic EbsInstanceBlockDevice withStatus(AttachmentStatus status)
The attachment state.
status - The attachment state.AttachmentStatuspublic void setVolumeId(String volumeId)
The ID of the Amazon EBS volume.
volumeId - The ID of the Amazon EBS volume.public String getVolumeId()
The ID of the Amazon EBS volume.
public EbsInstanceBlockDevice withVolumeId(String volumeId)
The ID of the Amazon EBS volume.
volumeId - The ID of the Amazon EBS volume.public String toString()
toString in class ObjectObject.toString()public EbsInstanceBlockDevice clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.