Class ListPartsResponse.Builder
java.lang.Object
com.google.cloud.storage.multipartupload.model.ListPartsResponse.Builder
- Enclosing class:
- ListPartsResponse
Builder for
ListPartsResponse.- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aListPartsResponseobject.Sets the bucket name.setIsTruncated(boolean isTruncated) Sets whether the response is truncated.Sets the object name.setMaxParts(int maxParts) Sets the maximum number of parts to return.setNextPartNumberMarker(int nextPartNumberMarker) Sets the next part number marker.setPartNumberMarker(int partNumberMarker) Sets the part number marker.Sets the list of parts.setStorageClass(StorageClass storageClass) Sets the storage class of the object.setUploadId(String uploadId) Sets the upload ID.
-
Method Details
-
setBucket
Sets the bucket name.- Parameters:
bucket- The bucket name.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setKey
Sets the object name.- Parameters:
key- The object name.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setUploadId
Sets the upload ID.- Parameters:
uploadId- The upload ID.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setPartNumberMarker
Sets the part number marker.- Parameters:
partNumberMarker- The part number marker.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setNextPartNumberMarker
Sets the next part number marker.- Parameters:
nextPartNumberMarker- The next part number marker.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setMaxParts
Sets the maximum number of parts to return.- Parameters:
maxParts- The maximum number of parts to return.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setIsTruncated
Sets whether the response is truncated.- Parameters:
isTruncated- True if the response is truncated, false otherwise.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setStorageClass
Sets the storage class of the object.- Parameters:
storageClass- The storage class of the object.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
setParts
Sets the list of parts.- Parameters:
parts- The list of parts.- Returns:
- The builder instance.
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-
build
Builds aListPartsResponseobject.- Returns:
- A new
ListPartsResponseinstance. - Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-