/** * <p> * The Amazon S3 bucket where the data is located. * </p> * * @param s3Bucket * The Amazon S3 bucket where the data is located. * @return Returns a reference to this object so that method calls can be chained together. */ public S3Location withS3Bucket(String s3Bucket) { setS3Bucket(s3Bucket); return this; }
/** * Constructs a new S3Location object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param s3Bucket * The Amazon S3 bucket where the data is located. * @param s3Key * The Amazon S3 key where the data is located. */ public S3Location(String s3Bucket, String s3Key) { setS3Bucket(s3Bucket); setS3Key(s3Key); }
public S3Location unmarshall(StaxUnmarshallerContext context) throws Exception { S3Location s3Location = new S3Location(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return s3Location; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("S3Bucket", targetDepth)) { s3Location.setS3Bucket(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("S3Key", targetDepth)) { s3Location.setS3Key(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return s3Location; } } } }
/** * <p> * The Amazon S3 bucket where the data is located. * </p> * * @param s3Bucket * The Amazon S3 bucket where the data is located. * @return Returns a reference to this object so that method calls can be chained together. */ public S3Location withS3Bucket(String s3Bucket) { setS3Bucket(s3Bucket); return this; }
/** * Constructs a new S3Location object. Callers should use the setter or fluent setter (with...) methods to * initialize any additional object members. * * @param s3Bucket * The Amazon S3 bucket where the data is located. * @param s3Key * The Amazon S3 key where the data is located. */ public S3Location(String s3Bucket, String s3Key) { setS3Bucket(s3Bucket); setS3Key(s3Key); }
public S3Location unmarshall(StaxUnmarshallerContext context) throws Exception { S3Location s3Location = new S3Location(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; if (context.isStartOfDocument()) targetDepth += 1; while (true) { XMLEvent xmlEvent = context.nextEvent(); if (xmlEvent.isEndDocument()) return s3Location; if (xmlEvent.isAttribute() || xmlEvent.isStartElement()) { if (context.testExpression("S3Bucket", targetDepth)) { s3Location.setS3Bucket(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } if (context.testExpression("S3Key", targetDepth)) { s3Location.setS3Key(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; } } else if (xmlEvent.isEndElement()) { if (context.getCurrentDepth() < originalDepth) { return s3Location; } } } }