/** * <p> * Structure containing attributes of the face that the algorithm detected. * </p> * * @param faceDetail * Structure containing attributes of the face that the algorithm detected. * @return Returns a reference to this object so that method calls can be chained together. */ public FaceRecord withFaceDetail(FaceDetail faceDetail) { setFaceDetail(faceDetail); return this; }
faceRecord.setFaceDetail(FaceDetailJsonUnmarshaller.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; }