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

@param confidence
       Level of confidence in the prediction.
@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/Gender.java