Class CreateMultipartUploadRequest

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

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

    • bucket

      public String bucket()
      Returns the name of the bucket to which the object is being uploaded.
      Returns:
      The bucket name
      Since:
      2.60.0
    • key

      public String key()
      Returns the name of the object.
      Returns:
      The object name
      Since:
      2.60.0
      See Also:
    • cannedAcl

      public Storage.PredefinedAcl cannedAcl()
      Returns a canned ACL to apply to the object.
      Returns:
      The canned ACL
      Since:
      2.60.0
    • contentType

      public String contentType()
      Returns the MIME type of the data you are uploading.
      Returns:
      The Content-Type
      Since:
      2.60.0
    • contentDisposition

      public String contentDisposition()
      Returns the presentational information about how the object data is to be transmitted.
      Returns:
      The Content-Disposition
      Since:
      2.61.0
    • contentEncoding

      public String contentEncoding()
      Returns the compression algorithm that was used to compress the data being uploaded.
      Returns:
      The Content-Encoding
      Since:
      2.61.0
    • contentLanguage

      public String contentLanguage()
      Returns the language code of the content.
      Returns:
      The Content-Language
      Since:
      2.61.0
    • cacheControl

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

      public Map<String,String> metadata()
      Returns the custom metadata of the object.
      Returns:
      The custom metadata
      Since:
      2.60.0
    • storageClass

      public StorageClass storageClass()
      Returns the storage class for the object.
      Returns:
      The Storage-Class
      Since:
      2.60.0
    • customTime

      public OffsetDateTime customTime()
      Returns a user-specified date and time.
      Returns:
      The custom time
      Since:
      2.60.0
    • kmsKeyName

      public String kmsKeyName()
      Returns the customer-managed encryption key to use to encrypt the object.
      Returns:
      The Cloud KMS key
      Since:
      2.60.0
    • objectLockMode

      public ObjectLockMode objectLockMode()
      Returns the mode of the object's retention configuration.
      Returns:
      The object lock mode
      Since:
      2.60.0
    • objectLockRetainUntilDate

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

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