public BatchDetectDominantLanguageItemResult withIndex(Integer index) {
        setIndex(index);
        return this;
    }
<p>
The zero-based index of the document in the input list.
</p>

@param index
       The zero-based index of the document in the input list.
@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/BatchDetectDominantLanguageItemResult.java