public void setAccessRules(AccessRules accessRules) {
        this.accessRules = accessRules;
    }
<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.
aws-java-sdk-lightsail/src/main/java/com/amazonaws/services/lightsail/model/UpdateBucketRequest.java