/** * <p> * Minimum face match confidence score that must be met to return a result for a recognized face. Default is 70. 0 * is the lowest confidence. 100 is the highest confidence. * </p> * * @param faceMatchThreshold * Minimum face match confidence score that must be met to return a result for a recognized face. Default is * 70. 0 is the lowest confidence. 100 is the highest confidence. * @return Returns a reference to this object so that method calls can be chained together. */ public FaceSearchSettings withFaceMatchThreshold(Float faceMatchThreshold) { setFaceMatchThreshold(faceMatchThreshold); return this; }
faceSearchSettings.setFaceMatchThreshold(context.getUnmarshaller(Float.class).unmarshall(context));
public FaceSearchSettings unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } FaceSearchSettings faceSearchSettings = new FaceSearchSettings(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("CollectionId")) { faceSearchSettings.setCollectionId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceMatchThreshold")) { faceSearchSettings.setFaceMatchThreshold(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return faceSearchSettings; }