Package odata.msgraph.client.entity
Class DeviceAndAppManagementRoleDefinition
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.RoleDefinition
-
- odata.msgraph.client.entity.DeviceAndAppManagementRoleDefinition
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceAndAppManagementRoleDefinition extends RoleDefinition implements com.github.davidmoten.odata.client.ODataEntityType
“The Role Definition resource. The role definition is the foundation of role based access in Intune. The role combines an Intune resource such as a Mobile App and associated role permissions such as Create or Read for the resource. There are two types of roles, built-in and custom. Built-in roles cannot be modified. Both built-in roles and custom roles must have assignments to be enforced. Create custom roles if you want to define a role that allows any of the available resources and role permissions to be combined into a single role.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceAndAppManagementRoleDefinition.Builder
-
Field Summary
-
Fields inherited from class odata.msgraph.client.entity.RoleDefinition
description, displayName, isBuiltIn, roleAssignments, rolePermissions, rolePermissionsNextLink
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceAndAppManagementRoleDefinition()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceAndAppManagementRoleDefinition.BuilderbuilderDeviceAndAppManagementRoleDefinition()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.ChangedFieldsgetChangedFields()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceAndAppManagementRoleDefinitionpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceAndAppManagementRoleDefinitionput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceAndAppManagementRoleDefinitionwithUnmappedField(String name, Object value)-
Methods inherited from class odata.msgraph.client.entity.RoleDefinition
builderRoleDefinition, getDescription, getDisplayName, getIsBuiltIn, getRoleAssignments, getRolePermissions, getRolePermissions, withDescription, withDisplayName, withIsBuiltIn, withRoleAssignments, withRolePermissions
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classRoleDefinition
-
builderDeviceAndAppManagementRoleDefinition
public static DeviceAndAppManagementRoleDefinition.Builder builderDeviceAndAppManagementRoleDefinition()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classRoleDefinition
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classRoleDefinition
-
withUnmappedField
public DeviceAndAppManagementRoleDefinition withUnmappedField(String name, Object value)
- Overrides:
withUnmappedFieldin classRoleDefinition
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classRoleDefinition
-
patch
public DeviceAndAppManagementRoleDefinition patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classRoleDefinition- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public DeviceAndAppManagementRoleDefinition put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classRoleDefinition- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
toString
public String toString()
- Overrides:
toStringin classRoleDefinition
-
-