Interface UploadFileRequest.Builder

    • Method Detail

      • source

        UploadFileRequest.Builder source​(Path source)
        The Path to file containing data to send to the service. File will be read entirely and may be read multiple times in the event of a retry. If the file does not exist or the current user does not have access to read it then an exception will be thrown.
        Parameters:
        source - the source path
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • source

        default UploadFileRequest.Builder source​(File source)
        The file containing data to send to the service. File will be read entirely and may be read multiple times in the event of a retry. If the file does not exist or the current user does not have access to read it then an exception will be thrown.
        Parameters:
        source - the source path
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • transferListeners

        UploadFileRequest.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