public void setConfidence(Float confidence) {
        this.confidence = confidence;
    }
<p>
Level of confidence in the prediction.
</p>

@param confidence
       Level of confidence in the prediction.
aws-java-sdk-rekognition/src/main/java/com/amazonaws/services/rekognition/model/Gender.java