public CreateFleetRequest withLocations(java.util.Collection<LocationConfiguration> locations) {
        setLocations(locations);
        return this;
    }
<p>
A set of remote locations to deploy additional instances to and manage as part of the fleet. This parameter can
only be used when creating fleets in Amazon Web Services Regions that support multiple locations. You can add any
Amazon GameLift-supported Amazon Web Services Region as a remote location, in the form of an Amazon Web Services
Region code, such as <code>us-west-2</code> or Local Zone code. To create a fleet with instances in the home
Region only, don't set this parameter.
</p>
<p>
When using this parameter, Amazon GameLift requires you to include your home location in the request.
</p>

@param locations
       A set of remote locations to deploy additional instances to and manage as part of the fleet. This
       parameter can only be used when creating fleets in Amazon Web Services Regions that support multiple
       locations. You can add any Amazon GameLift-supported Amazon Web Services Region as a remote location, in
       the form of an Amazon Web Services Region code, such as <code>us-west-2</code> or Local Zone code. To
       create a fleet with instances in the home Region only, don't set this parameter. </p>
       <p>
       When using this parameter, Amazon GameLift requires you to include your home location in the request.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/model/CreateFleetRequest.java