/** * <p> * Bounding box around the detected person. * </p> * * @param boundingBox * Bounding box around the detected person. * @return Returns a reference to this object so that method calls can be chained together. */ public PersonDetail withBoundingBox(BoundingBox boundingBox) { setBoundingBox(boundingBox); return this; }
personDetail.setBoundingBox(BoundingBoxJsonUnmarshaller.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; }