public ClarifyInferenceConfig withLabelIndex(Integer labelIndex) {
        setLabelIndex(labelIndex);
        return this;
    }
<p>
A zero-based index used to extract a label header or list of label headers from model container output in CSV
format.
</p>
<p>
<b>Example for a multiclass model:</b> If the model container output consists of label headers followed by
probabilities: <code>'"[\'cat\',\'dog\',\'fish\']","[0.1,0.6,0.3]"'</code>, set <code>LabelIndex</code> to
<code>0</code> to select the label headers <code>['cat','dog','fish']</code>.
</p>

@param labelIndex
       A zero-based index used to extract a label header or list of label headers from model container output in
       CSV format.</p>
       <p>
       <b>Example for a multiclass model:</b> If the model container output consists of label headers followed by
       probabilities: <code>'"[\'cat\',\'dog\',\'fish\']","[0.1,0.6,0.3]"'</code>, set <code>LabelIndex</code> to
       <code>0</code> to select the label headers <code>['cat','dog','fish']</code>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-sagemaker/src/main/java/com/amazonaws/services/sagemaker/model/ClarifyInferenceConfig.java