public UpdateAccessPolicyResult withAccessPolicyDetail(AccessPolicyDetail accessPolicyDetail) {
        setAccessPolicyDetail(accessPolicyDetail);
        return this;
    }
<p>
Details about the updated access policy.
</p>

@param accessPolicyDetail
       Details about the updated access policy.
@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/UpdateAccessPolicyResult.java