Package odata.msgraph.client.entity
Class DeviceAndAppManagementRoleAssignment
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.RoleAssignment
-
- odata.msgraph.client.entity.DeviceAndAppManagementRoleAssignment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DeviceAndAppManagementRoleAssignment extends RoleAssignment implements com.github.davidmoten.odata.client.ODataEntityType
“The Role Assignment resource. Role assignments tie together a role definition with members and scopes. There can be one or more role assignments per role. This applies to custom and built-in roles.”
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDeviceAndAppManagementRoleAssignment.Builder
-
Field Summary
Fields Modifier and Type Field Description protected List<String>membersprotected StringmembersNextLink-
Fields inherited from class odata.msgraph.client.entity.RoleAssignment
description, displayName, resourceScopes, resourceScopesNextLink
-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDeviceAndAppManagementRoleAssignment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DeviceAndAppManagementRoleAssignment.BuilderbuilderDeviceAndAppManagementRoleAssignment()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.CollectionPage<String>getMembers()“The list of ids of role member security groups.com.github.davidmoten.odata.client.CollectionPage<String>getMembers(com.github.davidmoten.odata.client.HttpRequestOptions options)“The list of ids of role member security groups.com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()DeviceAndAppManagementRoleAssignmentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)DeviceAndAppManagementRoleAssignmentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()DeviceAndAppManagementRoleAssignmentwithMembers(List<String> members)Returns an immutable copy ofthiswith just themembersfield changed.DeviceAndAppManagementRoleAssignmentwithUnmappedField(String name, String value)-
Methods inherited from class odata.msgraph.client.entity.RoleAssignment
builderRoleAssignment, getDescription, getDisplayName, getResourceScopes, getResourceScopes, getRoleDefinition, withDescription, withDisplayName, withResourceScopes
-
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classRoleAssignment
-
builderDeviceAndAppManagementRoleAssignment
public static DeviceAndAppManagementRoleAssignment.Builder builderDeviceAndAppManagementRoleAssignment()
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 classRoleAssignment
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classRoleAssignment
-
getMembers
public com.github.davidmoten.odata.client.CollectionPage<String> getMembers()
“The list of ids of role member security groups. These are IDs from Azure Active Directory.”- Returns:
- property members
-
withMembers
public DeviceAndAppManagementRoleAssignment withMembers(List<String> members)
Returns an immutable copy ofthiswith just themembersfield changed. Field description below. The field name is also added to an internal map of changed fields in the returned object so that whenthis.patch()is called (if available)on the returned object only the changed fields are submitted.“The list of ids of role member security groups. These are IDs from Azure Active Directory.”
- Parameters:
members- new value ofmembersfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just themembersfield changed
-
getMembers
public com.github.davidmoten.odata.client.CollectionPage<String> getMembers(com.github.davidmoten.odata.client.HttpRequestOptions options)
“The list of ids of role member security groups. These are IDs from Azure Active Directory.”- Parameters:
options- specify connect and read timeouts- Returns:
- property members
-
withUnmappedField
public DeviceAndAppManagementRoleAssignment withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classRoleAssignment
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classRoleAssignment
-
patch
public DeviceAndAppManagementRoleAssignment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.- Overrides:
patchin classRoleAssignment- Returns:
- a copy of
thiswith changed fields reset - Throws:
com.github.davidmoten.odata.client.ClientException- if HTTP response is not as expected
-
put
public DeviceAndAppManagementRoleAssignment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).- Overrides:
putin classRoleAssignment- 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 classRoleAssignment
-
-