Class DownloadJob.Builder (2.27.1-SNAPSHOT)

public static final class DownloadJob.Builder

Builds an instance of DownloadJob See Also: DownloadJob

Inheritance

java.lang.Object > DownloadJob.Builder

Methods

build()

public DownloadJob build()

Creates a DownloadJob object.

Returns
TypeDescription
DownloadJobDownloadJob

setDownloadResults(@NonNull List<ApiFuture<DownloadResult>> downloadResults)

public DownloadJob.Builder setDownloadResults(@NonNull List<ApiFuture<DownloadResult>> downloadResults)

Sets the results for a DownloadJob being performed by Transfer Manager. See Also: DownloadJob#getDownloadResults()

Parameter
NameDescription
downloadResults@org.checkerframework.checker.nullness.qual.NonNull java.util.List<ApiFuture<DownloadResult>>
Returns
TypeDescription
DownloadJob.Builder

the instance of the Builder with DownloadResults modified.

setParallelDownloadConfig(@NonNull ParallelDownloadConfig parallelDownloadConfig)

public DownloadJob.Builder setParallelDownloadConfig(@NonNull ParallelDownloadConfig parallelDownloadConfig)

Sets the ParallelDownloadConfig used for this DownloadJob. See Also: DownloadJob#getParallelDownloadConfig()

Parameter
NameDescription
parallelDownloadConfig@org.checkerframework.checker.nullness.qual.NonNull com.google.cloud.storage.transfermanager.ParallelDownloadConfig
Returns
TypeDescription
DownloadJob.Builder

the instance of the Builder with ParallelDownloadConfig modified.