public StopInstanceRequest withForce(Boolean force) {
        setForce(force);
        return this;
    }
<p>
When set to <code>True</code>, forces a Lightsail instance that is stuck in a <code>stopping</code> state to
stop.
</p>
<important>
<p>
Only use the <code>force</code> parameter if your instance is stuck in the <code>stopping</code> state. In any
other state, your instance should stop normally without adding this parameter to your API request.
</p>
</important>

@param force
       When set to <code>True</code>, forces a Lightsail instance that is stuck in a <code>stopping</code> state
       to stop.</p> <important>
       <p>
       Only use the <code>force</code> parameter if your instance is stuck in the <code>stopping</code> state. In
       any other state, your instance should stop normally without adding this parameter to your API request.
       </p>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/StopInstanceRequest.java