public DeleteFleetLocationsRequest withLocations(String... locations) {
        if (this.locations == null) {
            setLocations(new java.util.ArrayList<String>(locations.length));
        }
        for (String ele : locations) {
            this.locations.add(ele);
        }
        return this;
    }
<p>
The list of fleet locations to delete. Specify locations in the form of an Amazon Web Services Region code, such
as <code>us-west-2</code>.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLocations(java.util.Collection)} or {@link #withLocations(java.util.Collection)} if you want to
override the existing values.
</p>

@param locations
       The list of fleet locations to delete. Specify locations in the form of an Amazon Web Services Region
       code, such as <code>us-west-2</code>.
@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/DeleteFleetLocationsRequest.java