public CreateGameServerGroupRequest withBalancingStrategy(BalancingStrategy balancingStrategy) {
        this.balancingStrategy = balancingStrategy.toString();
        return this;
    }
<p>
Indicates how Amazon GameLift FleetIQ balances the use of Spot Instances and On-Demand Instances in the game
server group. Method options include the following:
</p>
<ul>
<li>
<p>
<code>SPOT_ONLY</code> - Only Spot Instances are used in the game server group. If Spot Instances are unavailable
or not viable for game hosting, the game server group provides no hosting capacity until Spot Instances can again
be used. Until then, no new instances are started, and the existing nonviable Spot Instances are terminated
(after current gameplay ends) and are not replaced.
</p>
</li>
<li>
<p>
<code>SPOT_PREFERRED</code> - (default value) Spot Instances are used whenever available in the game server
group. If Spot Instances are unavailable, the game server group continues to provide hosting capacity by falling
back to On-Demand Instances. Existing nonviable Spot Instances are terminated (after current gameplay ends) and
are replaced with new On-Demand Instances.
</p>
</li>
<li>
<p>
<code>ON_DEMAND_ONLY</code> - Only On-Demand Instances are used in the game server group. No Spot Instances are
used, even when available, while this balancing strategy is in force.
</p>
</li>
</ul>

@param balancingStrategy
       Indicates how Amazon GameLift FleetIQ balances the use of Spot Instances and On-Demand Instances in the
       game server group. Method options include the following:</p>
       <ul>
       <li>
       <p>
       <code>SPOT_ONLY</code> - Only Spot Instances are used in the game server group. If Spot Instances are
       unavailable or not viable for game hosting, the game server group provides no hosting capacity until Spot
       Instances can again be used. Until then, no new instances are started, and the existing nonviable Spot
       Instances are terminated (after current gameplay ends) and are not replaced.
       </p>
       </li>
       <li>
       <p>
       <code>SPOT_PREFERRED</code> - (default value) Spot Instances are used whenever available in the game
       server group. If Spot Instances are unavailable, the game server group continues to provide hosting
       capacity by falling back to On-Demand Instances. Existing nonviable Spot Instances are terminated (after
       current gameplay ends) and are replaced with new On-Demand Instances.
       </p>
       </li>
       <li>
       <p>
       <code>ON_DEMAND_ONLY</code> - Only On-Demand Instances are used in the game server group. No Spot
       Instances are used, even when available, while this balancing strategy is in force.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see BalancingStrategy
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/CreateGameServerGroupRequest.java