public BatchGetLifecyclePolicyResult withLifecyclePolicyErrorDetails(java.util.Collection<LifecyclePolicyErrorDetail> lifecyclePolicyErrorDetails) {
        setLifecyclePolicyErrorDetails(lifecyclePolicyErrorDetails);
        return this;
    }
<p>
A list of lifecycle policy names and policy types for which retrieval failed.
</p>

@param lifecyclePolicyErrorDetails
       A list of lifecycle policy names and policy types for which retrieval failed.
@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/BatchGetLifecyclePolicyResult.java