public void setForce(Boolean force) {
        this.force = force;
    }
<p>
Specifies whether to force a detachment.
</p>
<note>
<ul>
<li>
<p>
Use the <code>Force</code> parameter only as a last resort to detach a network interface from a failed instance.
</p>
</li>
<li>
<p>
If you use the <code>Force</code> parameter to detach a network interface, you might not be able to attach a
different network interface to the same index on the instance without first stopping and starting the instance.
</p>
</li>
<li>
<p>
If you force the detachment of a network interface, the <a
href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">instance metadata</a> might
not get updated. This means that the attributes associated with the detached network interface might still be
visible. The instance metadata will get updated when you stop and start the instance.
</p>
</li>
</ul>
</note>

@param force
       Specifies whether to force a detachment.</p> <note>
       <ul>
       <li>
       <p>
       Use the <code>Force</code> parameter only as a last resort to detach a network interface from a failed
       instance.
       </p>
       </li>
       <li>
       <p>
       If you use the <code>Force</code> parameter to detach a network interface, you might not be able to attach
       a different network interface to the same index on the instance without first stopping and starting the
       instance.
       </p>
       </li>
       <li>
       <p>
       If you force the detachment of a network interface, the <a
       href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">instance
       metadata</a> might not get updated. This means that the attributes associated with the detached network
       interface might still be visible. The instance metadata will get updated when you stop and start the
       instance.
       </p>
       </li>
       </ul>
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/DetachNetworkInterfaceRequest.java