Constructor and Description |
---|
UnarchiveRequestBuilder() |
Modifier and Type | Method and Description |
---|---|
DXProject.UnarchiveRequestBuilder |
addFile(DXFile file)
Adds the file to the list of files for unarchiving.
|
DXProject.UnarchiveRequestBuilder |
addFiles(Collection<DXFile> files)
Adds the files to the list of files for unarchiving.
|
DXProject.UnarchiveRequestBuilder |
addFiles(DXFile... files)
Adds the files to the list of files for unarchiving.
|
DXProject.UnarchiveResults |
execute()
Executes the request.
|
DXProject.UnarchiveRequestBuilder |
setDryRun(Boolean dryRun)
Sets dry-run mode.
|
DXProject.UnarchiveRequestBuilder |
setFolder(String folder)
Sets folder for unarchiving.
|
DXProject.UnarchiveRequestBuilder |
setFolder(String folder,
Boolean recurse)
Sets folder for unarchiving.
|
DXProject.UnarchiveRequestBuilder |
setRate(UnarchivingRate rate)
Sets the speed at which the files in this request are unarchived.
|
public DXProject.UnarchiveRequestBuilder addFile(DXFile file)
This method may be called multiple times during the construction of a request, and is mutually exclusive
with setFolder(String)
and setFolder(String, Boolean)
.
file
- DXFile
instance to be unarchivedpublic DXProject.UnarchiveRequestBuilder addFiles(DXFile... files)
This method may be called multiple times during the construction of a request, and is mutually exclusive
with setFolder(String)
and setFolder(String, Boolean)
.
files
- list of DXFile
instances to be unarchivedpublic DXProject.UnarchiveRequestBuilder addFiles(Collection<DXFile> files)
This method may be called multiple times during the construction of a request, and is mutually exclusive
with setFolder(String)
and setFolder(String, Boolean)
.
files
- collection of DXFile
instances to be unarchivedpublic DXProject.UnarchiveRequestBuilder setFolder(String folder)
This method may only be called once during the construction of a request, and is mutually exclusive with
addFile(DXFile)
, addFiles(DXFile...)
, and addFiles(Collection)
.
folder
- path to folder to be unarchivedpublic DXProject.UnarchiveRequestBuilder setFolder(String folder, Boolean recurse)
This method may only be called once during the construction of a request, and is mutually exclusive with
addFile(DXFile)
, addFiles(DXFile...)
, and addFiles(Collection)
.
folder
- path to folder to be unarchivedrecurse
- whether to unarchive all files in subfolders of folder
public DXProject.UnarchiveRequestBuilder setRate(UnarchivingRate rate)
Valid only for AWS.
rate
- speed of unarchivingpublic DXProject.UnarchiveRequestBuilder setDryRun(Boolean dryRun)
dryRun
- whether the unarchival process should be actually executed or notpublic DXProject.UnarchiveResults execute()
Copyright © 2023. All Rights Reserved.