public final class Role 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 Admin SDK API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
| Modifier and Type | Class and Description |
|---|---|
static class |
Role.RolePrivileges
Model definition for RoleRolePrivileges.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Role() |
| Modifier and Type | Method and Description |
|---|---|
Role |
clone() |
String |
getEtag()
ETag of the resource.
|
Boolean |
getIsSuperAdminRole()
Returns `true` if the role is a super admin role.
|
Boolean |
getIsSystemRole()
Returns `true` if this is a pre-defined system role.
|
String |
getKind()
The type of the API resource.
|
String |
getRoleDescription()
A short description of the role.
|
Long |
getRoleId()
ID of the role.
|
String |
getRoleName()
Name of the role.
|
List<Role.RolePrivileges> |
getRolePrivileges()
The set of privileges that are granted to this role.
|
Role |
set(String fieldName,
Object value) |
Role |
setEtag(String etag)
ETag of the resource.
|
Role |
setIsSuperAdminRole(Boolean isSuperAdminRole)
Returns `true` if the role is a super admin role.
|
Role |
setIsSystemRole(Boolean isSystemRole)
Returns `true` if this is a pre-defined system role.
|
Role |
setKind(String kind)
The type of the API resource.
|
Role |
setRoleDescription(String roleDescription)
A short description of the role.
|
Role |
setRoleId(Long roleId)
ID of the role.
|
Role |
setRoleName(String roleName)
Name of the role.
|
Role |
setRolePrivileges(List<Role.RolePrivileges> rolePrivileges)
The set of privileges that are granted to this role.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getEtag()
null for nonepublic Role setEtag(String etag)
etag - etag or null for nonepublic Boolean getIsSuperAdminRole()
null for nonepublic Role setIsSuperAdminRole(Boolean isSuperAdminRole)
isSuperAdminRole - isSuperAdminRole or null for nonepublic Boolean getIsSystemRole()
null for nonepublic Role setIsSystemRole(Boolean isSystemRole)
isSystemRole - isSystemRole or null for nonepublic String getKind()
null for nonepublic Role setKind(String kind)
kind - kind or null for nonepublic String getRoleDescription()
null for nonepublic Role setRoleDescription(String roleDescription)
roleDescription - roleDescription or null for nonepublic Long getRoleId()
null for nonepublic Role setRoleId(Long roleId)
roleId - roleId or null for nonepublic String getRoleName()
null for nonepublic Role setRoleName(String roleName)
roleName - roleName or null for nonepublic List<Role.RolePrivileges> getRolePrivileges()
null for nonepublic Role setRolePrivileges(List<Role.RolePrivileges> rolePrivileges)
rolePrivileges - rolePrivileges or null for nonepublic Role set(String fieldName, Object value)
set in class GenericJsonpublic Role clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.