Calendar API v3 (revision 30)
com.google.api.services.calendar.model
Class AclRule.Scope
java.lang.Object
java.util.AbstractMap<java.lang.String,java.lang.Object>
com.google.api.client.util.GenericData
com.google.api.client.json.GenericJson
com.google.api.services.calendar.model.AclRule.Scope
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map<java.lang.String,java.lang.Object>
- Enclosing class:
- AclRule
public static final class AclRule.Scope
- extends GenericJson
The scope of the rule.
Nested classes/interfaces inherited from class java.util.AbstractMap |
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry<K,V> |
Method Summary |
java.lang.String |
getType()
The type of the scope. |
java.lang.String |
getValue()
The email address of a user or group, or the name of a domain, depending on the scope type. |
AclRule.Scope |
setType(java.lang.String type)
The type of the scope. |
AclRule.Scope |
setValue(java.lang.String value)
The email address of a user or group, or the name of a domain, depending on the scope type. |
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 |
AclRule.Scope
public AclRule.Scope()
getType
public java.lang.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.
The value returned may be
null
.
setType
public AclRule.Scope setType(java.lang.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.
The value set may be
null
.
getValue
public java.lang.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".
The value returned may be
null
.
setValue
public AclRule.Scope setValue(java.lang.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".
The value set may be
null
.