Class UploadPartRequest.Builder

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

public static class UploadPartRequest.Builder extends Object
A builder for UploadPartRequest.
Since:
2.60.0
  • Method Details

    • bucket

      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
    • 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
    • partNumber

      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
    • uploadId

      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
    • crc32c

      public UploadPartRequest.Builder crc32c(@Nullable String crc32c)
      Sets the CRC32C checksum of the part to upload.
      Parameters:
      crc32c - The CRC32C checksum of the part to upload.
      Returns:
      This builder.
      Since:
      2.61.0
    • userProject

      public UploadPartRequest.Builder userProject(String userProject)
      Sets the user-project.
      Parameters:
      userProject - The user-project.
      Returns:
      This builder.
      Since:
      2.61.0
      See Also:
    • build

      public UploadPartRequest build()
      Builds the UploadPartRequest.
      Returns:
      The built UploadPartRequest.
      Since:
      2.60.0