Package com.sshtools.client.tasks
Class UploadFileTask.UploadFileTaskBuilder
java.lang.Object
com.sshtools.client.tasks.AbstractConnectionTask.AbstractConnectionTaskBuilder<B,T>
com.sshtools.client.tasks.AbstractFileTask.AbstractFileTaskBuilder<UploadFileTask.UploadFileTaskBuilder,UploadFileTask>
com.sshtools.client.tasks.UploadFileTask.UploadFileTaskBuilder
- Enclosing class:
- UploadFileTask
public static final class UploadFileTask.UploadFileTaskBuilder
extends AbstractFileTask.AbstractFileTaskBuilder<UploadFileTask.UploadFileTaskBuilder,UploadFileTask>
Builder for
UploadFileTask.-
Field Summary
Fields inherited from class com.sshtools.client.tasks.AbstractConnectionTask.AbstractConnectionTaskBuilder
clientSupplier, connection -
Method Summary
Modifier and TypeMethodDescriptionbuild()create()Create a newUploadFileTask.UploadFileTaskBuilderSet the local file to upload.withLocalFile(File file) Set the local file to upload.withRemote(Path remote) Set the remote path to upload the file to.withRemote(Optional<Path> remmote) Set the remote path to upload the file to.withRemotePath(String remote) Set the remote path to upload the file to.withRemotePath(Optional<String> remote) Set the remote path to upload the file to.Methods inherited from class com.sshtools.client.tasks.AbstractFileTask.AbstractFileTaskBuilder
withProgress, withProgressMethods inherited from class com.sshtools.client.tasks.AbstractConnectionTask.AbstractConnectionTaskBuilder
withClient, withClients, withConnection
-
Method Details
-
create
Create a newUploadFileTask.UploadFileTaskBuilder- Returns:
- builder
-
withRemotePath
Set the remote path to upload the file to. If empty, will be uploaded the current remote working directory- Parameters:
remote- path- Returns:
- builder for chaining
-
withRemote
Set the remote path to upload the file to. If empty, will be uploaded the current remote working directory- Parameters:
remote- remote path- Returns:
- builder for chaining
-
withRemote
Set the remote path to upload the file to. If empty, will be uploaded the current remote working directory- Parameters:
remmote- remote path- Returns:
- builder for chaining
-
withRemotePath
Set the remote path to upload the file to. If empty, will be uploaded the current remote working directory- Parameters:
remote- remote path- Returns:
- builder for chaining
-
withLocalFile
Set the local file to upload. This is required.- Parameters:
path- path- Returns:
- builder for chaining
-
withLocal
Set the local file to upload. This is required.- Parameters:
path- path- Returns:
- builder for chaining
-
build
- Specified by:
buildin classAbstractFileTask.AbstractFileTaskBuilder<UploadFileTask.UploadFileTaskBuilder,UploadFileTask>
-