public UpdateAccessGrantsLocationRequest withAccessGrantsLocationId(String accessGrantsLocationId) {
        setAccessGrantsLocationId(accessGrantsLocationId);
        return this;
    }
<p>
The ID of the registered location that you are updating. 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>
<p>
The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when you
registered 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>
<p>
If you are passing the <code>default</code> location, you cannot create an access grant for the entire default
location. You must also specify a bucket or a bucket and prefix in the <code>Subprefix</code> field.
</p>

@param accessGrantsLocationId
       The ID of the registered location that you are updating. 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>
       <p>
       The ID of the registered location to which you are granting access. S3 Access Grants assigned this ID when
       you registered 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>
       <p>
       If you are passing the <code>default</code> location, you cannot create an access grant for the entire
       default location. You must also specify a bucket or a bucket and prefix in the <code>Subprefix</code>
       field.
@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/UpdateAccessGrantsLocationRequest.java