/** * <p> * The location of the updated firmware in S3. * </p> * * @param s3Location * The location of the updated firmware in S3. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withS3Location(S3Location s3Location) { setS3Location(s3Location); return this; }
fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance().unmarshall(context));
/** * <p> * The location of the updated firmware in S3. * </p> * * @param s3Location * The location of the updated firmware in S3. * @return Returns a reference to this object so that method calls can be chained together. */ public FileLocation withS3Location(S3Location s3Location) { setS3Location(s3Location); 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; }
fileLocation.setS3Location(S3LocationJsonUnmarshaller.getInstance().unmarshall(context));