Class ParallelUploadConfig.Builder
java.lang.Object
com.google.cloud.storage.transfermanager.ParallelUploadConfig.Builder
- Enclosing class:
- ParallelUploadConfig
Builds an instance of ParallelUploadConfig.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Creates a ParallelUploadConfig object.setBucketName
(@NonNull String bucketName) Sets the bucketName that Transfer Manager will upload to.Sets a common prefix that will be applied to all object paths in the destination bucket.setSkipIfExists
(boolean skipIfExists) Sets the parameter for skipIfExists.setWriteOptsPerRequest
(@NonNull List<Storage.BlobWriteOption> writeOptsPerRequest) Sets the BlobWriteOptions that will be applied to each upload request.
-
Method Details
-
setSkipIfExists
Sets the parameter for skipIfExists. When set to true Transfer Manager will skip uploading an object if it already exists.- Returns:
- the builder instance with the value for skipIfExists modified.
- See Also:
-
setPrefix
Sets a common prefix that will be applied to all object paths in the destination bucket.- Returns:
- the builder instance with the value for prefix modified.
- See Also:
-
setBucketName
Sets the bucketName that Transfer Manager will upload to. This field is required.- Returns:
- the builder instance with the value for bucketName modified.
- See Also:
-
setWriteOptsPerRequest
@BetaApi public ParallelUploadConfig.Builder setWriteOptsPerRequest(@NonNull List<Storage.BlobWriteOption> writeOptsPerRequest) Sets the BlobWriteOptions that will be applied to each upload request. Note these options will be applied to every single upload request.- Returns:
- the builder instance with the value for WriteOptsPerRequest modified.
- See Also:
-
build
Creates a ParallelUploadConfig object.- Returns:
ParallelUploadConfig
-