/** * <p> * Face details for the detected person. * </p> * * @param face * Face details for the detected person. * @return Returns a reference to this object so that method calls can be chained together. */ public PersonDetail withFace(FaceDetail face) { setFace(face); return this; }
personDetail.setFace(FaceDetailJsonUnmarshaller.getInstance().unmarshall(context));
public PersonDetail unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } PersonDetail personDetail = new PersonDetail(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Index")) { personDetail.setIndex(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("BoundingBox")) { personDetail.setBoundingBox(BoundingBoxJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Face")) { personDetail.setFace(FaceDetailJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return personDetail; }