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

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

Introduction

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

Prototype


public void setAttachTime(java.util.Date attachTime) 

Source Link

Document

The time stamp when the attachment initiated.

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());//  w w  w. j  ava 2  s .  co  m
    to.setInstanceId(from.getInstanceId());
    to.setDevice(from.getDevice());
    to.setState(from.getStatus());
    to.setAttachTime(from.getAttachTime().getTime());

    // 
    to.setDeleteOnTermination(false);

    return to;
}