public void setResource(java.util.Collection<String> resource) {
        if (resource == null) {
            this.resource = null;
            return;
        }

        this.resource = new java.util.ArrayList<String>(resource);
    }
<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.
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/model/ListSecurityPoliciesRequest.java