public void setTerminateInstances(Boolean terminateInstances) {
        this.terminateInstances = terminateInstances;
    }
<p>
Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The default is
to terminate the instances.
</p>
<p>
To let the instances continue to run after the Spot Fleet request is canceled, specify
<code>no-terminate-instances</code>.
</p>

@param terminateInstances
       Indicates whether to terminate the associated instances when the Spot Fleet request is canceled. The
       default is to terminate the instances.</p>
       <p>
       To let the instances continue to run after the Spot Fleet request is canceled, specify
       <code>no-terminate-instances</code>.
aws-java-sdk-ec2/src/main/java/com/amazonaws/services/ec2/model/CancelSpotFleetRequestsRequest.java