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