/** * <p> * Current status of the Amazon Rekognition stream processor. * </p> * * @param status * Current status of the Amazon Rekognition stream processor. * @return Returns a reference to this object so that method calls can be chained together. * @see StreamProcessorStatus */ public StreamProcessor withStatus(String status) { setStatus(status); return this; }
streamProcessor.setStatus(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; }