public GetAccessGrantsLocationResult withAccessGrantsLocationId(String accessGrantsLocationId) {
        setAccessGrantsLocationId(accessGrantsLocationId);
        return this;
    }
<p>
The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when you
register the location. S3 Access Grants assigns the ID <code>default</code> to the default location
<code>s3://</code> and assigns an auto-generated ID to other locations that you register.
</p>

@param accessGrantsLocationId
       The ID of the registered location to which you are granting access. S3 Access Grants assigns this ID when
       you register the location. S3 Access Grants assigns the ID <code>default</code> to the default location
       <code>s3://</code> and assigns an auto-generated ID to other locations that you register.
@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/GetAccessGrantsLocationResult.java