Class CreateMultipartUploadRequest.Builder
java.lang.Object
com.google.cloud.storage.multipartupload.model.CreateMultipartUploadRequest.Builder
- Enclosing class:
- CreateMultipartUploadRequest
A builder for
CreateMultipartUploadRequest.- Since:
- 2.60.0
-
Method Summary
Modifier and TypeMethodDescriptionThe bucket to which the object is being uploaded.build()Creates a newCreateMultipartUploadRequestobject.cacheControl(String cacheControl) Specifies the caching behavior for the object when it is publicly accessible.cannedAcl(Storage.PredefinedAcl cannedAcl) A canned ACL to apply to the object.contentDisposition(String contentDisposition) Specifies presentational information about the object data.contentEncoding(String contentEncoding) Specifies the compression algorithm that was used to compress the object data.contentLanguage(String contentLanguage) Specifies the language of the object's content.contentType(String contentType) The MIME type of the data you are uploading.customTime(OffsetDateTime customTime) A user-specified date and time.The name of the object.kmsKeyName(String kmsKeyName) The customer-managed encryption key to use to encrypt the object.The custom metadata of the object.objectLockMode(ObjectLockMode objectLockMode) Mode of the object's retention configuration.objectLockRetainUntilDate(OffsetDateTime objectLockRetainUntilDate) Date that determines the time until which the object is retained as immutable.storageClass(StorageClass storageClass) Gives each part of the upload and the resulting object a storage class besides the default storage class of the associated bucket.userProject(String userProject) Specifies the project to be billed for this request.
-
Method Details
-
bucket
The bucket to which the object is being uploaded.- Parameters:
bucket- The bucket name- Returns:
- this builder
- Since:
- 2.60.0
-
key
The name of the object.- Parameters:
key- The object name- Returns:
- this builder
- Since:
- 2.60.0
- See Also:
-
cannedAcl
A canned ACL to apply to the object.- Parameters:
cannedAcl- The canned ACL- Returns:
- this builder
- Since:
- 2.60.0
-
contentType
The MIME type of the data you are uploading.- Parameters:
contentType- The Content-Type- Returns:
- this builder
- Since:
- 2.60.0
-
contentDisposition
Specifies presentational information about the object data.- Parameters:
contentDisposition- The content disposition for the object.- Returns:
- this builder
- Since:
- 2.61.0
-
contentEncoding
Specifies the compression algorithm that was used to compress the object data.- Parameters:
contentEncoding- The content encoding for the object.- Returns:
- this builder
- Since:
- 2.61.0
-
contentLanguage
Specifies the language of the object's content.- Parameters:
contentLanguage- The content language for the object.- Returns:
- this builder
- Since:
- 2.61.0
-
cacheControl
Specifies the caching behavior for the object when it is publicly accessible.- Parameters:
cacheControl- The cache control settings for the object.- Returns:
- this builder
- Since:
- 2.61.0
-
metadata
The custom metadata of the object.- Parameters:
metadata- The custom metadata- Returns:
- this builder
- Since:
- 2.60.0
-
storageClass
Gives each part of the upload and the resulting object a storage class besides the default storage class of the associated bucket.- Parameters:
storageClass- The Storage-Class- Returns:
- this builder
- Since:
- 2.60.0
-
customTime
A user-specified date and time.- Parameters:
customTime- The custom time- Returns:
- this builder
- Since:
- 2.60.0
-
kmsKeyName
The customer-managed encryption key to use to encrypt the object. Refer: Customer Managed Keys- Parameters:
kmsKeyName- The Cloud KMS key- Returns:
- this builder
- Since:
- 2.60.0
-
objectLockMode
Mode of the object's retention configuration. GOVERNANCE corresponds to unlocked mode, and COMPLIANCE corresponds to locked mode.- Parameters:
objectLockMode- The object lock mode- Returns:
- this builder
- Since:
- 2.60.0
-
objectLockRetainUntilDate
public CreateMultipartUploadRequest.Builder objectLockRetainUntilDate(OffsetDateTime objectLockRetainUntilDate) Date that determines the time until which the object is retained as immutable.- Parameters:
objectLockRetainUntilDate- The object lock retention until date- Returns:
- this builder
- Since:
- 2.60.0
-
userProject
Specifies the project to be billed for this request.- Parameters:
userProject- The project ID to bill for this request.- Returns:
- this builder
- Since:
- 2.61.0
-
build
Creates a newCreateMultipartUploadRequestobject.- Returns:
- a new
CreateMultipartUploadRequestobject - Since:
- 2.60.0
-