Class DefaultUploadResponse<R>

java.lang.Object
io.micronaut.objectstorage.response.DefaultUploadResponse<R>
Type Parameters:
R - Cloud vendor-specific upload response
All Implemented Interfaces:
UploadResponse<R>

public class DefaultUploadResponse<R> extends Object implements UploadResponse<R>
Default implementation of UploadResponse.
  • Constructor Details

    • DefaultUploadResponse

      protected DefaultUploadResponse(String key, String eTag, R nativeResponse)
  • Method Details

    • getKey

      @NonNull public @NonNull String getKey()
      Specified by:
      getKey in interface UploadResponse<R>
      Returns:
      The key under which the object was stored.
    • getETag

      @NonNull public @NonNull String getETag()
      Specified by:
      getETag in interface UploadResponse<R>
      Returns:
      the entity tag of the object stored (an identifier for a specific version of the object).
    • getNativeResponse

      @NonNull public R getNativeResponse()
      Specified by:
      getNativeResponse in interface UploadResponse<R>
      Returns:
      Cloud vendor-specific upload response