Class BlobMetadata.BlobMetadataBuilder
java.lang.Object
com.salesforce.multicloudj.blob.driver.BlobMetadata.BlobMetadataBuilder
- Enclosing class:
- BlobMetadata
-
Method Summary
Modifier and TypeMethodDescriptionarchived(boolean archived) Whether this entry records that the object was archived (deleted) at a point in time rather than a downloadable content version.archivedAt(Instant archivedAt) The instant at which this version stopped being the current version, ornullif it is still current (or the store does not report it).build()Checksum of the object as reported by the store, ornullif the store does not report one.contentType(String contentType) The content type of the blob (e.g., "application/octet-stream", "application/x-directory")correlationId(String correlationId) The correlation ID associated with the operation that produced this metadata.createdTime(Instant createdTime) The creation time of the blob.lastModified(Instant lastModified) md5(byte[] md5) objectLockInfo(ObjectLockInfo objectLockInfo) Object lock information for this blob. null if object lock is not configured.objectSize(long objectSize) toString()The versionId of this blob.
-
Method Details
-
key
- Returns:
this.
-
versionId
The versionId of this blob. This value only serves a purpose for buckets with versioning enabled, although non-versioned buckets may still return a value for it. Non-versioned buckets should simply ignore the versionId value as it serves no purpose for them.- Returns:
this.
-
eTag
- Returns:
this.
-
objectSize
- Returns:
this.
-
metadata
-
metadata
-
clearMetadata
-
lastModified
- Returns:
this.
-
createdTime
The creation time of the blob. This represents when the blob was originally created.- Returns:
this.
-
md5
- Returns:
this.
-
contentType
The content type of the blob (e.g., "application/octet-stream", "application/x-directory")- Returns:
this.
-
objectLockInfo
Object lock information for this blob. null if object lock is not configured.- Returns:
this.
-
checksum
Checksum of the object as reported by the store, ornullif the store does not report one. Populated on responses fromgetMetadataanddownload.- Returns:
this.
-
correlationId
The correlation ID associated with the operation that produced this metadata.- Returns:
this.
-
archived
Whether this entry records that the object was archived (deleted) at a point in time rather than a downloadable content version. Defaults tofalsefor content versions and for stores that do not surface archived entries.- Returns:
this.
-
archivedAt
The instant at which this version stopped being the current version, ornullif it is still current (or the store does not report it). Together withcreatedTimethis defines the version's validity interval[createdTime, archivedAt), with the end instant exclusive.- Returns:
this.
-
build
-
toString
-