public ValidatePolicyFinding withLocations(Location... locations) {
        if (this.locations == null) {
            setLocations(new java.util.ArrayList<Location>(locations.length));
        }
        for (Location ele : locations) {
            this.locations.add(ele);
        }
        return this;
    }
<p>
The list of locations in the policy document that are related to the finding. The issue code provides a summary
of an issue identified by the finding.
</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 locations in the policy document that are related to the finding. The issue code provides a
       summary of an issue identified by the finding.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-accessanalyzer/src/main/java/com/amazonaws/services/accessanalyzer/model/ValidatePolicyFinding.java