public ReplaceRootVolumeTask withDeleteReplacedRootVolume(Boolean deleteReplacedRootVolume) {
        setDeleteReplacedRootVolume(deleteReplacedRootVolume);
        return this;
    }
<p>
Indicates whether the original root volume is to be deleted after the root volume replacement task completes.
</p>

@param deleteReplacedRootVolume
       Indicates whether the original root volume is to be deleted after the root volume replacement task
       completes.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/ReplaceRootVolumeTask.java