setVersionId(versionId); return this;
/** * Constructs a new {@link GetObjectRequest} with all the required parameters. * * @param bucketName * The name of the bucket containing the desired object. * @param key * The key in the specified bucket under which the object is * stored. * @param versionId * The Amazon S3 version ID specifying a specific version of the * object to download. * * @see GetObjectRequest#GetObjectRequest(String, String) * @see GetObjectRequest#GetObjectRequest(String, String, boolean) */ public GetObjectRequest(String bucketName, String key, String versionId) { setBucketName(bucketName); setKey(key); setVersionId(versionId); }
setVersionId(versionId); return this;
/** * Constructs a new {@link GetObjectRequest} with all the required parameters. * * @param bucketName * The name of the bucket containing the desired object. * @param key * The key in the specified bucket under which the object is * stored. * @param versionId * The Amazon S3 version ID specifying a specific version of the * object to download. * * @see GetObjectRequest#GetObjectRequest(String, String) * @see GetObjectRequest#GetObjectRequest(String, String, boolean) */ public GetObjectRequest(String bucketName, String key, String versionId) { setBucketName(bucketName); setKey(key); setVersionId(versionId); }
setVersionId(versionId); return this;
setVersionId(versionId); return this;
@Override public InputStream getInputStream() throws IOException { GetObjectRequest getObjectRequest = new GetObjectRequest(this.bucketName, this.objectName); if (this.versionId != null) { getObjectRequest.setVersionId(this.versionId); } return this.amazonS3.getObject(getObjectRequest).getObjectContent(); }
@Override public InputStream getInputStream() throws IOException { GetObjectRequest getObjectRequest = new GetObjectRequest(this.bucketName, this.objectName); if (this.versionId != null) { getObjectRequest.setVersionId(this.versionId); } return this.amazonS3.getObject(getObjectRequest).getObjectContent(); }
/** * Constructs a new {@link GetObjectRequest} with all the required parameters. * * @param bucketName * The name of the bucket containing the desired object. * @param key * The key in the specified bucket under which the object is * stored. * @param versionId * The Amazon S3 version ID specifying a specific version of the * object to download. * * @see GetObjectRequest#GetObjectRequest(String, String) * @see GetObjectRequest#GetObjectRequest(String, String, boolean) */ public GetObjectRequest(String bucketName, String key, String versionId) { setBucketName(bucketName); setKey(key); setVersionId(versionId); }
/** * Constructs a new {@link GetObjectRequest} with all the required parameters. * * @param bucketName * The name of the bucket containing the desired object. * @param key * The key in the specified bucket under which the object is * stored. * @param versionId * The Amazon S3 version ID specifying a specific version of the * object to download. * * @see GetObjectRequest#GetObjectRequest(String, String) * @see GetObjectRequest#GetObjectRequest(String, String, boolean) */ public GetObjectRequest(String bucketName, String key, String versionId) { setBucketName(bucketName); setKey(key); setVersionId(versionId); }