public SpotOptionsRequest withInstanceInterruptionBehavior(SpotInstanceInterruptionBehavior instanceInterruptionBehavior) {
        this.instanceInterruptionBehavior = instanceInterruptionBehavior.toString();
        return this;
    }
<p>
The behavior when a Spot Instance is interrupted.
</p>
<p>
Default: <code>terminate</code>
</p>

@param instanceInterruptionBehavior
       The behavior when a Spot Instance is interrupted.</p>
       <p>
       Default: <code>terminate</code>
@return Returns a reference to this object so that method calls can be chained together.
@see SpotInstanceInterruptionBehavior
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/SpotOptionsRequest.java