public BatchGetLifecyclePolicyResult withLifecyclePolicyDetails(LifecyclePolicyDetail... lifecyclePolicyDetails) {
        if (this.lifecyclePolicyDetails == null) {
            setLifecyclePolicyDetails(new java.util.ArrayList<LifecyclePolicyDetail>(lifecyclePolicyDetails.length));
        }
        for (LifecyclePolicyDetail ele : lifecyclePolicyDetails) {
            this.lifecyclePolicyDetails.add(ele);
        }
        return this;
    }
<p>
A list of lifecycle policies matched to the input policy name and policy type.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLifecyclePolicyDetails(java.util.Collection)} or
{@link #withLifecyclePolicyDetails(java.util.Collection)} if you want to override the existing values.
</p>

@param lifecyclePolicyDetails
       A list of lifecycle policies matched to the input policy name and policy type.
@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