public final class ObjectAccessControl
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 |
ObjectAccessControl.ProjectTeam
The project team associated with the entity, if any.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
ObjectAccessControl() |
| Modifier and Type | Method and Description |
|---|---|
ObjectAccessControl |
clone() |
java.lang.String |
getBucket()
The name of the bucket.
|
java.lang.String |
getDomain()
The domain associated with the entity, if any.
|
java.lang.String |
getEmail()
The email address associated with the entity, if any.
|
java.lang.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 liz@example.com would be user-liz@example.com.
|
java.lang.String |
getEntityId()
The ID for the entity, if any.
|
java.lang.String |
getEtag()
HTTP 1.1 Entity tag for the access-control entry.
|
java.lang.Long |
getGeneration()
The content generation of the object, if applied to an object.
|
java.lang.String |
getId()
The ID of the access-control entry.
|
java.lang.String |
getKind()
The kind of item this is.
|
java.lang.String |
getObject()
The name of the object, if applied to an object.
|
ObjectAccessControl.ProjectTeam |
getProjectTeam()
The project team associated with the entity, if any.
|
java.lang.String |
getRole()
The access permission for the entity.
|
java.lang.String |
getSelfLink()
The link to this access-control entry.
|
ObjectAccessControl |
set(java.lang.String fieldName,
java.lang.Object value) |
ObjectAccessControl |
setBucket(java.lang.String bucket)
The name of the bucket.
|
ObjectAccessControl |
setDomain(java.lang.String domain)
The domain associated with the entity, if any.
|
ObjectAccessControl |
setEmail(java.lang.String email)
The email address associated with the entity, if any.
|
ObjectAccessControl |
setEntity(java.lang.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 liz@example.com would be user-liz@example.com.
|
ObjectAccessControl |
setEntityId(java.lang.String entityId)
The ID for the entity, if any.
|
ObjectAccessControl |
setEtag(java.lang.String etag)
HTTP 1.1 Entity tag for the access-control entry.
|
ObjectAccessControl |
setGeneration(java.lang.Long generation)
The content generation of the object, if applied to an object.
|
ObjectAccessControl |
setId(java.lang.String id)
The ID of the access-control entry.
|
ObjectAccessControl |
setKind(java.lang.String kind)
The kind of item this is.
|
ObjectAccessControl |
setObject(java.lang.String object__)
The name of the object, if applied to an object.
|
ObjectAccessControl |
setProjectTeam(ObjectAccessControl.ProjectTeam projectTeam)
The project team associated with the entity, if any.
|
ObjectAccessControl |
setRole(java.lang.String role)
The access permission for the entity.
|
ObjectAccessControl |
setSelfLink(java.lang.String selfLink)
The link to this access-control entry.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getBucket()
null for nonepublic ObjectAccessControl setBucket(java.lang.String bucket)
bucket - bucket or null for nonepublic java.lang.String getDomain()
null for nonepublic ObjectAccessControl setDomain(java.lang.String domain)
domain - domain or null for nonepublic java.lang.String getEmail()
null for nonepublic ObjectAccessControl setEmail(java.lang.String email)
email - email or null for nonepublic java.lang.String getEntity()
null for nonepublic ObjectAccessControl setEntity(java.lang.String entity)
entity - entity or null for nonepublic java.lang.String getEntityId()
null for nonepublic ObjectAccessControl setEntityId(java.lang.String entityId)
entityId - entityId or null for nonepublic java.lang.String getEtag()
null for nonepublic ObjectAccessControl setEtag(java.lang.String etag)
etag - etag or null for nonepublic java.lang.Long getGeneration()
null for nonepublic ObjectAccessControl setGeneration(java.lang.Long generation)
generation - generation or null for nonepublic java.lang.String getId()
null for nonepublic ObjectAccessControl setId(java.lang.String id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic ObjectAccessControl setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getObject()
null for nonepublic ObjectAccessControl setObject(java.lang.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 java.lang.String getRole()
null for nonepublic ObjectAccessControl setRole(java.lang.String role)
role - role or null for nonepublic java.lang.String getSelfLink()
null for nonepublic ObjectAccessControl setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic ObjectAccessControl set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ObjectAccessControl clone()
clone in class com.google.api.client.json.GenericJson