public UploadDocumentsResult withWarnings(DocumentServiceWarning... warnings) {
        if (this.warnings == null) {
            setWarnings(new com.amazonaws.internal.SdkInternalList<DocumentServiceWarning>(warnings.length));
        }
        for (DocumentServiceWarning ele : warnings) {
            this.warnings.add(ele);
        }
        return this;
    }
public UploadDocumentsResult withWarnings ( DocumentServiceWarning ... warnings ) { if ( this . warnings == null ) { setWarnings ( new com . amazonaws . internal . SdkInternalList < DocumentServiceWarning > ( warnings . length ) ) ; } for ( DocumentServiceWarning ele : warnings ) { this . warnings . add ( ele ) ; } return this ; }
<p>
Any warnings returned by the document service about the documents being uploaded.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setWarnings(java.util.Collection)} or {@link #withWarnings(java.util.Collection)} if you want to override
the existing values.
</p>

@param warnings
Any warnings returned by the document service about the documents being uploaded.
@return Returns a reference to this object so that method calls can be chained together.