public LendingDocument withLendingFields(LendingField... lendingFields) {
        if (this.lendingFields == null) {
            setLendingFields(new java.util.ArrayList<LendingField>(lendingFields.length));
        }
        for (LendingField ele : lendingFields) {
            this.lendingFields.add(ele);
        }
        return this;
    }
<p>
An array of LendingField objects.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setLendingFields(java.util.Collection)} or {@link #withLendingFields(java.util.Collection)} if you want
to override the existing values.
</p>

@param lendingFields
       An array of LendingField objects.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/LendingDocument.java