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

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

Introduction

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

Prototype


public void setDeleteOnTermination(Boolean deleteOnTermination) 

Source Link

Document

Indicates whether the EBS volume is deleted on instance termination.

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 w  ww . j  av a  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;
}