public static final class StorageTypes.Info.Builder
extends java.lang.Object
StorageTypes.Info
.Constructor and Description |
---|
Builder(StorageBacking storageBacking,
java.util.List<java.net.URI> storageUris,
java.lang.String name,
long size,
boolean cached,
java.lang.String version)
Constructor with parameters for the required properties of
StorageTypes.Info . |
Modifier and Type | Method and Description |
---|---|
StorageTypes.Info |
build() |
StorageTypes.Info.Builder |
setChecksumInfo(FileTypes.ChecksumInfo checksumInfo)
A checksum for validating the content of the file.
|
public Builder(StorageBacking storageBacking, java.util.List<java.net.URI> storageUris, java.lang.String name, long size, boolean cached, java.lang.String version)
StorageTypes.Info
.public StorageTypes.Info.Builder setChecksumInfo(FileTypes.ChecksumInfo checksumInfo)
This value can be used to verify that a transfer was completed without errors.
A checksum cannot always be calculated, and the value will benull
if
the file does not have content.checksumInfo
- New value for the property.public StorageTypes.Info build()