public PolicyFilter withResource(EntityReference resource) {
        setResource(resource);
        return this;
    }
<p>
Filters the output to only policies that reference the specified resource.
</p>

@param resource
       Filters the output to only policies that reference the specified resource.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-verifiedpermissions/src/main/java/com/amazonaws/services/verifiedpermissions/model/PolicyFilter.java