Class ParallelUploadConfig.Builder (2.36.1)

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
TypeDescription
ParallelUploadConfigParallelUploadConfig

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
NameDescription
bucketName@org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
TypeDescription
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
NameDescription
prefix@org.checkerframework.checker.nullness.qual.NonNull java.lang.String
Returns
TypeDescription
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
NameDescription
skipIfExistsboolean
Returns
TypeDescription
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
NameDescription
writeOptsPerRequest@org.checkerframework.checker.nullness.qual.NonNull java.util.List<BlobWriteOption>
Returns
TypeDescription
ParallelUploadConfig.Builder

the builder instance with the value for WriteOptsPerRequest modified.