/** * <p> * Level of confidence in the determination. * </p> * * @param confidence * Level of confidence in the determination. * @return Returns a reference to this object so that method calls can be chained together. */ public MouthOpen withConfidence(Float confidence) { setConfidence(confidence); return this; }
mouthOpen.setConfidence(context.getUnmarshaller(Float.class).unmarshall(context));
public MouthOpen unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } MouthOpen mouthOpen = new MouthOpen(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Value")) { mouthOpen.setValue(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Confidence")) { mouthOpen.setConfidence(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return mouthOpen; }