target.apidocs.com.google.api.services.directory.model.Role.html Maven / Gradle / Ivy
Role (Admin SDK API directory_v1-rev20220606-1.32.1)
com.google.api.services.directory.model
Class Role
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.directory.model.Role
-
public final class Role
extends GenericJson
Model definition for Role.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
static class
Role.RolePrivileges
Model definition for RoleRolePrivileges.
-
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>
-
Constructor Summary
Constructors
Constructor and Description
Role()
-
Method Summary
All Methods Instance Methods Concrete Methods
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.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getEtag
public String getEtag()
ETag of the resource.
- Returns:
- value or
null
for none
-
setEtag
public Role setEtag(String etag)
ETag of the resource.
- Parameters:
etag
- etag or null
for none
-
getIsSuperAdminRole
public Boolean getIsSuperAdminRole()
Returns `true` if the role is a super admin role.
- Returns:
- value or
null
for none
-
setIsSuperAdminRole
public Role setIsSuperAdminRole(Boolean isSuperAdminRole)
Returns `true` if the role is a super admin role.
- Parameters:
isSuperAdminRole
- isSuperAdminRole or null
for none
-
getIsSystemRole
public Boolean getIsSystemRole()
Returns `true` if this is a pre-defined system role.
- Returns:
- value or
null
for none
-
setIsSystemRole
public Role setIsSystemRole(Boolean isSystemRole)
Returns `true` if this is a pre-defined system role.
- Parameters:
isSystemRole
- isSystemRole or null
for none
-
getKind
public String getKind()
The type of the API resource. This is always `admin#directory#role`.
- Returns:
- value or
null
for none
-
setKind
public Role setKind(String kind)
The type of the API resource. This is always `admin#directory#role`.
- Parameters:
kind
- kind or null
for none
-
getRoleDescription
public String getRoleDescription()
A short description of the role.
- Returns:
- value or
null
for none
-
setRoleDescription
public Role setRoleDescription(String roleDescription)
A short description of the role.
- Parameters:
roleDescription
- roleDescription or null
for none
-
getRoleId
public Long getRoleId()
ID of the role.
- Returns:
- value or
null
for none
-
setRoleId
public Role setRoleId(Long roleId)
ID of the role.
- Parameters:
roleId
- roleId or null
for none
-
getRoleName
public String getRoleName()
Name of the role.
- Returns:
- value or
null
for none
-
setRoleName
public Role setRoleName(String roleName)
Name of the role.
- Parameters:
roleName
- roleName or null
for none
-
getRolePrivileges
public List<Role.RolePrivileges> getRolePrivileges()
The set of privileges that are granted to this role.
- Returns:
- value or
null
for none
-
setRolePrivileges
public Role setRolePrivileges(List<Role.RolePrivileges> rolePrivileges)
The set of privileges that are granted to this role.
- Parameters:
rolePrivileges
- rolePrivileges or null
for none
-
set
public Role set(String fieldName,
Object value)
- Overrides:
set
in class GenericJson
-
clone
public Role clone()
- Overrides:
clone
in class GenericJson
Copyright © 2011–2022 Google. All rights reserved.