public static interface UploadDirectoryRequest.Builder extends CopyableBuilder<UploadDirectoryRequest.Builder,UploadDirectoryRequest>
| Modifier and Type | Method and Description |
|---|---|
UploadDirectoryRequest.Builder |
bucket(String bucket)
The name of the bucket to upload objects to.
|
UploadDirectoryRequest |
build() |
UploadDirectoryRequest.Builder |
delimiter(String delimiter)
Specify the delimiter.
|
default UploadDirectoryRequest.Builder |
overrideConfiguration(Consumer<UploadDirectoryOverrideConfiguration.Builder> uploadConfigurationBuilder)
Similar to
overrideConfiguration(UploadDirectoryOverrideConfiguration), but takes a lambda to configure a new
UploadDirectoryOverrideConfiguration.Builder. |
UploadDirectoryRequest.Builder |
overrideConfiguration(UploadDirectoryOverrideConfiguration configuration)
Add an optional request override configuration.
|
UploadDirectoryRequest.Builder |
prefix(String prefix)
Specify the key prefix to use for the objects.
|
UploadDirectoryRequest.Builder |
sourceDirectory(Path sourceDirectory)
Specify the source directory to upload.
|
copyapplyMutationUploadDirectoryRequest.Builder sourceDirectory(Path sourceDirectory)
Note that the current user must have read access to all directories and files,
otherwise SecurityException will be thrown.
sourceDirectory - the source directoryUploadDirectoryOverrideConfigurationUploadDirectoryRequest.Builder bucket(String bucket)
bucket - the bucket nameUploadDirectoryRequest.Builder prefix(String prefix)
See Organizing objects using prefixes
Note: if the provided prefix ends with the same string as delimiter, it will get "normalized" when generating the key name. For example, assuming the prefix provided is "foo/" and the delimiter is "/" and the source directory has the following structure:
|- test
|- obj1.txt
|- obj2.txt
the object keys will be "foo/obj1.txt" and "foo/obj2.txt" as apposed to "foo//obj1.txt" and "foo//obj2.txt"prefix - the key prefixdelimiter(String)UploadDirectoryRequest.Builder delimiter(String delimiter)
"/" will be used.
See Organizing objects using
prefixes
Note: if the provided prefix ends with the same string as delimiter, it will get "normalized" when generating the key name. For example, assuming the prefix provided is "foo/" and the delimiter is "/" and the source directory has the following structure:
|- test
|- obj1.txt
|- obj2.txt
the object keys will be "foo/obj1.txt" and "foo/obj2.txt" as apposed to "foo//obj1.txt" and "foo//obj2.txt"delimiter - the delimiterprefix(String)UploadDirectoryRequest.Builder overrideConfiguration(UploadDirectoryOverrideConfiguration configuration)
configuration - The override configuration.default UploadDirectoryRequest.Builder overrideConfiguration(Consumer<UploadDirectoryOverrideConfiguration.Builder> uploadConfigurationBuilder)
overrideConfiguration(UploadDirectoryOverrideConfiguration), but takes a lambda to configure a new
UploadDirectoryOverrideConfiguration.Builder. This removes the need to call
UploadDirectoryOverrideConfiguration.builder() and
UploadDirectoryOverrideConfiguration.Builder.build().uploadConfigurationBuilder - the upload configurationoverrideConfiguration(UploadDirectoryOverrideConfiguration)UploadDirectoryRequest build()
build in interface Buildablebuild in interface SdkBuilder<UploadDirectoryRequest.Builder,UploadDirectoryRequest>Copyright © 2022. All rights reserved.