public DescribeDomainNodesResult withDomainNodesStatusList(DomainNodesStatus... domainNodesStatusList) {
        if (this.domainNodesStatusList == null) {
            setDomainNodesStatusList(new java.util.ArrayList<DomainNodesStatus>(domainNodesStatusList.length));
        }
        for (DomainNodesStatus ele : domainNodesStatusList) {
            this.domainNodesStatusList.add(ele);
        }
        return this;
    }
<p>
Contains nodes information list <code>DomainNodesStatusList</code> with details about the all nodes on the
requested domain.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDomainNodesStatusList(java.util.Collection)} or
{@link #withDomainNodesStatusList(java.util.Collection)} if you want to override the existing values.
</p>

@param domainNodesStatusList
       Contains nodes information list <code>DomainNodesStatusList</code> with details about the all nodes on the
       requested domain.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-opensearch/src/main/java/com/amazonaws/services/opensearch/model/DescribeDomainNodesResult.java