Cloud Storage API v1beta1 (revision 30)



com.google.api.services.storage.model
Class StorageObject

java.lang.Object
  extended by java.util.AbstractMap<String,Object>
      extended by com.google.api.client.util.GenericData
          extended by com.google.api.client.json.GenericJson
              extended by com.google.api.services.storage.model.StorageObject
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class StorageObject
extends GenericJson

An object.

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 API. For a detailed explanation see: http://code.google.com/p/google-api-java-client/wiki/Json

Author:
Google, Inc.

Nested Class Summary
static class StorageObject.Media
          Object media data.
static class StorageObject.Owner
          The owner of the object.
 
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
GenericData.Flags
 
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
Map.Entry<K,V>
 
Constructor Summary
StorageObject()
           
 
Method Summary
 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.
 
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
 
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StorageObject

public StorageObject()
Method Detail

getAcl

public List<ObjectAccessControl> getAcl()
Access controls on the object.

Returns:
value or null for none

setAcl

public StorageObject setAcl(List<ObjectAccessControl> acl)
Access controls on the object.

Parameters:
acl - acl or null for none

getBucket

public String getBucket()
The bucket containing this object.

Returns:
value or null for none

setBucket

public StorageObject setBucket(String bucket)
The bucket containing this object.

Parameters:
bucket - bucket or null for none

getCacheControl

public String getCacheControl()
Cache-Control directive for the object data.

Returns:
value or null for none

setCacheControl

public StorageObject setCacheControl(String cacheControl)
Cache-Control directive for the object data.

Parameters:
cacheControl - cacheControl or null for none

getContentDisposition

public String getContentDisposition()
Content-Disposition of the object data.

Returns:
value or null for none

setContentDisposition

public StorageObject setContentDisposition(String contentDisposition)
Content-Disposition of the object data.

Parameters:
contentDisposition - contentDisposition or null for none

getContentEncoding

public String getContentEncoding()
Content-Encoding of the object data.

Returns:
value or null for none

setContentEncoding

public StorageObject setContentEncoding(String contentEncoding)
Content-Encoding of the object data.

Parameters:
contentEncoding - contentEncoding or null for none

getContentLanguage

public String getContentLanguage()
Content-Language of the object data.

Returns:
value or null for none

setContentLanguage

public StorageObject setContentLanguage(String contentLanguage)
Content-Language of the object data.

Parameters:
contentLanguage - contentLanguage or null for none

getId

public String getId()
The ID of the object.

Returns:
value or null for none

setId

public StorageObject setId(String id)
The ID of the object.

Parameters:
id - id or null for none

getKind

public String getKind()
The kind of item this is. For objects, this is always storage#object.

Returns:
value or null for none

setKind

public StorageObject setKind(String kind)
The kind of item this is. For objects, this is always storage#object.

Parameters:
kind - kind or null for none

getMedia

public StorageObject.Media getMedia()
Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.

Returns:
value or null for none

setMedia

public StorageObject setMedia(StorageObject.Media media)
Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.

Parameters:
media - media or null for none

getMetadata

public Map<String,String> getMetadata()
User-provided metadata, in key/value pairs.

Returns:
value or null for none

setMetadata

public StorageObject setMetadata(Map<String,String> metadata)
User-provided metadata, in key/value pairs.

Parameters:
metadata - metadata or null for none

getName

public String getName()
The name of this object. Required if not specified by URL parameter.

Returns:
value or null for none

setName

public StorageObject setName(String name)
The name of this object. Required if not specified by URL parameter.

Parameters:
name - name or null for none

getOwner

public StorageObject.Owner getOwner()
The owner of the object. This will always be the uploader of the object.

Returns:
value or null for none

setOwner

public StorageObject setOwner(StorageObject.Owner owner)
The owner of the object. This will always be the uploader of the object.

Parameters:
owner - owner or null for none

getSelfLink

public String getSelfLink()
The link to this object.

Returns:
value or null for none

setSelfLink

public StorageObject setSelfLink(String selfLink)
The link to this object.

Parameters:
selfLink - selfLink or null for none

set

public StorageObject set(String fieldName,
                         Object value)
Overrides:
set in class GenericJson

clone

public StorageObject clone()
Overrides:
clone in class GenericJson