Class ParallelDownloadConfig.Builder (2.34.0)

public static final class ParallelDownloadConfig.Builder

Inheritance

java.lang.Object > ParallelDownloadConfig.Builder

Methods

build()

public ParallelDownloadConfig build()

Creates a ParallelDownloadConfig object.

Returns
TypeDescription
ParallelDownloadConfigParallelDownloadConfig

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
NameDescription
bucketNameString
Returns
TypeDescription
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
NameDescription
downloadDirectoryPath
Returns
TypeDescription
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
NameDescription
optionsPerRequestList<BlobSourceOption>
Returns
TypeDescription
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
NameDescription
stripPrefixString
Returns
TypeDescription
ParallelDownloadConfig.Builder

the builder instance with the value for stripPrefix modified.