public AnalyzeDocumentRequest withFeatureTypes(String... featureTypes) {
        if (this.featureTypes == null) {
            setFeatureTypes(new java.util.ArrayList<String>(featureTypes.length));
        }
        for (String ele : featureTypes) {
            this.featureTypes.add(ele);
        }
        return this;
    }
<p>
A list of the types of analysis to perform. Add TABLES to the list to return information about the tables that
are detected in the input document. Add FORMS to return detected form data. Add SIGNATURES to return the
locations of detected signatures. Add LAYOUT to the list to return information about the layout of the document.
All lines and words detected in the document are included in the response (including text that isn't related to
the value of <code>FeatureTypes</code>).
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setFeatureTypes(java.util.Collection)} or {@link #withFeatureTypes(java.util.Collection)} if you want to
override the existing values.
</p>

@param featureTypes
       A list of the types of analysis to perform. Add TABLES to the list to return information about the tables
       that are detected in the input document. Add FORMS to return detected form data. Add SIGNATURES to return
       the locations of detected signatures. Add LAYOUT to the list to return information about the layout of the
       document. All lines and words detected in the document are included in the response (including text that
       isn't related to the value of <code>FeatureTypes</code>).
@return Returns a reference to this object so that method calls can be chained together.
@see FeatureType
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/AnalyzeDocumentRequest.java