public GetAccessPolicyRequest withType(AccessPolicyType type) {
        this.type = type.toString();
        return this;
    }
<p>
Tye type of policy. Currently, the only supported value is <code>data</code>.
</p>

@param type
       Tye type of policy. Currently, the only supported value is <code>data</code>.
@return Returns a reference to this object so that method calls can be chained together.
@see AccessPolicyType
aws-java-sdk-opensearchserverless/src/main/java/com/amazonaws/services/opensearchserverless/model/GetAccessPolicyRequest.java