/** * <p> * The ID of a file associated with a stream. * </p> * * @param fileId * The ID of a file associated with a stream. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withFileId(Integer fileId) { setFileId(fileId); return this; }
stream.setFileId(context.getUnmarshaller(Integer.class).unmarshall(context));
/** * <p> * The ID of a file associated with a stream. * </p> * * @param fileId * The ID of a file associated with a stream. * @return Returns a reference to this object so that method calls can be chained together. */ public Stream withFileId(Integer fileId) { setFileId(fileId); 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; }
stream.setFileId(context.getUnmarshaller(Integer.class).unmarshall(context));