Interface DownloadFileRequest.Builder

    • Method Detail

      • destination

        DownloadFileRequest.Builder destination​(Path destination)
        The Path to file that response contents will be written to. The file must not exist or this method will throw an exception. If the file is not writable by the current user then an exception will be thrown.
        Parameters:
        destination - the destination path
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • destination

        default DownloadFileRequest.Builder destination​(File destination)
        The file that response contents will be written to. The file must not exist or this method will throw an exception. If the file is not writable by the current user then an exception will be thrown.
        Parameters:
        destination - the destination path
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transferListeners

        DownloadFileRequest.Builder transferListeners​(Collection<TransferListener> transferListeners)
        The TransferListeners that will be notified as part of this request. This method overrides and replaces any transferListeners that have already been set. Add an optional request override configuration.
        Parameters:
        transferListeners - the collection of transferListeners
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        TransferListener