public static final class StorageObject.Media extends GenericJson
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
StorageObject.Media() |
Modifier and Type | Method and Description |
---|---|
StorageObject.Media |
clone() |
byte[] |
decodeData()
URL-safe Base64-encoded data.
|
StorageObject.Media |
encodeData(byte[] data)
URL-safe Base64-encoded data.
|
String |
getAlgorithm()
Hash algorithm used.
|
String |
getContentType()
Content-Type of the object data.
|
String |
getData()
URL-safe Base64-encoded data.
|
String |
getHash()
Hash of the data.
|
BigInteger |
getLength()
Content-Length of the data in bytes.
|
String |
getLink()
Media download link.
|
DateTime |
getTimeCreated()
Creation time of the data in RFC 3339 format.
|
StorageObject.Media |
set(String fieldName,
Object value) |
StorageObject.Media |
setAlgorithm(String algorithm)
Hash algorithm used.
|
StorageObject.Media |
setContentType(String contentType)
Content-Type of the object data.
|
StorageObject.Media |
setData(String data)
URL-safe Base64-encoded data.
|
StorageObject.Media |
setHash(String hash)
Hash of the data.
|
StorageObject.Media |
setLength(BigInteger length)
Content-Length of the data in bytes.
|
StorageObject.Media |
setLink(String link)
Media download link.
|
StorageObject.Media |
setTimeCreated(DateTime timeCreated)
Creation time of the data in RFC 3339 format.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getAlgorithm()
null
for nonepublic StorageObject.Media setAlgorithm(String algorithm)
algorithm
- algorithm or null
for nonepublic String getContentType()
null
for nonepublic StorageObject.Media setContentType(String contentType)
contentType
- contentType or null
for nonepublic String getData()
null
for nonedecodeData()
public byte[] decodeData()
null
for nonegetData()
public StorageObject.Media setData(String data)
data
- data or null
for none#encodeData()
public StorageObject.Media encodeData(byte[] data)
The value is encoded Base64 or {@code null} for none.
public String getHash()
null
for nonepublic StorageObject.Media setHash(String hash)
hash
- hash or null
for nonepublic BigInteger getLength()
null
for nonepublic StorageObject.Media setLength(BigInteger length)
length
- length or null
for nonepublic String getLink()
null
for nonepublic StorageObject.Media setLink(String link)
link
- link or null
for nonepublic DateTime getTimeCreated()
null
for nonepublic StorageObject.Media setTimeCreated(DateTime timeCreated)
timeCreated
- timeCreated or null
for nonepublic StorageObject.Media set(String fieldName, Object value)
set
in class GenericJson
public StorageObject.Media clone()
clone
in class GenericJson