public void setLocations(java.util.Collection<Location> locations) {
        if (locations == null) {
            this.locations = null;
            return;
        }

        this.locations = new com.amazonaws.internal.SdkInternalList<Location>(locations);
    }
<p>
The locations.
</p>

@param locations
       The locations.
aws-java-sdk-directconnect/src/main/java/com/amazonaws/services/directconnect/model/DescribeLocationsResult.java