public RoutingStrategy withType(String type) {
        setType(type);
        return this;
    }
<p>
The type of routing strategy for the alias.
</p>
<p>
Possible routing types include the following:
</p>
<ul>
<li>
<p>
<b>SIMPLE</b> - The alias resolves to one specific fleet. Use this type when routing to active fleets.
</p>
</li>
<li>
<p>
<b>TERMINAL</b> - The alias does not resolve to a fleet but instead can be used to display a message to the user.
A terminal alias throws a TerminalRoutingStrategyException with the message embedded.
</p>
</li>
</ul>

@param type
       The type of routing strategy for the alias.</p>
       <p>
       Possible routing types include the following:
       </p>
       <ul>
       <li>
       <p>
       <b>SIMPLE</b> - The alias resolves to one specific fleet. Use this type when routing to active fleets.
       </p>
       </li>
       <li>
       <p>
       <b>TERMINAL</b> - The alias does not resolve to a fleet but instead can be used to display a message to
       the user. A terminal alias throws a TerminalRoutingStrategyException with the message embedded.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see RoutingStrategyType
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/RoutingStrategy.java