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.Returns the conditions under which the resulting object should be cached if it is publicly accessible.Returns a canned ACL to apply to the object.Returns the presentational information about how the object data is to be transmitted.Returns the compression algorithm that was used to compress the data being uploaded.Returns the language code of the content.Returns the MIME type of the data you are uploading.Returns a user-specified date and time.booleaninthashCode()key()Returns the name of the object.Returns the customer-managed encryption key to use to encrypt the object.metadata()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.toString()Returns the project to be billed for charges associated with this request.
-
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:
-
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
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
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
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
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
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
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
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
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
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
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
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
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
-
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.
-