Class UploadRequest
- java.lang.Object
-
- com.salesforce.multicloudj.blob.driver.UploadRequest
-
public class UploadRequest extends Object
Wrapper object for upload data
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classUploadRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UploadRequest.Builderbuilder()longgetContentLength()(Optional parameter) The length of the content in bytes.StringgetKey()(Required parameter) The name of the blobStringgetKmsKeyId()(Optional parameter) The KMS key ID or ARN to use for server-side encryptionMap<String,String>getMetadata()StringgetStorageClass()(Optional parameter) The storage class for the blob (e.g., STANDARD, NEARLINE, COLDLINE, ARCHIVE for GCP)Map<String,String>getTags()(Optional parameter) The map of tagName to tagValue to be associated with the blob
-
-
-
Method Detail
-
builder
public static UploadRequest.Builder builder()
-
getKey
public String 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
public Map<String,String> getTags()
(Optional parameter) The map of tagName to tagValue to be associated with the blob
-
getStorageClass
public String getStorageClass()
(Optional parameter) The storage class for the blob (e.g., STANDARD, NEARLINE, COLDLINE, ARCHIVE for GCP)
-
getKmsKeyId
public String getKmsKeyId()
(Optional parameter) The KMS key ID or ARN to use for server-side encryption
-
-