-
- All Implemented Interfaces:
-
org.veupathdb.lib.s3.s34k.params.RegionRequestParams,org.veupathdb.lib.s3.s34k.params.S3RequestParams,org.veupathdb.lib.s3.s34k.params.object.ObjectWriteParams
public interface FileUploadParams implements ObjectWriteParams
File upload request parameters.
-
-
Method Summary
Modifier and Type Method Description abstract FilegetLocalFile()Required handle on the local file that will be uploaded to the S3 store. abstract UnitsetLocalFile(File localFile)Required handle on the local file that will be uploaded to the S3 store. abstract IntegergetPartSize()Max chunk size to send in a single request to the S3 store. abstract UnitsetPartSize(Integer partSize)Max chunk size to send in a single request to the S3 store. abstract StringgetContentType()Optional content type for the file being uploaded. abstract UnitsetContentType(String contentType)Optional content type for the file being uploaded. abstract Function1<S3Object, Unit>getCallback()Optional callback that will be executed on successful completion of the S3 operation. abstract UnitsetCallback(Function1<S3Object, Unit> callback)Optional callback that will be executed on successful completion of the S3 operation. -
Methods inherited from class org.veupathdb.lib.s3.s34k.params.object.ObjectWriteParams
getTags -
Methods inherited from class org.veupathdb.lib.s3.s34k.params.RegionRequestParams
getRegion, setRegion -
Methods inherited from class org.veupathdb.lib.s3.s34k.params.S3RequestParams
getHeaders, getQueryParams -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getLocalFile
abstract File getLocalFile()
Required handle on the local file that will be uploaded to the S3 store.
This value must be set or an InvalidRequestConfigError will be thrown when the request is attempted.
-
setLocalFile
abstract Unit setLocalFile(File localFile)
Required handle on the local file that will be uploaded to the S3 store.
This value must be set or an InvalidRequestConfigError will be thrown when the request is attempted.
-
getPartSize
abstract Integer getPartSize()
Max chunk size to send in a single request to the S3 store.
Defaults to 10MiB
-
setPartSize
abstract Unit setPartSize(Integer partSize)
Max chunk size to send in a single request to the S3 store.
Defaults to 10MiB
-
getContentType
abstract String getContentType()
Optional content type for the file being uploaded.
-
setContentType
abstract Unit setContentType(String contentType)
Optional content type for the file being uploaded.
-
getCallback
abstract Function1<S3Object, Unit> getCallback()
Optional callback that will be executed on successful completion of the S3 operation.
This callback will be passed an S3Object instance representing the newly created object.
-
setCallback
abstract Unit setCallback(Function1<S3Object, Unit> callback)
Optional callback that will be executed on successful completion of the S3 operation.
This callback will be passed an S3Object instance representing the newly created object.
-
-
-
-