/** * <p> * The S3 bucket version. * </p> * * @param version * The S3 bucket version. * @return Returns a reference to this object so that method calls can be chained together. */ public S3Location withVersion(String version) { setVersion(version); return this; }
s3Location.setVersion(context.getUnmarshaller(String.class).unmarshall(context));
/** * <p> * The S3 bucket version. * </p> * * @param version * The S3 bucket version. * @return Returns a reference to this object so that method calls can be chained together. */ public S3Location withVersion(String version) { setVersion(version); return this; }
public S3Location unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } S3Location s3Location = new S3Location(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("bucket")) { s3Location.setBucket(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("key")) { s3Location.setKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("version")) { s3Location.setVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return s3Location; }
public S3Location unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } S3Location s3Location = new S3Location(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("bucket")) { s3Location.setBucket(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("key")) { s3Location.setKey(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("version")) { s3Location.setVersion(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return s3Location; }
s3Location.setVersion(context.getUnmarshaller(String.class).unmarshall(context));