Class UploadPartRequest

java.lang.Object
com.google.cloud.storage.multipartupload.model.UploadPartRequest

@BetaApi public final class UploadPartRequest extends Object
An object to represent an upload part request. An upload part request is used to upload a single part of a multipart upload.
Since:
2.60.0 This new api is in preview and is subject to breaking changes.
  • Method Details

    • bucket

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

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

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

      @BetaApi public String uploadId()
      Returns the upload ID of the multipart upload.
      Returns:
      The upload ID of the multipart upload.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • builder

      @BetaApi public static UploadPartRequest.Builder builder()
      Returns a new builder for an UploadPartRequest.
      Returns:
      A new builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.