Class ListMultipartUploadsResponse.Builder
java.lang.Object
com.google.cloud.storage.multipartupload.model.ListMultipartUploadsResponse.Builder
- Enclosing class:
- ListMultipartUploadsResponse
A builder for
ListMultipartUploadsResponse.- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-
Method Summary
Modifier and TypeMethodDescriptionSets the bucket that contains the multipart uploads.build()Builds the response.commonPrefixes(com.google.common.collect.ImmutableList<String> commonPrefixes) If you specify a delimiter in the request, this element is returned.Sets the delimiter applied to the request.encodingType(String encodingType) Sets the encoding type used by Cloud Storage to encode object names in the response.Sets the key at or after which the listing began.maxUploads(int maxUploads) Sets the maximum number of uploads to return.nextKeyMarker(String nextKeyMarker) Sets the key after which listing should begin.nextUploadIdMarker(String nextUploadIdMarker) Sets the upload ID after which listing should begin.Sets the prefix applied to the request.truncated(boolean isTruncated) Sets the flag indicating whether or not the returned results are truncated.uploadIdMarker(String uploadIdMarker) Sets the upload ID at or after which the listing began.uploads(com.google.common.collect.ImmutableList<MultipartUpload> uploads) Sets the list of multipart uploads.
-
Method Details
-
uploads
@BetaApi public ListMultipartUploadsResponse.Builder uploads(com.google.common.collect.ImmutableList<MultipartUpload> uploads) Sets the list of multipart uploads.- Parameters:
uploads- The list of multipart uploads.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
bucket
Sets the bucket that contains the multipart uploads.- Parameters:
bucket- The bucket name.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
delimiter
Sets the delimiter applied to the request.- Parameters:
delimiter- The delimiter applied to the request.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
encodingType
Sets the encoding type used by Cloud Storage to encode object names in the response.- Parameters:
encodingType- The encoding type.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
keyMarker
Sets the key at or after which the listing began.- Parameters:
keyMarker- The key marker.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
uploadIdMarker
Sets the upload ID at or after which the listing began.- Parameters:
uploadIdMarker- The upload ID marker.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
nextKeyMarker
Sets the key after which listing should begin.- Parameters:
nextKeyMarker- The key after which listing should begin.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
nextUploadIdMarker
Sets the upload ID after which listing should begin.- Parameters:
nextUploadIdMarker- The upload ID after which listing should begin.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
maxUploads
Sets the maximum number of uploads to return.- Parameters:
maxUploads- The maximum number of uploads.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
prefix
Sets the prefix applied to the request.- Parameters:
prefix- The prefix applied to the request.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
truncated
Sets the flag indicating whether or not the returned results are truncated.- Parameters:
isTruncated- The flag indicating whether or not the returned results are truncated.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
commonPrefixes
@BetaApi public ListMultipartUploadsResponse.Builder commonPrefixes(com.google.common.collect.ImmutableList<String> commonPrefixes) If you specify a delimiter in the request, this element is returned.- Parameters:
commonPrefixes- The common prefixes.- Returns:
- This builder.
- Since:
- 2.61.0 This new api is in preview.
-
build
Builds the response.- Returns:
- The built response.
- Since:
- 2.61.0 This new api is in preview and is subject to breaking changes.
-