Class CreateMultipartUploadResponse

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

@BetaApi public final class CreateMultipartUploadResponse extends Object
Represents the response from a CreateMultipartUpload request. This class encapsulates the details of the initiated multipart upload, including the bucket, key, and the unique upload ID.
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 name of the bucket where the multipart upload was initiated.
      Returns:
      The bucket name.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • key

      @BetaApi public String key()
      Returns the key (object name) for which the multipart upload was initiated.
      Returns:
      The object key.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • uploadId

      @BetaApi public String uploadId()
      Returns the unique identifier for this multipart upload. This ID must be included in all subsequent requests related to this upload (e.g., uploading parts, completing the upload).
      Returns:
      The upload ID.
      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 CreateMultipartUploadResponse.Builder builder()
      Creates a new builder for CreateMultipartUploadResponse.
      Returns:
      A new builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.