public final class BucketAccessControl 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 |
BucketAccessControl.ProjectTeam
The project team associated with the entity, if any.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
BucketAccessControl() |
Modifier and Type | Method and Description |
---|---|
BucketAccessControl |
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.
|
String |
getId()
The ID of the access-control entry.
|
String |
getKind()
The kind of item this is.
|
BucketAccessControl.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.
|
BucketAccessControl |
set(String fieldName,
Object value) |
BucketAccessControl |
setBucket(String bucket)
The name of the bucket.
|
BucketAccessControl |
setDomain(String domain)
The domain associated with the entity, if any.
|
BucketAccessControl |
setEmail(String email)
The email address associated with the entity, if any.
|
BucketAccessControl |
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].
|
BucketAccessControl |
setEntityId(String entityId)
The ID for the entity, if any.
|
BucketAccessControl |
setEtag(String etag)
HTTP 1.1 Entity tag for the access-control entry.
|
BucketAccessControl |
setId(String id)
The ID of the access-control entry.
|
BucketAccessControl |
setKind(String kind)
The kind of item this is.
|
BucketAccessControl |
setProjectTeam(BucketAccessControl.ProjectTeam projectTeam)
The project team associated with the entity, if any.
|
BucketAccessControl |
setRole(String role)
The access permission for the entity.
|
BucketAccessControl |
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 BucketAccessControl setBucket(String bucket)
bucket
- bucket or null
for nonepublic String getDomain()
null
for nonepublic BucketAccessControl setDomain(String domain)
domain
- domain or null
for nonepublic String getEmail()
null
for nonepublic BucketAccessControl setEmail(String email)
email
- email or null
for nonepublic String getEntity()
null
for nonepublic BucketAccessControl setEntity(String entity)
entity
- entity or null
for nonepublic String getEntityId()
null
for nonepublic BucketAccessControl setEntityId(String entityId)
entityId
- entityId or null
for nonepublic String getEtag()
null
for nonepublic BucketAccessControl setEtag(String etag)
etag
- etag or null
for nonepublic String getId()
null
for nonepublic BucketAccessControl setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic BucketAccessControl setKind(String kind)
kind
- kind or null
for nonepublic BucketAccessControl.ProjectTeam getProjectTeam()
null
for nonepublic BucketAccessControl setProjectTeam(BucketAccessControl.ProjectTeam projectTeam)
projectTeam
- projectTeam or null
for nonepublic String getRole()
null
for nonepublic BucketAccessControl setRole(String role)
role
- role or null
for nonepublic String getSelfLink()
null
for nonepublic BucketAccessControl setSelfLink(String selfLink)
selfLink
- selfLink or null
for nonepublic BucketAccessControl set(String fieldName, Object value)
set
in class GenericJson
public BucketAccessControl clone()
clone
in class GenericJson