Cloud Storage API v1beta2 (revision 2)



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

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

public final class BucketAccessControl
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

Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use JsonHttpRequest.getLastResponseHeaders()

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
BucketAccessControl()
           
 
Method Summary
 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 The value returned may be null.
 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.
 String getRole()
          The access permission for the entity.
 String getSelfLink()
          The link to this access-control entry.
 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 - allUsers - allAuthenticatedUsers The value set may be null.
 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 setRole(String role)
          The access permission for the entity.
 BucketAccessControl setSelfLink(String selfLink)
          The link to this access-control entry.
 
Methods inherited from class com.google.api.client.json.GenericJson
clone, getFactory, setFactory, toPrettyString, toString
 
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, 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

BucketAccessControl

public BucketAccessControl()
Method Detail

getBucket

public String getBucket()
The name of the bucket. The value returned may be null.


setBucket

public BucketAccessControl setBucket(String bucket)
The name of the bucket. The value set may be null.


getDomain

public String getDomain()
The domain associated with the entity, if any. The value returned may be null.


setDomain

public BucketAccessControl setDomain(String domain)
The domain associated with the entity, if any. The value set may be null.


getEmail

public String getEmail()
The email address associated with the entity, if any. The value returned may be null.


setEmail

public BucketAccessControl setEmail(String email)
The email address associated with the entity, if any. The value set may be null.


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 The value returned may be null.


setEntity

public BucketAccessControl setEntity(String entity)
The entity holding the permission, in one of the following forms: - user-userId - user-email - group-groupId - group-email - allUsers - allAuthenticatedUsers The value set may be null.


getEntityId

public String getEntityId()
The ID for the entity, if any. The value returned may be null.


setEntityId

public BucketAccessControl setEntityId(String entityId)
The ID for the entity, if any. The value set may be null.


getEtag

public String getEtag()
HTTP 1.1 Entity tag for the access-control entry. The value returned may be null.


setEtag

public BucketAccessControl setEtag(String etag)
HTTP 1.1 Entity tag for the access-control entry. The value set may be null.


getId

public String getId()
The ID of the access-control entry. The value returned may be null.


setId

public BucketAccessControl setId(String id)
The ID of the access-control entry. The value set may be null.


getKind

public String getKind()
The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl. The value returned may be null.


setKind

public BucketAccessControl setKind(String kind)
The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl. The value set may be null.


getRole

public String getRole()
The access permission for the entity. Can be READER, WRITER, or OWNER. The value returned may be null.


setRole

public BucketAccessControl setRole(String role)
The access permission for the entity. Can be READER, WRITER, or OWNER. The value set may be null.


getSelfLink

public String getSelfLink()
The link to this access-control entry. The value returned may be null.


setSelfLink

public BucketAccessControl setSelfLink(String selfLink)
The link to this access-control entry. The value set may be null.