-
- All Implemented Interfaces:
-
org.veupathdb.lib.s3.s34k.params.RegionRequestParams,org.veupathdb.lib.s3.s34k.params.S3RequestParams
public interface ObjectTouchParams implements RegionRequestParams
Touch object operation parameters.
Object touch creates an empty object in the target bucket if no such object already exists. This behavior may be changed using the overwrite flag.
This is a 'complex operation' in that it may happen in 2 independently configurable phases:
Lookup an existing object at the target path.
Put a blank object at the target path.
If overwrite is set to
true, phase one is skipped and an object is put into the target bucket no matter what.If overwrite is set to
false, phase two is skipped if an object already exists in the store at the target path.
-
-
Method Summary
Modifier and Type Method Description abstract MutableHeadersgetHeaders()Global headers that will be applied to all phases of the operation. abstract MutableQueryParamsgetQueryParams()Global query params that will be applied to all phases of the operation. abstract BooleangetOverwrite()Whether a pre-existing object already in the store should be overwritten with a blank file created by this operation. abstract UnitsetOverwrite(Boolean overwrite)Whether a pre-existing object already in the store should be overwritten with a blank file created by this operation. abstract StringgetContentType()Content type for the object if it is created. abstract UnitsetContentType(String contentType)Content type for the object if it is created. abstract Function1<S3Object, Unit>getCallback()Optional callback that will be executed on successful completion of this S3 operation. abstract UnitsetCallback(Function1<S3Object, Unit> callback)Optional callback that will be executed on successful completion of this S3 operation. abstract OTGetParamsgetGetParams()Parameters specific to the get phase of the object touch operation. abstract OTPutParamsgetPutParams()Parameters specific to the put phase of the object touch operation. -
-
Method Detail
-
getHeaders
abstract MutableHeaders getHeaders()
Global headers that will be applied to all phases of the operation.
If there is a conflict between a global header and a phase specific header, the phase specific header will be used.
This is done rather than merging the 2 sets of headers to prevent the creation of invalid headers or otherwise confusing behavior
If both sets of headers are desired, set the headers on the phase specific header set.
-
getQueryParams
abstract MutableQueryParams getQueryParams()
Global query params that will be applied to all phases of the operation.
If there is a conflict between a global query param and a phase specific query param, the phase specific query param will be used.
This is done rather than merging the 2 sets of query to prevent possibly confusing behavior.
If both sets of query params are desired, set the query params on the phase specific query param set.
-
getOverwrite
abstract Boolean getOverwrite()
Whether a pre-existing object already in the store should be overwritten with a blank file created by this operation.
If this is set to
truethe object get phase of this operation will be skipped.Defaults to
false
-
setOverwrite
abstract Unit setOverwrite(Boolean overwrite)
Whether a pre-existing object already in the store should be overwritten with a blank file created by this operation.
If this is set to
truethe object get phase of this operation will be skipped.Defaults to
false
-
getContentType
abstract String getContentType()
Content type for the object if it is created.
-
setContentType
abstract Unit setContentType(String contentType)
Content type for the object if it is created.
-
getCallback
abstract Function1<S3Object, Unit> getCallback()
Optional callback that will be executed on successful completion of this S3 operation.
This callback will be executed after any callbacks set on the parameters for the phases of this operation.
-
setCallback
abstract Unit setCallback(Function1<S3Object, Unit> callback)
Optional callback that will be executed on successful completion of this S3 operation.
This callback will be executed after any callbacks set on the parameters for the phases of this operation.
-
getGetParams
abstract OTGetParams getGetParams()
Parameters specific to the get phase of the object touch operation.
If overwrite is set to
truethese parameters will be ignored.
-
getPutParams
abstract OTPutParams getPutParams()
Parameters specific to the put phase of the object touch operation.
If overwrite is set to
falseand the target object already exists, then these parameters will be ignored.
-
-
-
-