public class RoleDefinition extends Entity implements com.github.davidmoten.odata.client.ODataEntityType
| Modifier and Type | Class and Description |
|---|---|
static class |
RoleDefinition.Builder |
| Modifier and Type | Field and Description |
|---|---|
protected String |
description |
protected String |
displayName |
protected Boolean |
isBuiltIn |
protected Boolean |
isBuiltInRoleDefinition |
protected List<RolePermission> |
permissions |
protected String |
permissionsNextLink |
protected List<RolePermission> |
rolePermissions |
protected String |
rolePermissionsNextLink |
protected List<String> |
roleScopeTagIds |
protected String |
roleScopeTagIdsNextLink |
changedFields, contextPath, id, odataType, unmappedFields| Modifier | Constructor and Description |
|---|---|
protected |
RoleDefinition() |
| Modifier and Type | Method and Description |
|---|---|
static RoleDefinition.Builder |
builderRoleDefinition()
Returns a builder which is used to create a new
instance of this class (given that this class is immutable).
|
com.github.davidmoten.odata.client.internal.ChangedFields |
getChangedFields() |
Optional<String> |
getDescription()
“Description of the Role definition.”
|
Optional<String> |
getDisplayName()
“Display Name of the Role definition.”
|
Optional<Boolean> |
getIsBuiltIn()
“Type of Role.
|
Optional<Boolean> |
getIsBuiltInRoleDefinition()
“Type of Role.
|
com.github.davidmoten.odata.client.CollectionPage<RolePermission> |
getPermissions()
“List of Role Permissions this role is allowed to perform.
|
RoleAssignmentCollectionRequest |
getRoleAssignments()
“List of Role assignments for this role definition.”
|
com.github.davidmoten.odata.client.CollectionPage<RolePermission> |
getRolePermissions()
“List of Role Permissions this role is allowed to perform.
|
com.github.davidmoten.odata.client.CollectionPage<String> |
getRoleScopeTagIds()
“List of Scope Tags for this Entity instance.”
|
com.github.davidmoten.odata.client.internal.UnmappedFields |
getUnmappedFields() |
String |
odataTypeName() |
RoleDefinition |
patch()
Submits only changed fields for update and returns an
immutable copy of
this with changed fields reset. |
void |
postInject(boolean addKeysToContextPath) |
RoleDefinition |
put()
Submits all fields for update and returns an immutable copy of
this
with changed fields reset (they were ignored anyway). |
String |
toString() |
RoleDefinition |
withDescription(String description)
Returns an immutable copy of
this with just the description
field changed. |
RoleDefinition |
withDisplayName(String displayName)
Returns an immutable copy of
this with just the displayName
field changed. |
RoleDefinition |
withIsBuiltIn(Boolean isBuiltIn)
Returns an immutable copy of
this with just the isBuiltIn field
changed. |
RoleDefinition |
withIsBuiltInRoleDefinition(Boolean isBuiltInRoleDefinition)
Returns an immutable copy of
this with just the isBuiltInRoleDefinition field changed. |
protected String displayName
protected String description
protected List<RolePermission> permissions
protected String permissionsNextLink
protected List<RolePermission> rolePermissions
protected String rolePermissionsNextLink
protected Boolean isBuiltInRoleDefinition
protected Boolean isBuiltIn
protected String roleScopeTagIdsNextLink
public String odataTypeName()
odataTypeName in interface com.github.davidmoten.odata.client.ODataTypeodataTypeName in class Entitypublic static RoleDefinition.Builder builderRoleDefinition()
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityTypegetChangedFields in class Entitypublic void postInject(boolean addKeysToContextPath)
postInject in interface com.github.davidmoten.odata.client.ODataTypepostInject in class Entitypublic Optional<String> getDisplayName()
public RoleDefinition withDisplayName(String displayName)
this with just the displayName
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Display Name of the Role definition.”
displayName - new value of displayName field (as defined in service metadata)this with just the displayName field changedpublic Optional<String> getDescription()
public RoleDefinition withDescription(String description)
this with just the description
field changed. Field description below. The field name is also added to an
internal map of changed fields in the returned object so that when this.
patch() is called (if available)on the returned object only the changed fields
are submitted.
“Description of the Role definition.”
description - new value of description field (as defined in service metadata)this with just the description field changedpublic com.github.davidmoten.odata.client.CollectionPage<RolePermission> getPermissions()
public com.github.davidmoten.odata.client.CollectionPage<RolePermission> getRolePermissions()
public Optional<Boolean> getIsBuiltInRoleDefinition()
public RoleDefinition withIsBuiltInRoleDefinition(Boolean isBuiltInRoleDefinition)
this with just the isBuiltInRoleDefinition field changed. Field description below. The field name
is also added to an internal map of changed fields in the returned object so
that when this.patch() is called (if available)on the returned object
only the changed fields are submitted.
“Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.”
isBuiltInRoleDefinition - new value of isBuiltInRoleDefinition field (as defined in service metadata)this with just the isBuiltInRoleDefinition field changedpublic Optional<Boolean> getIsBuiltIn()
public RoleDefinition withIsBuiltIn(Boolean isBuiltIn)
this with just the isBuiltIn field
changed. Field description below. The field name is also added to an internal
map of changed fields in the returned object so that when this.patch()
is called (if available)on the returned object only the changed fields are
submitted.
“Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.”
isBuiltIn - new value of isBuiltIn field (as defined in service metadata)this with just the isBuiltIn field changedpublic com.github.davidmoten.odata.client.CollectionPage<String> getRoleScopeTagIds()
public RoleAssignmentCollectionRequest getRoleAssignments()
public com.github.davidmoten.odata.client.internal.UnmappedFields getUnmappedFields()
getUnmappedFields in interface com.github.davidmoten.odata.client.ODataTypegetUnmappedFields in class Entitypublic RoleDefinition patch()
this with changed fields reset.public RoleDefinition put()
this
with changed fields reset (they were ignored anyway).Copyright © 2018–2020. All rights reserved.