public ListSecurityPoliciesRequest withType(SecurityPolicyType type) {
        this.type = type.toString();
        return this;
    }
<p>
The type of policy.
</p>

@param type
       The type of policy.
@return Returns a reference to this object so that method calls can be chained together.
@see SecurityPolicyType
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/model/ListSecurityPoliciesRequest.java