Interface UploadResponse<R>
- Type Parameters:
R
- Cloud vendor-specific upload response
- All Known Implementing Classes:
DefaultUploadResponse
Object storage upload response.
- Since:
- 1.0
- Author:
- Pavol Gressa
-
Method Summary
Modifier and TypeMethodDescription@NonNull String
getETag()
@NonNull String
getKey()
static <R> @NonNull UploadResponse<R>
Creates an instance from the given parameters.
-
Method Details
-
of
@NonNull static <R> @NonNull UploadResponse<R> of(@NonNull @NonNull String key, @NonNull @NonNull String eTag, @NonNull R nativeResponse) Creates an instance from the given parameters.- Type Parameters:
R
- Cloud vendor-specific upload response- Parameters:
key
- the key under which the file will be stored.eTag
- the entity tag of the object stored.nativeResponse
- upload response object.- Returns:
- an upload response instance.
-
getKey
- Returns:
- The key under which the object was stored.
-
getETag
- Returns:
- the entity tag of the object stored (an identifier for a specific version of the object).
-
getNativeResponse
- Returns:
- Cloud vendor-specific upload response
-