public BatchGetLifecyclePolicyResult withLifecyclePolicyErrorDetails(LifecyclePolicyErrorDetail... lifecyclePolicyErrorDetails) {
        if (this.lifecyclePolicyErrorDetails == null) {
            setLifecyclePolicyErrorDetails(new java.util.ArrayList<LifecyclePolicyErrorDetail>(lifecyclePolicyErrorDetails.length));
        }
        for (LifecyclePolicyErrorDetail ele : lifecyclePolicyErrorDetails) {
            this.lifecyclePolicyErrorDetails.add(ele);
        }
        return this;
    }
<p>
A list of lifecycle policy names and policy types for which retrieval failed.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLifecyclePolicyErrorDetails(java.util.Collection)} or
{@link #withLifecyclePolicyErrorDetails(java.util.Collection)} if you want to override the existing values.
</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