public UpdateBucketRequest withAccessRules(AccessRules accessRules) {
        setAccessRules(accessRules);
        return this;
    }
<p>
An object that sets the public accessibility of objects in the specified bucket.
</p>

@param accessRules
       An object that sets the public accessibility of objects in the specified bucket.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/UpdateBucketRequest.java