public final class StorageObject extends GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Storage JSON API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
Modifier and Type | Class and Description |
---|---|
static class |
StorageObject.Media
Object media data.
|
static class |
StorageObject.Owner
The owner of the object.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
StorageObject() |
Modifier and Type | Method and Description |
---|---|
StorageObject |
clone() |
List<ObjectAccessControl> |
getAcl()
Access controls on the object.
|
String |
getBucket()
The bucket containing this object.
|
String |
getCacheControl()
Cache-Control directive for the object data.
|
String |
getContentDisposition()
Content-Disposition of the object data.
|
String |
getContentEncoding()
Content-Encoding of the object data.
|
String |
getContentLanguage()
Content-Language of the object data.
|
String |
getId()
The ID of the object.
|
String |
getKind()
The kind of item this is.
|
StorageObject.Media |
getMedia()
Object media data.
|
Map<String,String> |
getMetadata()
User-provided metadata, in key/value pairs.
|
String |
getName()
The name of this object.
|
StorageObject.Owner |
getOwner()
The owner of the object.
|
String |
getSelfLink()
The link to this object.
|
StorageObject |
set(String fieldName,
Object value) |
StorageObject |
setAcl(List<ObjectAccessControl> acl)
Access controls on the object.
|
StorageObject |
setBucket(String bucket)
The bucket containing this object.
|
StorageObject |
setCacheControl(String cacheControl)
Cache-Control directive for the object data.
|
StorageObject |
setContentDisposition(String contentDisposition)
Content-Disposition of the object data.
|
StorageObject |
setContentEncoding(String contentEncoding)
Content-Encoding of the object data.
|
StorageObject |
setContentLanguage(String contentLanguage)
Content-Language of the object data.
|
StorageObject |
setId(String id)
The ID of the object.
|
StorageObject |
setKind(String kind)
The kind of item this is.
|
StorageObject |
setMedia(StorageObject.Media media)
Object media data.
|
StorageObject |
setMetadata(Map<String,String> metadata)
User-provided metadata, in key/value pairs.
|
StorageObject |
setName(String name)
The name of this object.
|
StorageObject |
setOwner(StorageObject.Owner owner)
The owner of the object.
|
StorageObject |
setSelfLink(String selfLink)
The link to this object.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public List<ObjectAccessControl> getAcl()
null
for nonepublic StorageObject setAcl(List<ObjectAccessControl> acl)
acl
- acl or null
for nonepublic String getBucket()
null
for nonepublic StorageObject setBucket(String bucket)
bucket
- bucket or null
for nonepublic String getCacheControl()
null
for nonepublic StorageObject setCacheControl(String cacheControl)
cacheControl
- cacheControl or null
for nonepublic String getContentDisposition()
null
for nonepublic StorageObject setContentDisposition(String contentDisposition)
contentDisposition
- contentDisposition or null
for nonepublic String getContentEncoding()
null
for nonepublic StorageObject setContentEncoding(String contentEncoding)
contentEncoding
- contentEncoding or null
for nonepublic String getContentLanguage()
null
for nonepublic StorageObject setContentLanguage(String contentLanguage)
contentLanguage
- contentLanguage or null
for nonepublic String getId()
null
for nonepublic StorageObject setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic StorageObject setKind(String kind)
kind
- kind or null
for nonepublic StorageObject.Media getMedia()
null
for nonepublic StorageObject setMedia(StorageObject.Media media)
media
- media or null
for nonepublic Map<String,String> getMetadata()
null
for nonepublic StorageObject setMetadata(Map<String,String> metadata)
metadata
- metadata or null
for nonepublic String getName()
null
for nonepublic StorageObject setName(String name)
name
- name or null
for nonepublic StorageObject.Owner getOwner()
null
for nonepublic StorageObject setOwner(StorageObject.Owner owner)
owner
- owner or null
for nonepublic String getSelfLink()
null
for nonepublic StorageObject setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic StorageObject set(String fieldName, Object value)
set
in class GenericJson
public StorageObject clone()
clone
in class GenericJson