/** * Sets the file containing the data to be uploaded to Amazon S3. * Returns this {@link AbstractPutObjectRequest}, enabling additional method * calls to be chained together. * <p> * Either specify a file or an input stream containing the data to * be uploaded to Amazon S3; both cannot be specified. * * @param file * The file containing the data to be uploaded to Amazon S3. * * @return This {@link AbstractPutObjectRequest}, enabling additional method * calls to be chained together. * * @see AbstractPutObjectRequest#getFile() * @see AbstractPutObjectRequest#setFile(File) * @see AbstractPutObjectRequest#getInputStream() * @see AbstractPutObjectRequest#setInputStream(InputStream) */ public <T extends AbstractPutObjectRequest> T withFile(File file) { setFile(file); @SuppressWarnings("unchecked") T t = (T)this; return t; }
request.setFile(null); return request;
/** * Sets the file containing the data to be uploaded to Amazon S3. Returns * this {@link AbstractPutObjectRequest}, enabling additional method calls * to be chained together. * <p> * Either specify a file or an input stream containing the data to be * uploaded to Amazon S3; both cannot be specified. * * @param file The file containing the data to be uploaded to Amazon S3. * @return This {@link AbstractPutObjectRequest}, enabling additional method * calls to be chained together. * @see AbstractPutObjectRequest#getFile() * @see AbstractPutObjectRequest#setFile(File) * @see AbstractPutObjectRequest#getInputStream() * @see AbstractPutObjectRequest#setInputStream(InputStream) */ public <T extends AbstractPutObjectRequest> T withFile(File file) { setFile(file); @SuppressWarnings("unchecked") final T t = (T) this; return t; }
/** * Sets the file containing the data to be uploaded to Amazon S3. * Returns this {@link AbstractPutObjectRequest}, enabling additional method * calls to be chained together. * <p> * Either specify a file or an input stream containing the data to * be uploaded to Amazon S3; both cannot be specified. * * @param file * The file containing the data to be uploaded to Amazon S3. * * @return This {@link AbstractPutObjectRequest}, enabling additional method * calls to be chained together. * * @see AbstractPutObjectRequest#getFile() * @see AbstractPutObjectRequest#setFile(File) * @see AbstractPutObjectRequest#getInputStream() * @see AbstractPutObjectRequest#setInputStream(InputStream) */ public <T extends AbstractPutObjectRequest> T withFile(File file) { setFile(file); @SuppressWarnings("unchecked") T t = (T)this; return t; }
/** * Sets the file containing the data to be uploaded to Amazon S3. Returns * this {@link AbstractPutObjectRequest}, enabling additional method calls * to be chained together. * <p> * Either specify a file or an input stream containing the data to be * uploaded to Amazon S3; both cannot be specified. * * @param file The file containing the data to be uploaded to Amazon S3. * @return This {@link AbstractPutObjectRequest}, enabling additional method * calls to be chained together. * @see AbstractPutObjectRequest#getFile() * @see AbstractPutObjectRequest#setFile(File) * @see AbstractPutObjectRequest#getInputStream() * @see AbstractPutObjectRequest#setInputStream(InputStream) */ public <T extends AbstractPutObjectRequest> T withFile(File file) { setFile(file); @SuppressWarnings("unchecked") final T t = (T) this; return t; }
request.setFile(null); return request;
request.setFile(null); return request;
request.setFile(null); return request;