public ListDocumentsResult withDocumentIdentifiers(DocumentIdentifier... documentIdentifiers) {
        if (this.documentIdentifiers == null) {
            setDocumentIdentifiers(new com.amazonaws.internal.SdkInternalList<DocumentIdentifier>(documentIdentifiers.length));
        }
        for (DocumentIdentifier ele : documentIdentifiers) {
            this.documentIdentifiers.add(ele);
        }
        return this;
    }
<p>
The names of the SSM documents.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setDocumentIdentifiers(java.util.Collection)} or {@link #withDocumentIdentifiers(java.util.Collection)}
if you want to override the existing values.
</p>

@param documentIdentifiers
       The names of the SSM documents.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/model/ListDocumentsResult.java