public void setDeleteOnTermination(Boolean deleteOnTermination) {
        this.deleteOnTermination = deleteOnTermination;
    }
<p>
Indicates whether the network interface is deleted when the instance is terminated.
</p>

@param deleteOnTermination
       Indicates whether the network interface is deleted when the instance is terminated.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/NetworkInterfaceAttachment.java