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 checksum algorithm used for the checksumValue.(Optional parameter) The base64-encoded checksum value for upload validation.long(Optional parameter) The length of the content in bytes.(Optional parameter) The content type of the blob (e.g., "application/octet-stream", "application/x-directory", "text/plain")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. -
getChecksumAlgorithm
(Optional parameter) The checksum algorithm used for the checksumValue. Defaults to CRC32C when checksumValue is set but no algorithm is specified. -
getObjectLock
(Optional parameter) Object lock configuration for WORM protection. -
getContentType
(Optional parameter) The content type of the blob (e.g., "application/octet-stream", "application/x-directory", "text/plain")
-