/** * <p> * The stream ID. * </p> * * @param streamId * The stream ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withStreamId(String streamId) { setStreamId(streamId); return this; }
if (context.testExpression("streamId", targetDepth)) { context.nextToken(); stream.setStreamId(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The stream ID. * </p> * * @param streamId * The stream ID. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withStreamId(String streamId) { setStreamId(streamId); return this; }
public Stream unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Stream stream = new Stream(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("streamId")) { stream.setStreamId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("fileId")) { stream.setFileId(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return stream; }
public Stream unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Stream stream = new Stream(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("streamId")) { stream.setStreamId(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("fileId")) { stream.setFileId(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return stream; }
if (context.testExpression("streamId", targetDepth)) { context.nextToken(); stream.setStreamId(context.getUnmarshaller(String.class).unmarshall(context));