public CreateFleetRequest withFleetType(FleetType fleetType) {
        this.fleetType = fleetType.toString();
        return this;
    }
<p>
Indicates whether to use On-Demand or Spot instances for this fleet. By default, this property is set to
<code>ON_DEMAND</code>. Learn more about when to use <a href=
"https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-ec2-instances.html#gamelift-ec2-instances-spot"
> On-Demand versus Spot Instances</a>. This fleet property can't be changed after the fleet is created.
</p>

@param fleetType
       Indicates whether to use On-Demand or Spot instances for this fleet. By default, this property is set to
       <code>ON_DEMAND</code>. Learn more about when to use <a href=
       "https://docs.aws.amazon.com/gamelift/latest/developerguide/gamelift-ec2-instances.html#gamelift-ec2-instances-spot"
       > On-Demand versus Spot Instances</a>. This fleet property can't be changed after the fleet is created.
@return Returns a reference to this object so that method calls can be chained together.
@see FleetType
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/CreateFleetRequest.java