public final class RoleAssignment
extends com.google.api.client.json.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 Directory API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
RoleAssignment() |
Modifier and Type | Method and Description |
---|---|
RoleAssignment |
clone() |
java.lang.String |
getAssignedTo()
The unique ID of the user this role is assigned to.
|
java.lang.String |
getEtag()
ETag of the resource.
|
java.lang.String |
getKind()
The type of the API resource.
|
java.lang.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.
|
java.lang.Long |
getRoleAssignmentId()
ID of this roleAssignment.
|
java.lang.Long |
getRoleId()
The ID of the role that is assigned.
|
java.lang.String |
getScopeType()
The scope in which this role is assigned.
|
RoleAssignment |
set(java.lang.String fieldName,
java.lang.Object value) |
RoleAssignment |
setAssignedTo(java.lang.String assignedTo)
The unique ID of the user this role is assigned to.
|
RoleAssignment |
setEtag(java.lang.String etag)
ETag of the resource.
|
RoleAssignment |
setKind(java.lang.String kind)
The type of the API resource.
|
RoleAssignment |
setOrgUnitId(java.lang.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(java.lang.Long roleAssignmentId)
ID of this roleAssignment.
|
RoleAssignment |
setRoleId(java.lang.Long roleId)
The ID of the role that is assigned.
|
RoleAssignment |
setScopeType(java.lang.String scopeType)
The scope in which this role is assigned.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.lang.String getAssignedTo()
null
for nonepublic RoleAssignment setAssignedTo(java.lang.String assignedTo)
assignedTo
- assignedTo or null
for nonepublic java.lang.String getEtag()
null
for nonepublic RoleAssignment setEtag(java.lang.String etag)
etag
- etag or null
for nonepublic java.lang.String getKind()
null
for nonepublic RoleAssignment setKind(java.lang.String kind)
kind
- kind or null
for nonepublic java.lang.String getOrgUnitId()
null
for nonepublic RoleAssignment setOrgUnitId(java.lang.String orgUnitId)
orgUnitId
- orgUnitId or null
for nonepublic java.lang.Long getRoleAssignmentId()
null
for nonepublic RoleAssignment setRoleAssignmentId(java.lang.Long roleAssignmentId)
roleAssignmentId
- roleAssignmentId or null
for nonepublic java.lang.Long getRoleId()
null
for nonepublic RoleAssignment setRoleId(java.lang.Long roleId)
roleId
- roleId or null
for nonepublic java.lang.String getScopeType()
null
for nonepublic RoleAssignment setScopeType(java.lang.String scopeType)
scopeType
- scopeType or null
for nonepublic RoleAssignment set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public RoleAssignment clone()
clone
in class com.google.api.client.json.GenericJson