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.FlagsAbstractMap.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 liz@example.com would be user-liz@example.com.
|
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, if applied to an 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, if applied to an 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 liz@example.com would be user-liz@example.com.
|
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, if applied to an 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, if applied to an 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, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic 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 com.google.api.client.json.GenericJsonpublic ObjectAccessControl clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2018 Google. All rights reserved.