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

      @BetaApi public Storage.PredefinedAcl getCannedAcl()
      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.
    • getContentType

      @BetaApi public String getContentType()
      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.
    • getMetadata

      @BetaApi public Map<String,String> getMetadata()
      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.
    • getStorageClass

      @BetaApi public StorageClass getStorageClass()
      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.
    • getCustomTime

      @BetaApi public OffsetDateTime getCustomTime()
      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.
    • getKmsKeyName

      @BetaApi public String getKmsKeyName()
      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.
    • getObjectLockMode

      @BetaApi public ObjectLockMode getObjectLockMode()
      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.
    • getObjectLockRetainUntilDate

      @BetaApi public OffsetDateTime getObjectLockRetainUntilDate()
      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.
    • 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.