public Accelerator withEnabled(Boolean enabled) {
        setEnabled(enabled);
        return this;
    }
<p>
Indicates whether the accelerator is enabled. The value is true or false. The default value is true.
</p>
<p>
If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be deleted.
</p>

@param enabled
       Indicates whether the accelerator is enabled. The value is true or false. The default value is true. </p>
       <p>
       If the value is set to true, the accelerator cannot be deleted. If set to false, accelerator can be
       deleted.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-globalaccelerator/src/main/java/com/amazonaws/services/globalaccelerator/model/Accelerator.java