Class AbortMultipartUploadRequest.Builder

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

@BetaApi public static class AbortMultipartUploadRequest.Builder extends Object
A builder for creating AbortMultipartUploadRequest instances.
Since:
2.60.0 This new api is in preview and is subject to breaking changes.
  • Method Details

    • bucket

      @BetaApi public AbortMultipartUploadRequest.Builder bucket(String bucket)
      Sets the name of the bucket in which the multipart upload is stored.
      Parameters:
      bucket - The bucket name.
      Returns:
      This builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • key

      @BetaApi public AbortMultipartUploadRequest.Builder key(String key)
      Sets the name of the object that is being uploaded.
      Parameters:
      key - The object name.
      Returns:
      This builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • uploadId

      @BetaApi public AbortMultipartUploadRequest.Builder uploadId(String uploadId)
      Sets the upload ID of the multipart upload to abort.
      Parameters:
      uploadId - The upload ID.
      Returns:
      This builder.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • build

      @BetaApi public AbortMultipartUploadRequest build()
      Builds a new AbortMultipartUploadRequest instance.
      Returns:
      A new AbortMultipartUploadRequest.
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.