public ListAccessGrantsLocationsResult withAccessGrantsLocationsList(ListAccessGrantsLocationsEntry... accessGrantsLocationsList) {
        if (this.accessGrantsLocationsList == null) {
            setAccessGrantsLocationsList(new java.util.ArrayList<ListAccessGrantsLocationsEntry>(accessGrantsLocationsList.length));
        }
        for (ListAccessGrantsLocationsEntry ele : accessGrantsLocationsList) {
            this.accessGrantsLocationsList.add(ele);
        }
        return this;
    }
<p>
A container for a list of registered locations in an S3 Access Grants instance.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setAccessGrantsLocationsList(java.util.Collection)} or
{@link #withAccessGrantsLocationsList(java.util.Collection)} if you want to override the existing values.
</p>

@param accessGrantsLocationsList
       A container for a list of registered locations in an S3 Access Grants instance.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-s3control/src/main/java/com/amazonaws/services/s3control/model/ListAccessGrantsLocationsResult.java