Class ParallelDownloadConfig.Builder (2.39.0)

public static final class ParallelDownloadConfig.Builder

Inheritance

java.lang.Object > ParallelDownloadConfig.Builder

Methods

build()

public ParallelDownloadConfig build()

Creates a ParallelDownloadConfig object.

Returns
Type Description
ParallelDownloadConfig ParallelDownloadConfig

setBucketName(String bucketName)

public ParallelDownloadConfig.Builder setBucketName(String bucketName)

Sets the bucketName that Transfer Manager will download from. This field is required. See Also: ParallelDownloadConfig#getBucketName()

Parameter
Name Description
bucketName String
Returns
Type Description
ParallelDownloadConfig.Builder

the builder instance with the value for bucketName modified.

setDownloadDirectory(Path downloadDirectory)

public ParallelDownloadConfig.Builder setDownloadDirectory(Path downloadDirectory)

Sets the base directory on the filesystem that all objects will be written to. See Also: ParallelDownloadConfig#getDownloadDirectory()

Parameter
Name Description
downloadDirectory Path
Returns
Type Description
ParallelDownloadConfig.Builder

the builder instance with the value for downloadDirectory modified.

setOptionsPerRequest(List<Storage.BlobSourceOption> optionsPerRequest)

public ParallelDownloadConfig.Builder setOptionsPerRequest(List<Storage.BlobSourceOption> optionsPerRequest)

Sets the BlobSourceOptions that will be applied to each download request. Note these options will be applied to every single download request. See Also: ParallelDownloadConfig#getOptionsPerRequest()

Parameter
Name Description
optionsPerRequest List<BlobSourceOption>
Returns
Type Description
ParallelDownloadConfig.Builder

the builder instance with the value for OptionsPerRequest modified.

setStripPrefix(String stripPrefix)

public ParallelDownloadConfig.Builder setStripPrefix(String stripPrefix)

Sets the value for stripPrefix. This string will be removed from the beginning of all object names before they are written to the filesystem. See Also: ParallelDownloadConfig#getStripPrefix()

Parameter
Name Description
stripPrefix String
Returns
Type Description
ParallelDownloadConfig.Builder

the builder instance with the value for stripPrefix modified.