Class CreateMultipartUploadRequest

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

@BetaApi public final class CreateMultipartUploadRequest extends Object
Represents a request to initiate a multipart upload. This class holds all the necessary information to create a new multipart upload session.
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 to which the object is being uploaded.
      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.
      Returns:
      The object name
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
      See Also:
    • cannedAcl

      @BetaApi public Storage.PredefinedAcl cannedAcl()
      Returns a canned ACL to apply to the object.
      Returns:
      The canned ACL
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • contentType

      @BetaApi public String contentType()
      Returns the MIME type of the data you are uploading.
      Returns:
      The Content-Type
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • contentDisposition

      @BetaApi public String contentDisposition()
      Returns the presentational information about how the object data is to be transmitted.
      Returns:
      The Content-Disposition
      Since:
      2.61.0 This new api is in preview and is subject to breaking changes.
    • contentEncoding

      @BetaApi public String contentEncoding()
      Returns the compression algorithm that was used to compress the data being uploaded.
      Returns:
      The Content-Encoding
      Since:
      2.61.0 This new api is in preview and is subject to breaking changes.
    • contentLanguage

      @BetaApi public String contentLanguage()
      Returns the language code of the content.
      Returns:
      The Content-Language
      Since:
      2.61.0 This new api is in preview and is subject to breaking changes.
    • cacheControl

      @BetaApi public String cacheControl()
      Returns the conditions under which the resulting object should be cached if it is publicly accessible.
      Returns:
      The Cache-Control
      Since:
      2.61.0 This new api is in preview and is subject to breaking changes.
    • metadata

      @BetaApi public Map<String,String> metadata()
      Returns the custom metadata of the object.
      Returns:
      The custom metadata
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • storageClass

      @BetaApi public StorageClass storageClass()
      Returns the storage class for the object.
      Returns:
      The Storage-Class
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • customTime

      @BetaApi public OffsetDateTime customTime()
      Returns a user-specified date and time.
      Returns:
      The custom time
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • kmsKeyName

      @BetaApi public String kmsKeyName()
      Returns the customer-managed encryption key to use to encrypt the object.
      Returns:
      The Cloud KMS key
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • objectLockMode

      @BetaApi public ObjectLockMode objectLockMode()
      Returns the mode of the object's retention configuration.
      Returns:
      The object lock mode
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • objectLockRetainUntilDate

      @BetaApi public OffsetDateTime objectLockRetainUntilDate()
      Returns the date that determines the time until which the object is retained as immutable.
      Returns:
      The object lock retention until date
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.
    • userProject

      public String userProject()
      Returns the project to be billed for charges associated with this request.
      Returns:
      The user project
      Since:
      2.61.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 CreateMultipartUploadRequest.Builder builder()
      Returns:
      a new builder
      Since:
      2.60.0 This new api is in preview and is subject to breaking changes.