List of usage examples for com.amazonaws.services.ec2.model VolumeAttachment getDeleteOnTermination
public Boolean getDeleteOnTermination()
Indicates whether the EBS volume is deleted on instance termination.
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*/ }