public ExpenseDetection withConfidence(Float confidence) {
        setConfidence(confidence);
        return this;
    }
<p>
The confidence in detection, as a percentage
</p>

@param confidence
       The confidence in detection, as a percentage
@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/ExpenseDetection.java