/** * <p> * Boolean value that indicates whether the eyes on the face are open. * </p> * * @param value * Boolean value that indicates whether the eyes on the face are open. * @return Returns a reference to this object so that method calls can be chained together. */ public EyeOpen withValue(Boolean value) { setValue(value); return this; }
if (context.testExpression("Value", targetDepth)) { context.nextToken(); eyeOpen.setValue(context.getUnmarshaller(Boolean.class).unmarshall(context));
public EyeOpen unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } EyeOpen eyeOpen = new EyeOpen(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Value")) { eyeOpen.setValue(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Confidence")) { eyeOpen.setConfidence(FloatJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return eyeOpen; }