/** * Sets the optional offset in the specified file, at which to begin * uploading data for this part, and returns this updated UploadPartRequest * object so that additional method calls can be chained together. * <p> * If not specified, data will be read from the beginning of the file. * * @param fileOffset * The optional offset in the specified file, at which to begin * uploading data for this part. If not specified, data will be * read from the beginning of the file. * * @return This updated UploadPartRequest object. */ public UploadPartRequest withFileOffset(long fileOffset) { setFileOffset(fileOffset); return this; }
/** * Sets the optional offset in the specified file, at which to begin * uploading data for this part, and returns this updated UploadPartRequest * object so that additional method calls can be chained together. * <p> * If not specified, data will be read from the beginning of the file. * * @param fileOffset The optional offset in the specified file, at which to * begin uploading data for this part. If not specified, data * will be read from the beginning of the file. * @return This updated UploadPartRequest object. */ public UploadPartRequest withFileOffset(long fileOffset) { setFileOffset(fileOffset); return this; }
/** * Sets the optional offset in the specified file, at which to begin * uploading data for this part, and returns this updated UploadPartRequest * object so that additional method calls can be chained together. * <p> * If not specified, data will be read from the beginning of the file. * * @param fileOffset The optional offset in the specified file, at which to * begin uploading data for this part. If not specified, data * will be read from the beginning of the file. * @return This updated UploadPartRequest object. */ public UploadPartRequest withFileOffset(long fileOffset) { setFileOffset(fileOffset); return this; }
/** * Sets the optional offset in the specified file, at which to begin * uploading data for this part, and returns this updated UploadPartRequest * object so that additional method calls can be chained together. * <p> * If not specified, data will be read from the beginning of the file. * * @param fileOffset * The optional offset in the specified file, at which to begin * uploading data for this part. If not specified, data will be * read from the beginning of the file. * * @return This updated UploadPartRequest object. */ public UploadPartRequest withFileOffset(long fileOffset) { setFileOffset(fileOffset); return this; }
"Offset %s beyond length of file %s", offset, length); request.setFile(sourceFile); request.setFileOffset(offset);