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

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

Introduction

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

Prototype


public Boolean getDeleteOnTermination() 

Source Link

Document

Indicates whether the EBS volume is deleted on instance termination.

Usage

From source file:org.xmlsh.aws.util.AWSEC2Command.java

License:BSD License

protected void writeAttachment(VolumeAttachment attachment) throws XMLStreamException {
    startElement("attachment");
    attribute("delete-on-termination", AWSUtil.parseBoolean(attachment.getDeleteOnTermination()));
    attribute("attach-date", Util.formatXSDateTime(attachment.getAttachTime()));
    attribute("device", attachment.getDevice());
    attribute("instance-id", attachment.getInstanceId());
    attribute("volume-id", attachment.getVolumeId());
    attribute("state", attachment.getState());
    endElement();/*  www.  java2s .co  m*/
}