public StreamProcessor unmarshall(JsonUnmarshallerContext context) throws Exception { StreamProcessor streamProcessor = new StreamProcessor();
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; }