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 Details
-
of
static <R> @NonNull UploadResponse<R> of(@NonNull String key, @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
@NonNull String getKey()- Returns:
- The key under which the object was stored.
-
getETag
@NonNull String getETag()- Returns:
- the entity tag of the object stored (an identifier for a specific version of the object).
-
getNativeResponse
@NonNull R getNativeResponse()- Returns:
- Cloud vendor-specific upload response
-