Class UploadPartRequest.Builder

java.lang.Object
com.google.cloud.storage.multipartupload.model.UploadPartRequest.Builder
Enclosing class:
UploadPartRequest

@BetaApi public static class UploadPartRequest.Builder extends Object
A builder for UploadPartRequest.
Since:
2.60.0 This new api is in preview and is subject to breaking changes.
  • Method Details

    • bucket

      @BetaApi public UploadPartRequest.Builder bucket(String bucket)
      Sets the bucket to upload the part to.
      Parameters:
      bucket - The bucket to upload the part to.
      Returns:
      This builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • key

      @BetaApi public UploadPartRequest.Builder key(String key)
      Sets the key of the object to upload the part to.
      Parameters:
      key - The key of the object to upload the part to.
      Returns:
      This builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • partNumber

      @BetaApi public UploadPartRequest.Builder partNumber(int partNumber)
      Sets the part number of the part to upload.
      Parameters:
      partNumber - The part number of the part to upload.
      Returns:
      This builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • uploadId

      @BetaApi public UploadPartRequest.Builder uploadId(String uploadId)
      Sets the upload ID of the multipart upload.
      Parameters:
      uploadId - The upload ID of the multipart upload.
      Returns:
      This builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • build

      @BetaApi public UploadPartRequest build()
      Builds the UploadPartRequest.
      Returns:
      The built UploadPartRequest.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.