public final class UserRole
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 DCM/DFA Reporting And Trafficking 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 |
|---|
UserRole() |
| Modifier and Type | Method and Description |
|---|---|
UserRole |
clone() |
java.lang.Long |
getAccountId()
Account ID of this user role.
|
java.lang.Boolean |
getDefaultUserRole()
Whether this is a default user role.
|
java.lang.Long |
getId()
ID of this user role.
|
java.lang.String |
getKind()
Identifies what kind of resource this is.
|
java.lang.String |
getName()
Name of this user role.
|
java.lang.Long |
getParentUserRoleId()
ID of the user role that this user role is based on or copied from.
|
java.util.List<UserRolePermission> |
getPermissions()
List of permissions associated with this user role.
|
java.lang.Long |
getSubaccountId()
Subaccount ID of this user role.
|
UserRole |
set(java.lang.String fieldName,
java.lang.Object value) |
UserRole |
setAccountId(java.lang.Long accountId)
Account ID of this user role.
|
UserRole |
setDefaultUserRole(java.lang.Boolean defaultUserRole)
Whether this is a default user role.
|
UserRole |
setId(java.lang.Long id)
ID of this user role.
|
UserRole |
setKind(java.lang.String kind)
Identifies what kind of resource this is.
|
UserRole |
setName(java.lang.String name)
Name of this user role.
|
UserRole |
setParentUserRoleId(java.lang.Long parentUserRoleId)
ID of the user role that this user role is based on or copied from.
|
UserRole |
setPermissions(java.util.List<UserRolePermission> permissions)
List of permissions associated with this user role.
|
UserRole |
setSubaccountId(java.lang.Long subaccountId)
Subaccount ID of this user role.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.Long getAccountId()
null for nonepublic UserRole setAccountId(java.lang.Long accountId)
accountId - accountId or null for nonepublic java.lang.Boolean getDefaultUserRole()
null for nonepublic UserRole setDefaultUserRole(java.lang.Boolean defaultUserRole)
defaultUserRole - defaultUserRole or null for nonepublic java.lang.Long getId()
null for nonepublic UserRole setId(java.lang.Long id)
id - id or null for nonepublic java.lang.String getKind()
null for nonepublic UserRole setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic UserRole setName(java.lang.String name)
name - name or null for nonepublic java.lang.Long getParentUserRoleId()
null for nonepublic UserRole setParentUserRoleId(java.lang.Long parentUserRoleId)
parentUserRoleId - parentUserRoleId or null for nonepublic java.util.List<UserRolePermission> getPermissions()
null for nonepublic UserRole setPermissions(java.util.List<UserRolePermission> permissions)
permissions - permissions or null for nonepublic java.lang.Long getSubaccountId()
null for nonepublic UserRole setSubaccountId(java.lang.Long subaccountId)
subaccountId - subaccountId or null for nonepublic UserRole set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic UserRole clone()
clone in class com.google.api.client.json.GenericJson