Calendar API v3 (revision 41)
com.google.api.services.calendar.model
Class AclRule.Scope
java.lang.Object
java.util.AbstractMap<String,Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.services.calendar.model.AclRule.Scope
- All Implemented Interfaces:
- Cloneable, Map<String,Object>
- Enclosing class:
- AclRule
public static final class AclRule.Scope
- extends GenericJson
The scope of the rule.
| Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry<K,V> |
AclRule.Scope
public AclRule.Scope()
getType
public String getType()
- The type of the scope. Possible values are: - "default" - The public scope. This is the default
value. - "user" - Limits the scope to a single user. - "group" - Limits the scope to a group.
- "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or
public, scope apply to any user, authenticated or not.
- Returns:
- value or
null for none
setType
public AclRule.Scope setType(String type)
- The type of the scope. Possible values are: - "default" - The public scope. This is the default
value. - "user" - Limits the scope to a single user. - "group" - Limits the scope to a group.
- "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or
public, scope apply to any user, authenticated or not.
- Parameters:
type - type or null for none
getValue
public String getValue()
- The email address of a user or group, or the name of a domain, depending on the scope type.
Omitted for type "default".
- Returns:
- value or
null for none
setValue
public AclRule.Scope setValue(String value)
- The email address of a user or group, or the name of a domain, depending on the scope type.
Omitted for type "default".
- Parameters:
value - value or null for none
set
public AclRule.Scope set(String fieldName,
Object value)
- Overrides:
set in class GenericJson
clone
public AclRule.Scope clone()
- Overrides:
clone in class GenericJson