public final class ObjectAccessControl 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 |
ObjectAccessControl.ProjectTeam
The project team associated with the entity, if any.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ObjectAccessControl() |
Modifier and Type | Method and Description |
---|---|
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 - domain-domain - project-team-projectId - allUsers -
allAuthenticatedUsers Examples: - The user [email protected] would be [email protected].
|
String |
getEntityId()
The ID for the entity, if any.
|
String |
getEtag()
HTTP 1.1 Entity tag for the access-control entry.
|
Long |
getGeneration()
The content generation of the object.
|
String |
getId()
The ID of the access-control entry.
|
String |
getKind()
The kind of item this is.
|
String |
getObject()
The name of the object.
|
ObjectAccessControl.ProjectTeam |
getProjectTeam()
The project team associated with the entity, if any.
|
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 - domain-domain - project-team-projectId - allUsers -
allAuthenticatedUsers Examples: - The user [email protected] would be [email protected].
|
ObjectAccessControl |
setEntityId(String entityId)
The ID for the entity, if any.
|
ObjectAccessControl |
setEtag(String etag)
HTTP 1.1 Entity tag for the access-control entry.
|
ObjectAccessControl |
setGeneration(Long generation)
The content generation of the object.
|
ObjectAccessControl |
setId(String id)
The ID of the access-control entry.
|
ObjectAccessControl |
setKind(String kind)
The kind of item this is.
|
ObjectAccessControl |
setObject(String object__)
The name of the object.
|
ObjectAccessControl |
setProjectTeam(ObjectAccessControl.ProjectTeam projectTeam)
The project team associated with the entity, if any.
|
ObjectAccessControl |
setRole(String role)
The access permission for the entity.
|
ObjectAccessControl |
setSelfLink(String selfLink)
The link to this access-control entry.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getBucket()
null
for nonepublic ObjectAccessControl setBucket(String bucket)
bucket
- bucket or null
for nonepublic String getDomain()
null
for nonepublic ObjectAccessControl setDomain(String domain)
domain
- domain or null
for nonepublic String getEmail()
null
for nonepublic ObjectAccessControl setEmail(String email)
email
- email or null
for nonepublic String getEntity()
null
for nonepublic ObjectAccessControl setEntity(String entity)
entity
- entity or null
for nonepublic String getEntityId()
null
for nonepublic ObjectAccessControl setEntityId(String entityId)
entityId
- entityId or null
for nonepublic String getEtag()
null
for nonepublic ObjectAccessControl setEtag(String etag)
etag
- etag or null
for nonepublic Long getGeneration()
null
for nonepublic ObjectAccessControl setGeneration(Long generation)
generation
- generation or null
for nonepublic String getId()
null
for nonepublic ObjectAccessControl setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic ObjectAccessControl setKind(String kind)
kind
- kind or null
for nonepublic String getObject()
null
for nonepublic ObjectAccessControl setObject(String object__)
object__
- object__ or null
for nonepublic ObjectAccessControl.ProjectTeam getProjectTeam()
null
for nonepublic ObjectAccessControl setProjectTeam(ObjectAccessControl.ProjectTeam projectTeam)
projectTeam
- projectTeam or null
for nonepublic String getRole()
null
for nonepublic ObjectAccessControl setRole(String role)
role
- role or null
for nonepublic String getSelfLink()
null
for nonepublic ObjectAccessControl setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic ObjectAccessControl set(String fieldName, Object value)
set
in class GenericJson
public ObjectAccessControl clone()
clone
in class GenericJson