public void setDeleteOnTermination(Boolean deleteOnTermination) {
        this.deleteOnTermination = deleteOnTermination;
    }
<p>
Indicates whether the volume should be deleted on when the task stops. If a value of <code>true</code> is
specified, &#x2028;Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the
<code>STOPPED</code> state. If no value is specified, the &#x2028;default value is <code>true</code> is used.
When set to <code>false</code>, Amazon ECS leaves the volume in your &#x2028;account.
</p>

@param deleteOnTermination
       Indicates whether the volume should be deleted on when the task stops. If a value of <code>true</code> is
       specified, &#x2028;Amazon ECS deletes the Amazon EBS volume on your behalf when the task goes into the
       <code>STOPPED</code> state. If no value is specified, the &#x2028;default value is <code>true</code> is
       used. When set to <code>false</code>, Amazon ECS leaves the volume in your &#x2028;account.
aws-java-sdk-ecs/src/main/java/com/amazonaws/services/ecs/model/TaskManagedEBSVolumeTerminationPolicy.java