Class AbortMultipartUploadRequest

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

@BetaApi public final class AbortMultipartUploadRequest extends Object
Represents a request to abort a multipart upload. This request is used to stop an in-progress multipart upload, deleting any previously uploaded parts.
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 in which the multipart upload is stored.
      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 name of the object that is being uploaded.
      Returns:
      The object name.
      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 to abort.
      Returns:
      The upload ID.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • builder

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