/** * <p> * The stream that contains the OTA update. * </p> * * @param stream * The stream that contains the OTA update. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withStream(Stream stream) { setStream(stream); return this; }
if (context.testExpression("stream", targetDepth)) { context.nextToken(); fileLocation.setStream(StreamJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * The stream that contains the OTA update. * </p> * * @param stream * The stream that contains the OTA update. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withStream(Stream stream) { setStream(stream); return this; }
public FileLocation unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } FileLocation fileLocation = new FileLocation(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("stream")) { fileLocation.setStream(StreamJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("s3Location")) { fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return fileLocation; }
public FileLocation unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } FileLocation fileLocation = new FileLocation(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("stream")) { fileLocation.setStream(StreamJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("s3Location")) { fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return fileLocation; }
if (context.testExpression("stream", targetDepth)) { context.nextToken(); fileLocation.setStream(StreamJsonUnmarshaller.getInstance().unmarshall(context));