public DetectTextResult withTextDetections(TextDetection... textDetections) {
        if (this.textDetections == null) {
            setTextDetections(new java.util.ArrayList<TextDetection>(textDetections.length));
        }
        for (TextDetection ele : textDetections) {
            this.textDetections.add(ele);
        }
        return this;
    }
<p>
An array of text that was detected in the input image.
</p>
<p>
<b>NOTE:</b> This method appends the values to the existing list (if any). Use
{@link #setTextDetections(java.util.Collection)} or {@link #withTextDetections(java.util.Collection)} if you want
to override the existing values.
</p>

@param textDetections
       An array of text that was detected in the input image.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/DetectTextResult.java