public Document withContentType(String contentType) {
        setContentType(contentType);
        return this;
    }
<p>
Describes the format of the document. You can specify one of the following:
</p>
<ul>
<li>
<p>
<code>text/html</code> - The input data consists of HTML content. Amazon Translate translates only the text in
the HTML element.
</p>
</li>
<li>
<p>
<code>text/plain</code> - The input data consists of unformatted text. Amazon Translate translates every
character in the content.
</p>
</li>
<li>
<p>
<code>application/vnd.openxmlformats-officedocument.wordprocessingml.document</code> - The input data consists of
a Word document (.docx).
</p>
</li>
</ul>

@param contentType
       Describes the format of the document. You can specify one of the following:</p>
       <ul>
       <li>
       <p>
       <code>text/html</code> - The input data consists of HTML content. Amazon Translate translates only the
       text in the HTML element.
       </p>
       </li>
       <li>
       <p>
       <code>text/plain</code> - The input data consists of unformatted text. Amazon Translate translates every
       character in the content.
       </p>
       </li>
       <li>
       <p>
       <code>application/vnd.openxmlformats-officedocument.wordprocessingml.document</code> - The input data
       consists of a Word document (.docx).
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-translate/src/main/java/com/amazonaws/services/translate/model/Document.java