public ListSecurityPoliciesRequest withResource(java.util.Collection<String> resource) {
        setResource(resource);
        return this;
    }
<p>
Resource filters (can be collection or indexes) that policies can apply to.
</p>

@param resource
       Resource filters (can be collection or indexes) that policies can apply to.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/model/ListSecurityPoliciesRequest.java