public TaskConfig withDocumentClassificationConfig(DocumentClassificationConfig documentClassificationConfig) {
        setDocumentClassificationConfig(documentClassificationConfig);
        return this;
    }
<p>
Configuration required for a document classification model.
</p>

@param documentClassificationConfig
       Configuration required for a document classification model.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-comprehend/src/main/java/com/amazonaws/services/comprehend/model/TaskConfig.java