public final class StorageObject
extends com.google.api.client.json.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: https://developers.google.com/api-client-library/java/google-http-java-client/json
Modifier and Type | Class and Description |
---|---|
static class |
StorageObject.Media
Object media data.
|
static class |
StorageObject.Owner
The owner of the object.
|
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
StorageObject() |
Modifier and Type | Method and Description |
---|---|
StorageObject |
clone() |
java.util.List<ObjectAccessControl> |
getAcl()
Access controls on the object.
|
java.lang.String |
getBucket()
The bucket containing this object.
|
java.lang.String |
getCacheControl()
Cache-Control directive for the object data.
|
java.lang.String |
getContentDisposition()
Content-Disposition of the object data.
|
java.lang.String |
getContentEncoding()
Content-Encoding of the object data.
|
java.lang.String |
getContentLanguage()
Content-Language of the object data.
|
java.lang.String |
getId()
The ID of the object.
|
java.lang.String |
getKind()
The kind of item this is.
|
StorageObject.Media |
getMedia()
Object media data.
|
java.util.Map<java.lang.String,java.lang.String> |
getMetadata()
User-provided metadata, in key/value pairs.
|
java.lang.String |
getName()
The name of this object.
|
StorageObject.Owner |
getOwner()
The owner of the object.
|
java.lang.String |
getSelfLink()
The link to this object.
|
StorageObject |
set(java.lang.String fieldName,
java.lang.Object value) |
StorageObject |
setAcl(java.util.List<ObjectAccessControl> acl)
Access controls on the object.
|
StorageObject |
setBucket(java.lang.String bucket)
The bucket containing this object.
|
StorageObject |
setCacheControl(java.lang.String cacheControl)
Cache-Control directive for the object data.
|
StorageObject |
setContentDisposition(java.lang.String contentDisposition)
Content-Disposition of the object data.
|
StorageObject |
setContentEncoding(java.lang.String contentEncoding)
Content-Encoding of the object data.
|
StorageObject |
setContentLanguage(java.lang.String contentLanguage)
Content-Language of the object data.
|
StorageObject |
setId(java.lang.String id)
The ID of the object.
|
StorageObject |
setKind(java.lang.String kind)
The kind of item this is.
|
StorageObject |
setMedia(StorageObject.Media media)
Object media data.
|
StorageObject |
setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
User-provided metadata, in key/value pairs.
|
StorageObject |
setName(java.lang.String name)
The name of this object.
|
StorageObject |
setOwner(StorageObject.Owner owner)
The owner of the object.
|
StorageObject |
setSelfLink(java.lang.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
public java.util.List<ObjectAccessControl> getAcl()
null
for nonepublic StorageObject setAcl(java.util.List<ObjectAccessControl> acl)
acl
- acl or null
for nonepublic java.lang.String getBucket()
null
for nonepublic StorageObject setBucket(java.lang.String bucket)
bucket
- bucket or null
for nonepublic java.lang.String getCacheControl()
null
for nonepublic StorageObject setCacheControl(java.lang.String cacheControl)
cacheControl
- cacheControl or null
for nonepublic java.lang.String getContentDisposition()
null
for nonepublic StorageObject setContentDisposition(java.lang.String contentDisposition)
contentDisposition
- contentDisposition or null
for nonepublic java.lang.String getContentEncoding()
null
for nonepublic StorageObject setContentEncoding(java.lang.String contentEncoding)
contentEncoding
- contentEncoding or null
for nonepublic java.lang.String getContentLanguage()
null
for nonepublic StorageObject setContentLanguage(java.lang.String contentLanguage)
contentLanguage
- contentLanguage or null
for nonepublic java.lang.String getId()
null
for nonepublic StorageObject setId(java.lang.String id)
id
- id or null
for nonepublic java.lang.String getKind()
null
for nonepublic StorageObject setKind(java.lang.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 java.util.Map<java.lang.String,java.lang.String> getMetadata()
null
for nonepublic StorageObject setMetadata(java.util.Map<java.lang.String,java.lang.String> metadata)
metadata
- metadata or null
for nonepublic java.lang.String getName()
null
for nonepublic StorageObject setName(java.lang.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 java.lang.String getSelfLink()
null
for nonepublic StorageObject setSelfLink(java.lang.String selfLink)
selfLink
- selfLink or null
for nonepublic StorageObject set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public StorageObject clone()
clone
in class com.google.api.client.json.GenericJson