/** * <p> * The time, in milliseconds from the start of the video, that the celebrity was recognized. * </p> * * @param timestamp * The time, in milliseconds from the start of the video, that the celebrity was recognized. * @return Returns a reference to this object so that method calls can be chained together. */ public CelebrityRecognition withTimestamp(Long timestamp) { setTimestamp(timestamp); return this; }
if (context.testExpression("Timestamp", targetDepth)) { context.nextToken(); celebrityRecognition.setTimestamp(context.getUnmarshaller(Long.class).unmarshall(context));
public CelebrityRecognition unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } CelebrityRecognition celebrityRecognition = new CelebrityRecognition(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Timestamp")) { celebrityRecognition.setTimestamp(LongJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Celebrity")) { celebrityRecognition.setCelebrity(CelebrityDetailJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return celebrityRecognition; }