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