public void setTask(String task) {
        this.task = task;
    }
<p>
The machine learning task that the model accomplishes.
</p>
<p>
Valid Values:
<code>IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER</code>
</p>

@param task
       The machine learning task that the model accomplishes.</p>
       <p>
       Valid Values:
       <code>IMAGE_CLASSIFICATION | OBJECT_DETECTION | TEXT_GENERATION | IMAGE_SEGMENTATION | FILL_MASK | CLASSIFICATION | REGRESSION | OTHER</code>
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/RecommendationJobContainerConfig.java