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

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

Introduction

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

Prototype


public void setDevice(String device) 

Source Link

Document

The device name.

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());/*from ww  w .j a  v  a2s .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;
}