/** * <p> * Describes the face properties such as the bounding box, face ID, image ID of the input image, and external image * ID that you assigned. * </p> * * @param face * Describes the face properties such as the bounding box, face ID, image ID of the input image, and external * image ID that you assigned. * @return Returns a reference to this object so that method calls can be chained together. */ public FaceRecord withFace(Face face) { setFace(face); return this; }
if (context.testExpression("Face", targetDepth)) { context.nextToken(); faceRecord.setFace(FaceJsonUnmarshaller.getInstance().unmarshall(context));
public FaceRecord unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } FaceRecord faceRecord = new FaceRecord(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Face")) { faceRecord.setFace(FaceJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceDetail")) { faceRecord.setFaceDetail(FaceDetailJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return faceRecord; }