Example usage for com.amazonaws.services.ec2.model VolumeAttachment setState

List of usage examples for com.amazonaws.services.ec2.model VolumeAttachment setState

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model VolumeAttachment setState.

Prototype


public void setState(VolumeAttachmentState state) 

Source Link

Document

The attachment state of the volume.

Usage

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;
}