/** * <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 Sunglasses withConfidence(Float confidence) { setConfidence(confidence); return this; }
sunglasses.setConfidence(context.getUnmarshaller(Float.class).unmarshall(context));
public Sunglasses unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Sunglasses sunglasses = new Sunglasses(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Value")) { sunglasses.setValue(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Confidence")) { sunglasses.setConfidence(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return sunglasses; }