/** * Sets the file containing the data to upload, and returns this updated * UploadPartRequest object so that additional method calls can be chained * together. * <p> * Exactly one File or InputStream must be specified as the input to this * operation. * * @param file * The file containing the data to upload. Exactly one File or * InputStream must be specified as the input to this operation. * * @return This updated UploadPartRequest object. */ public UploadPartRequest withFile(File file) { setFile(file); return this; }
req.setFile(null); req.setFileOffset(0);
req.setFile(null); req.setFileOffset(0);
/** * Sets the file containing the data to upload, and returns this updated * UploadPartRequest object so that additional method calls can be chained * together. * <p> * Exactly one File or InputStream must be specified as the input to this * operation. * * @param file The file containing the data to upload. Exactly one File or * InputStream must be specified as the input to this operation. * @return This updated UploadPartRequest object. */ public UploadPartRequest withFile(File file) { setFile(file); return this; }
checkArgument(offset == 0 || offset < length, "Offset %s beyond length of file %s", offset, length); request.setFile(sourceFile); request.setFileOffset(offset);
/** * Sets the file containing the data to upload, and returns this updated * UploadPartRequest object so that additional method calls can be chained * together. * <p> * Exactly one File or InputStream must be specified as the input to this * operation. * * @param file The file containing the data to upload. Exactly one File or * InputStream must be specified as the input to this operation. * @return This updated UploadPartRequest object. */ public UploadPartRequest withFile(File file) { setFile(file); return this; }
req.setFile(null); req.setFileOffset(0);
/** * Sets the file containing the data to upload, and returns this updated * UploadPartRequest object so that additional method calls can be chained * together. * <p> * Exactly one File or InputStream must be specified as the input to this * operation. * * @param file * The file containing the data to upload. Exactly one File or * InputStream must be specified as the input to this operation. * * @return This updated UploadPartRequest object. */ public UploadPartRequest withFile(File file) { setFile(file); return this; }
req.setFile(null); req.setFileOffset(0);
request.setFile(sourceFile);
request.setFile(sourceFile);