List of usage examples for com.amazonaws.services.ec2.model VolumeAttachment setState
public void setState(VolumeAttachmentState state)
The attachment state of the volume.
From source file:jp.primecloud.auto.aws.typica.converter.VolumeAttachmentConverter.java
License:Open Source License
@Override protected VolumeAttachment convertObject(AttachmentInfo from) { VolumeAttachment to = new VolumeAttachment(); to.setVolumeId(from.getVolumeId());/* ww w . j av a2 s. c o m*/ to.setInstanceId(from.getInstanceId()); to.setDevice(from.getDevice()); to.setState(from.getStatus()); to.setAttachTime(from.getAttachTime().getTime()); // to.setDeleteOnTermination(false); return to; }