/** * <p> * Time, in milliseconds from the start of the video, that the face was detected. * </p> * * @param timestamp * Time, in milliseconds from the start of the video, that the face was detected. * @return Returns a reference to this object so that method calls can be chained together. */ public FaceDetection withTimestamp(Long timestamp) { setTimestamp(timestamp); return this; }
if (context.testExpression("Timestamp", targetDepth)) { context.nextToken(); faceDetection.setTimestamp(context.getUnmarshaller(Long.class).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; }