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

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

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model EbsBlockDevice 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

private void writeBlockDeviceMapping(BlockDeviceMapping device) throws XMLStreamException {
    startElement("device");

    attribute("name", device.getDeviceName());

    EbsBlockDevice ebs = device.getEbs();
    if (ebs != null) {

        attribute("shapshot-id", ebs.getSnapshotId());
        attribute("delete-on-termination", ebs.getDeleteOnTermination());
        attribute("volume-size", ebs.getVolumeSize());
        attribute("volume-type", ebs.getVolumeType());
        attribute("encrypted", ebs.getEncrypted());
        attribute("iops", ebs.getIops());
    }/*from   w ww. j  a v a 2s.  c  o  m*/

    endElement();

}