public final class AclRule 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 Calendar 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 |
AclRule.Scope
The scope of the rule.
|
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
AclRule() |
Modifier and Type | Method and Description |
---|---|
AclRule |
clone() |
String |
getEtag()
ETag of the resource.
|
String |
getId()
Identifier of the ACL rule.
|
String |
getKind()
Type of the resource ("calendar#aclRule").
|
String |
getRole()
The role assigned to the scope.
|
AclRule.Scope |
getScope()
The scope of the rule.
|
AclRule |
set(String fieldName,
Object value) |
AclRule |
setEtag(String etag)
ETag of the resource.
|
AclRule |
setId(String id)
Identifier of the ACL rule.
|
AclRule |
setKind(String kind)
Type of the resource ("calendar#aclRule").
|
AclRule |
setRole(String role)
The role assigned to the scope.
|
AclRule |
setScope(AclRule.Scope scope)
The scope of the rule.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public String getEtag()
null
for nonepublic AclRule setEtag(String etag)
etag
- etag or null
for nonepublic String getId()
null
for nonepublic AclRule setId(String id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic AclRule setKind(String kind)
kind
- kind or null
for nonepublic String getRole()
null
for nonepublic AclRule setRole(String role)
role
- role or null
for nonepublic AclRule.Scope getScope()
null
for nonepublic AclRule setScope(AclRule.Scope scope)
scope
- scope or null
for nonepublic AclRule set(String fieldName, Object value)
set
in class GenericJson
public AclRule clone()
clone
in class GenericJson