Class PresignedUrlDownloadRequest

java.lang.Object
software.amazon.awssdk.services.s3.presignedurl.model.PresignedUrlDownloadRequest
All Implemented Interfaces:
ToCopyableBuilder<PresignedUrlDownloadRequest.Builder,PresignedUrlDownloadRequest>

@SdkPublicApi public final class PresignedUrlDownloadRequest extends Object implements ToCopyableBuilder<PresignedUrlDownloadRequest.Builder,PresignedUrlDownloadRequest>
Request object for performing download operations using a presigned URL.
  • Method Details

    • presignedUrl

      public URL presignedUrl()

      The presigned URL for the S3 object. This URL contains all necessary authentication information and can be used to download the object without additional credentials.

      Note: Presigned URLs have a limited lifetime and will expire after the specified duration. Ensure the URL is used before expiration.
      Returns:
      The presigned URL for the S3 object
    • range

      public String range()

      Specifies the byte range of an object. For more information about the HTTP Range header, see https://www.rfc-editor.org/rfc/rfc9110.html#name-range.

      Note: Amazon S3 doesn't support retrieving multiple ranges of data per GET request.
      Returns:
      The HTTP Range header value, or null if not specified.
    • ifMatch

      public String ifMatch()

      Return the object only if its entity tag (ETag) is the same as the one specified in this header, otherwise return a 412 (precondition failed) error.

      Returns:
      The If-Match header value, or null if not specified.
    • toBuilder

      Description copied from interface: ToCopyableBuilder
      Take this object and create a builder that contains all of the current property values of this object.
      Specified by:
      toBuilder in interface ToCopyableBuilder<PresignedUrlDownloadRequest.Builder,PresignedUrlDownloadRequest>
      Returns:
      a builder for type T
    • builder

      public static PresignedUrlDownloadRequest.Builder builder()
    • serializableBuilderClass

      public static Class<? extends PresignedUrlDownloadRequest.Builder> serializableBuilderClass()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object