public final class RoleAssignment 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
GenericData.Flags
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
RoleAssignment() |
Modifier and Type | Method and Description |
---|---|
RoleAssignment |
clone() |
String |
getAssignedTo()
The unique ID of the user this role is assigned to.
|
String |
getEtag()
ETag of the resource.
|
String |
getKind()
The type of the API resource.
|
String |
getOrgUnitId()
If the role is restricted to an organization unit, this contains the ID for the organization
unit the exercise of this role is restricted to.
|
Long |
getRoleAssignmentId()
ID of this roleAssignment.
|
Long |
getRoleId()
The ID of the role that is assigned.
|
String |
getScopeType()
The scope in which this role is assigned.
|
RoleAssignment |
set(String fieldName,
Object value) |
RoleAssignment |
setAssignedTo(String assignedTo)
The unique ID of the user this role is assigned to.
|
RoleAssignment |
setEtag(String etag)
ETag of the resource.
|
RoleAssignment |
setKind(String kind)
The type of the API resource.
|
RoleAssignment |
setOrgUnitId(String orgUnitId)
If the role is restricted to an organization unit, this contains the ID for the organization
unit the exercise of this role is restricted to.
|
RoleAssignment |
setRoleAssignmentId(Long roleAssignmentId)
ID of this roleAssignment.
|
RoleAssignment |
setRoleId(Long roleId)
The ID of the role that is assigned.
|
RoleAssignment |
setScopeType(String scopeType)
The scope in which this role is assigned.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public String getAssignedTo()
null
for nonepublic RoleAssignment setAssignedTo(String assignedTo)
assignedTo
- assignedTo or null
for nonepublic String getEtag()
null
for nonepublic RoleAssignment setEtag(String etag)
etag
- etag or null
for nonepublic String getKind()
null
for nonepublic RoleAssignment setKind(String kind)
kind
- kind or null
for nonepublic String getOrgUnitId()
null
for nonepublic RoleAssignment setOrgUnitId(String orgUnitId)
orgUnitId
- orgUnitId or null
for nonepublic Long getRoleAssignmentId()
null
for nonepublic RoleAssignment setRoleAssignmentId(Long roleAssignmentId)
roleAssignmentId
- roleAssignmentId or null
for nonepublic Long getRoleId()
null
for nonepublic RoleAssignment setRoleId(Long roleId)
roleId
- roleId or null
for nonepublic String getScopeType()
null
for nonepublic RoleAssignment setScopeType(String scopeType)
scopeType
- scopeType or null
for nonepublic RoleAssignment set(String fieldName, Object value)
set
in class GenericJson
public RoleAssignment clone()
clone
in class GenericJson
Copyright © 2011–2021 Google. All rights reserved.