Cloud Storage API v1beta1 (revision 30)



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

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.ObjectAccessControl
All Implemented Interfaces:
Cloneable, Map<String,Object>

public final class ObjectAccessControl
extends GenericJson

An access-control entry.

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
 
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
ObjectAccessControl()
           
 
Method Summary
 ObjectAccessControl clone()
           
 String getBucket()
          The name of the bucket.
 String getDomain()
          The domain associated with the entity, if any.
 String getEmail()
          The email address associated with the entity, if any.
 String getEntity()
          The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - allUsers - allAuthenticatedUsers
 String getEntityId()
          The ID for the entity, if any.
 String getId()
          The ID of the access-control entry.
 String getKind()
          The kind of item this is.
 String getObject()
          The name of the object.
 String getRole()
          The access permission for the entity.
 String getSelfLink()
          The link to this access-control entry.
 ObjectAccessControl set(String fieldName, Object value)
           
 ObjectAccessControl setBucket(String bucket)
          The name of the bucket.
 ObjectAccessControl setDomain(String domain)
          The domain associated with the entity, if any.
 ObjectAccessControl setEmail(String email)
          The email address associated with the entity, if any.
 ObjectAccessControl setEntity(String entity)
          The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - allUsers - allAuthenticatedUsers
 ObjectAccessControl setEntityId(String entityId)
          The ID for the entity, if any.
 ObjectAccessControl setId(String id)
          The ID of the access-control entry.
 ObjectAccessControl setKind(String kind)
          The kind of item this is.
 ObjectAccessControl setObject(String storageObject)
          The name of the object.
 ObjectAccessControl setRole(String role)
          The access permission for the entity.
 ObjectAccessControl setSelfLink(String selfLink)
          The link to this access-control entry.
 
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

ObjectAccessControl

public ObjectAccessControl()
Method Detail

getBucket

public String getBucket()
The name of the bucket.

Returns:
value or null for none

setBucket

public ObjectAccessControl setBucket(String bucket)
The name of the bucket.

Parameters:
bucket - bucket or null for none

getDomain

public String getDomain()
The domain associated with the entity, if any.

Returns:
value or null for none

setDomain

public ObjectAccessControl setDomain(String domain)
The domain associated with the entity, if any.

Parameters:
domain - domain or null for none

getEmail

public String getEmail()
The email address associated with the entity, if any.

Returns:
value or null for none

setEmail

public ObjectAccessControl setEmail(String email)
The email address associated with the entity, if any.

Parameters:
email - email or null for none

getEntity

public String getEntity()
The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - allUsers - allAuthenticatedUsers

Returns:
value or null for none

setEntity

public ObjectAccessControl setEntity(String entity)
The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - allUsers - allAuthenticatedUsers

Parameters:
entity - entity or null for none

getEntityId

public String getEntityId()
The ID for the entity, if any.

Returns:
value or null for none

setEntityId

public ObjectAccessControl setEntityId(String entityId)
The ID for the entity, if any.

Parameters:
entityId - entityId or null for none

getId

public String getId()
The ID of the access-control entry.

Returns:
value or null for none

setId

public ObjectAccessControl setId(String id)
The ID of the access-control entry.

Parameters:
id - id or null for none

getKind

public String getKind()
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.

Returns:
value or null for none

setKind

public ObjectAccessControl setKind(String kind)
The kind of item this is. For object access control entries, this is always storage#objectAccessControl.

Parameters:
kind - kind or null for none

getObject

public String getObject()
The name of the object.

Returns:
value or null for none

setObject

public ObjectAccessControl setObject(String storageObject)
The name of the object.

Parameters:
storageObject - storageObject or null for none

getRole

public String getRole()
The access permission for the entity. Can be READER or OWNER.

Returns:
value or null for none

setRole

public ObjectAccessControl setRole(String role)
The access permission for the entity. Can be READER or OWNER.

Parameters:
role - role or null for none

getSelfLink

public String getSelfLink()
The link to this access-control entry.

Returns:
value or null for none

setSelfLink

public ObjectAccessControl setSelfLink(String selfLink)
The link to this access-control entry.

Parameters:
selfLink - selfLink or null for none

set

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

clone

public ObjectAccessControl clone()
Overrides:
clone in class GenericJson