/** * <p> * Name of the Amazon Rekognition stream processor. * </p> * * @param name * Name of the Amazon Rekognition stream processor. * @return Returns a reference to this object so that method calls can be chained together. */ public StreamProcessor withName(String name) { setName(name); return this; }
if (context.testExpression("Name", targetDepth)) { context.nextToken(); streamProcessor.setName(context.getUnmarshaller(String.class).unmarshall(context));
public StreamProcessor unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } StreamProcessor streamProcessor = new StreamProcessor(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("Name")) { streamProcessor.setName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("Status")) { streamProcessor.setStatus(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return streamProcessor; }