Class ParallelDownloadConfig.Builder
java.lang.Object
com.google.cloud.storage.transfermanager.ParallelDownloadConfig.Builder
- Enclosing class:
- ParallelDownloadConfig
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Creates a ParallelDownloadConfig object.setBucketName(String bucketName) Sets the bucketName that Transfer Manager will download from.setDownloadDirectory(Path downloadDirectory) Sets the base directory on the filesystem that all objects will be written to.setOptionsPerRequest(List<Storage.BlobSourceOption> optionsPerRequest) Sets the BlobSourceOptions that will be applied to each download request.setStripPrefix(String stripPrefix) Sets the value for stripPrefix.
-
Method Details
-
setStripPrefix
Sets the value for stripPrefix. This string will be removed from the beginning of all object names before they are written to the filesystem.- Returns:
- the builder instance with the value for stripPrefix modified.
- See Also:
-
setDownloadDirectory
Sets the base directory on the filesystem that all objects will be written to.- Returns:
- the builder instance with the value for downloadDirectory modified.
- See Also:
-
setBucketName
Sets the bucketName that Transfer Manager will download from. This field is required.- Returns:
- the builder instance with the value for bucketName modified.
- See Also:
-
setOptionsPerRequest
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.- Returns:
- the builder instance with the value for OptionsPerRequest modified.
- See Also:
-
build
Creates a ParallelDownloadConfig object.- Returns:
ParallelDownloadConfig
-