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