Class UploadRequest
java.lang.Object
com.salesforce.multicloudj.blob.driver.UploadRequest
Wrapper object for upload data
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic UploadRequest.Builderbuilder()(Optional parameter) The base64-encoded checksum value for upload validation. crc32c is the most common across most cloud providers.long(Optional parameter) The length of the content in bytes.getKey()(Required parameter) The name of the blob(Optional parameter) The KMS key ID or ARN to use for server-side encryption(Optional parameter) Object lock configuration for WORM protection.(Optional parameter) The storage class for the blob (e.g., STANDARD, NEARLINE, COLDLINE, ARCHIVE for GCP)getTags()(Optional parameter) The map of tagName to tagValue to be associated with the blobbooleanSet the serviceSideEncryption Header but don't set the kmsKeyId.
-
Method Details
-
getMetadata
-
builder
-
getKey
(Required parameter) The name of the blob -
getContentLength
public long getContentLength()(Optional parameter) The length of the content in bytes. Note that specifying the contentLength can dramatically improve upload efficiency because the substrate SDKs do not need to buffer the contents and calculate it themselves. -
getTags
(Optional parameter) The map of tagName to tagValue to be associated with the blob -
getStorageClass
(Optional parameter) The storage class for the blob (e.g., STANDARD, NEARLINE, COLDLINE, ARCHIVE for GCP) -
getKmsKeyId
(Optional parameter) The KMS key ID or ARN to use for server-side encryption -
isUseKmsManagedKey
public boolean isUseKmsManagedKey()Set the serviceSideEncryption Header but don't set the kmsKeyId. When false and kmsKeyId is null, no SSE headers are sent (bucket default applies). This option will trigger the use of the cloud provider managed key -
getChecksumValue
(Optional parameter) The base64-encoded checksum value for upload validation. crc32c is the most common across most cloud providers. No other checksum is supported for now. -
getObjectLock
(Optional parameter) Object lock configuration for WORM protection.
-