public EvaluationDatasetMetricConfig withTaskType(String taskType) {
        setTaskType(taskType);
        return this;
    }
<p>
The task type you want the model to carry out.
</p>

@param taskType
       The task type you want the model to carry out.
@return Returns a reference to this object so that method calls can be chained together.
@see EvaluationTaskType
aws-java-sdk-bedrock/src/main/java/com/amazonaws/services/bedrock/model/EvaluationDatasetMetricConfig.java