Interface UploadResponse<R>

Type Parameters:
R - Cloud vendor-specific upload response
All Known Implementing Classes:
DefaultUploadResponse

@DefaultImplementation(DefaultUploadResponse.class) public interface UploadResponse<R>
Object storage upload response.
Since:
1.0
Author:
Pavol Gressa
  • 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

      @NonNull @NonNull String getKey()
      Returns:
      The key under which the object was stored.
    • getETag

      @NonNull @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