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 Campaign Manager 360 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
UserRole() |
Modifier and Type | Method and Description |
---|---|
UserRole |
clone() |
Long |
getAccountId()
Account ID of this user role.
|
Boolean |
getDefaultUserRole()
Whether this is a default user role.
|
Long |
getId()
ID of this user role.
|
String |
getKind()
Identifies what kind of resource this is.
|
String |
getName()
Name of this user role.
|
Long |
getParentUserRoleId()
ID of the user role that this user role is based on or copied from.
|
List<UserRolePermission> |
getPermissions()
List of permissions associated with this user role.
|
Long |
getSubaccountId()
Subaccount ID of this user role.
|
UserRole |
set(String fieldName,
Object value) |
UserRole |
setAccountId(Long accountId)
Account ID of this user role.
|
UserRole |
setDefaultUserRole(Boolean defaultUserRole)
Whether this is a default user role.
|
UserRole |
setId(Long id)
ID of this user role.
|
UserRole |
setKind(String kind)
Identifies what kind of resource this is.
|
UserRole |
setName(String name)
Name of this user role.
|
UserRole |
setParentUserRoleId(Long parentUserRoleId)
ID of the user role that this user role is based on or copied from.
|
UserRole |
setPermissions(List<UserRolePermission> permissions)
List of permissions associated with this user role.
|
UserRole |
setSubaccountId(Long subaccountId)
Subaccount ID of this user role.
|
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 Long getAccountId()
null
for nonepublic UserRole setAccountId(Long accountId)
accountId
- accountId or null
for nonepublic Boolean getDefaultUserRole()
null
for nonepublic UserRole setDefaultUserRole(Boolean defaultUserRole)
defaultUserRole
- defaultUserRole or null
for nonepublic Long getId()
null
for nonepublic UserRole setId(Long id)
id
- id or null
for nonepublic String getKind()
null
for nonepublic UserRole setKind(String kind)
kind
- kind or null
for nonepublic String getName()
null
for nonepublic UserRole setName(String name)
name
- name or null
for nonepublic Long getParentUserRoleId()
null
for nonepublic UserRole setParentUserRoleId(Long parentUserRoleId)
parentUserRoleId
- parentUserRoleId or null
for nonepublic List<UserRolePermission> getPermissions()
null
for nonepublic UserRole setPermissions(List<UserRolePermission> permissions)
permissions
- permissions or null
for nonepublic Long getSubaccountId()
null
for nonepublic UserRole setSubaccountId(Long subaccountId)
subaccountId
- subaccountId or null
for nonepublic UserRole set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public UserRole clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.