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

@param confidence
       The confidence score that Amazon Textract has in the accuracy of the recognized text and the accuracy of
       the geometry points around the recognized text.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-textract/src/main/java/com/amazonaws/services/textract/model/Block.java