/** * <p> * The time, in milliseconds from the beginning of the video, that the person was matched in the video. * </p> * * @param timestamp * The time, in milliseconds from the beginning of the video, that the person was matched in the video. * @return Returns a reference to this object so that method calls can be chained together. */ public PersonMatch withTimestamp(Long timestamp) { setTimestamp(timestamp); return this; }
if (context.testExpression("Timestamp", targetDepth)) { context.nextToken(); personMatch.setTimestamp(context.getUnmarshaller(Long.class).unmarshall(context));
public PersonMatch unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } PersonMatch personMatch = new PersonMatch(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Timestamp")) { personMatch.setTimestamp(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Person")) { personMatch.setPerson(PersonDetailJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("FaceMatches")) { personMatch.setFaceMatches(new ListUnmarshaller<FaceMatch>( FaceMatchJsonUnmarshaller.getInstance() ) .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return personMatch; }