public void setFormat(String format) {
        this.format = format;
    }
<p>
If the <code>Type</code> of document within the response is <code>ANSWER</code>, then it is either a
<code>TABLE</code> answer or <code>TEXT</code> answer. If it's a table answer, a table excerpt is returned in
<code>TableExcerpt</code>. If it's a text answer, a text excerpt is returned in <code>DocumentExcerpt</code>.
</p>

@param format
       If the <code>Type</code> of document within the response is <code>ANSWER</code>, then it is either a
       <code>TABLE</code> answer or <code>TEXT</code> answer. If it's a table answer, a table excerpt is returned
       in <code>TableExcerpt</code>. If it's a text answer, a text excerpt is returned in
       <code>DocumentExcerpt</code>.
@see QueryResultFormat
aws-java-sdk-kendra/src/main/java/com/amazonaws/services/kendra/model/QueryResultItem.java