Class CreateMultipartUploadRequest
java.lang.Object
com.google.cloud.storage.multipartupload.model.CreateMultipartUploadRequest
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.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbucket()Returns the name of the bucket to which the object is being uploaded.builder()Returns a newCreateMultipartUploadRequest.Builderfor creating aCreateMultipartUploadRequest.booleanReturns a canned ACL to apply to the object.Returns the MIME type of the data you are uploading.Returns a user-specified date and time.Returns the customer-managed encryption key to use to encrypt the object.Returns the custom metadata of the object.Returns the mode of the object's retention configuration.Returns the date that determines the time until which the object is retained as immutable.Returns the storage class for the object.inthashCode()key()Returns the name of the object.toString()
-
Method Details
-
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
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
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
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
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
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
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
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
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
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
-
hashCode
public int hashCode() -
toString
-
builder
Returns a newCreateMultipartUploadRequest.Builderfor creating aCreateMultipartUploadRequest.- Returns:
- a new builder
- Since:
- 2.60.0 This new api is in preview and is subject to breaking changes.
-