public DescribeIndexResult withDocumentMetadataConfigurations(DocumentMetadataConfiguration... documentMetadataConfigurations) {
        if (this.documentMetadataConfigurations == null) {
            setDocumentMetadataConfigurations(new java.util.ArrayList<DocumentMetadataConfiguration>(documentMetadataConfigurations.length));
        }
        for (DocumentMetadataConfiguration ele : documentMetadataConfigurations) {
            this.documentMetadataConfigurations.add(ele);
        }
        return this;
    }
<p>
Configuration information for document metadata or fields. Document metadata are fields or attributes associated
with your documents. For example, the company department name associated with each document.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDocumentMetadataConfigurations(java.util.Collection)} or
{@link #withDocumentMetadataConfigurations(java.util.Collection)} if you want to override the existing values.
</p>

@param documentMetadataConfigurations
       Configuration information for document metadata or fields. Document metadata are fields or attributes
       associated with your documents. For example, the company department name associated with each document.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/DescribeIndexResult.java