Class ParallelUploadConfig.Builder (2.40.0)

public static final class ParallelUploadConfig.Builder

Builds an instance of ParallelUploadConfig. See Also: ParallelUploadConfig

Inheritance

java.lang.Object > ParallelUploadConfig.Builder

Methods

build()

public ParallelUploadConfig build()

Creates a ParallelUploadConfig object.

Returns
Type Description
ParallelUploadConfig ParallelUploadConfig

setBucketName(@NonNull String bucketName)

public ParallelUploadConfig.Builder setBucketName(@NonNull String bucketName)

Sets the bucketName that Transfer Manager will upload to. This field is required. See Also: ParallelUploadConfig#getBucketName()

Parameter
Name Description
bucketName @org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
Type Description
ParallelUploadConfig.Builder

the builder instance with the value for bucketName modified.

setPrefix(@NonNull String prefix)

public ParallelUploadConfig.Builder setPrefix(@NonNull String prefix)

Sets a common prefix that will be applied to all object paths in the destination bucket. See Also: ParallelUploadConfig#getPrefix()

Parameter
Name Description
prefix @org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
Type Description
ParallelUploadConfig.Builder

the builder instance with the value for prefix modified.

setSkipIfExists(boolean skipIfExists)

public ParallelUploadConfig.Builder setSkipIfExists(boolean skipIfExists)

Sets the parameter for skipIfExists. When set to true Transfer Manager will skip uploading an object if it already exists. See Also: ParallelUploadConfig#isSkipIfExists()

Parameter
Name Description
skipIfExists boolean
Returns
Type Description
ParallelUploadConfig.Builder

the builder instance with the value for skipIfExists modified.

setWriteOptsPerRequest(@NonNull List<Storage.BlobWriteOption> writeOptsPerRequest)

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. See Also: ParallelUploadConfig#getWriteOptsPerRequest()

Parameter
Name Description
writeOptsPerRequest @org.checkerframework.checker.nullness.qual.NonNull java.util.List<BlobWriteOption>
Returns
Type Description
ParallelUploadConfig.Builder

the builder instance with the value for WriteOptsPerRequest modified.