Class FailedFileDownload

java.lang.Object
software.amazon.awssdk.transfer.s3.model.FailedFileDownload
All Implemented Interfaces:
FailedObjectTransfer, ToCopyableBuilder<FailedFileDownload.Builder,FailedFileDownload>

Represents a failed single file download from S3TransferManager.downloadDirectory(DownloadDirectoryRequest). It has a detailed description of the result.
  • Method Details

    • exception

      public Throwable exception()
      Description copied from interface: FailedObjectTransfer
      The exception thrown from a specific single file transfer
      Specified by:
      exception in interface FailedObjectTransfer
      Returns:
      the exception thrown
    • request

      public DownloadFileRequest request()
      The request for the failed download.

      If the object's key can't be mapped to a path inside the destination directory (for example, its relative path resolves outside the destination directory, or it isn't a valid path on the destination's file system), nothing is downloaded for it, and exception() names the key and the reason. In that case, request().destination() is a placeholder path under the destination directory that does not exist and is not written by the SDK. This request isn't meant to be retried as is, and the destination directory must not be deleted to clean up after it. The object's key is available from request().getObjectRequest().key().

      Specified by:
      request in interface FailedObjectTransfer
      Returns:
      the failed request
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static FailedFileDownload.Builder builder()
    • serializableBuilderClass

      public static Class<? extends FailedFileDownload.Builder> serializableBuilderClass()
    • toBuilder

      public FailedFileDownload.Builder 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<FailedFileDownload.Builder,FailedFileDownload>
      Returns:
      a builder for type T