public TextDetection withConfidence(Float confidence) {
        setConfidence(confidence);
        return this;
    }
<p>
The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the geometry
points around the detected text.
</p>

@param confidence
       The confidence that Amazon Rekognition has in the accuracy of the detected text and the accuracy of the
       geometry points around the detected text.
@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/TextDetection.java