Class DownloadJob.Builder
java.lang.Object
com.google.cloud.storage.transfermanager.DownloadJob.Builder
- Enclosing class:
- DownloadJob
Builds an instance of DownloadJob
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a DownloadJob object.setDownloadResults(@NonNull List<com.google.api.core.ApiFuture<DownloadResult>> downloadResults) Sets the results for a DownloadJob being performed by Transfer Manager.setParallelDownloadConfig(@NonNull ParallelDownloadConfig parallelDownloadConfig) Sets theParallelDownloadConfigused for this DownloadJob.
-
Method Details
-
setDownloadResults
public DownloadJob.Builder setDownloadResults(@NonNull List<com.google.api.core.ApiFuture<DownloadResult>> downloadResults) Sets the results for a DownloadJob being performed by Transfer Manager.- Returns:
- the instance of the Builder with DownloadResults modified.
- See Also:
-
setParallelDownloadConfig
public DownloadJob.Builder setParallelDownloadConfig(@NonNull ParallelDownloadConfig parallelDownloadConfig) Sets theParallelDownloadConfigused for this DownloadJob.- Returns:
- the instance of the Builder with ParallelDownloadConfig modified.
- See Also:
-
build
Creates a DownloadJob object.- Returns:
DownloadJob
-