public FilterConfiguration withAllowedLocations(String... allowedLocations) {
        if (this.allowedLocations == null) {
            setAllowedLocations(new java.util.ArrayList<String>(allowedLocations.length));
        }
        for (String ele : allowedLocations) {
            this.allowedLocations.add(ele);
        }
        return this;
    }
<p>
A list of locations to allow game session placement in, in the form of Amazon Web Services Region codes 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 #setAllowedLocations(java.util.Collection)} or {@link #withAllowedLocations(java.util.Collection)} if you
want to override the existing values.
</p>

@param allowedLocations
       A list of locations to allow game session placement in, in the form of Amazon Web Services Region codes
       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/FilterConfiguration.java