Class CreateMultipartUploadResponse

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

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
  • Method Details

    • bucket

      public String bucket()
      Returns the name of the bucket where the multipart upload was initiated.
      Returns:
      The bucket name.
      Since:
      2.60.0
    • key

      public String key()
      Returns the key (object name) for which the multipart upload was initiated.
      Returns:
      The object key.
      Since:
      2.60.0
    • uploadId

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

      public static CreateMultipartUploadResponse.Builder builder()
      Creates a new builder for CreateMultipartUploadResponse.
      Returns:
      A new builder.
      Since:
      2.60.0