Package odata.msgraph.client.entity
Class RoleAssignment
- java.lang.Object
-
- odata.msgraph.client.entity.Entity
-
- odata.msgraph.client.entity.RoleAssignment
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
- Direct Known Subclasses:
DeviceAndAppManagementRoleAssignment
public class RoleAssignment extends Entity 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 classRoleAssignment.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Stringdescriptionprotected StringdisplayNameprotected List<String>resourceScopesprotected StringresourceScopesNextLink-
Fields inherited from class odata.msgraph.client.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRoleAssignment()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RoleAssignment.BuilderbuilderRoleAssignment()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()Optional<String>getDescription()“Description of the Role Assignment.”Optional<String>getDisplayName()“The display or friendly name of the role Assignment.”com.github.davidmoten.odata.client.CollectionPage<String>getResourceScopes()“List of ids of role scope member security groups.com.github.davidmoten.odata.client.CollectionPage<String>getResourceScopes(com.github.davidmoten.odata.client.HttpRequestOptions options)“List of ids of role scope member security groups.RoleDefinitionRequestgetRoleDefinition()“Role definition this assignment is part of.”com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()StringodataTypeName()RoleAssignmentpatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.voidpostInject(boolean addKeysToContextPath)RoleAssignmentput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).StringtoString()RoleAssignmentwithDescription(String description)Returns an immutable copy ofthiswith just thedescriptionfield changed.RoleAssignmentwithDisplayName(String displayName)Returns an immutable copy ofthiswith just thedisplayNamefield changed.RoleAssignmentwithResourceScopes(List<String> resourceScopes)Returns an immutable copy ofthiswith just theresourceScopesfield changed.RoleAssignmentwithUnmappedField(String name, String value)
-
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classEntity
-
builderRoleAssignment
public static RoleAssignment.Builder builderRoleAssignment()
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 classEntity
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classEntity
-
getDescription
public Optional<String> getDescription()
“Description of the Role Assignment.”- Returns:
- property description
-
withDescription
public RoleAssignment withDescription(String description)
Returns an immutable copy ofthiswith just thedescriptionfield 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.“Description of the Role Assignment.”
- Parameters:
description- new value ofdescriptionfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedescriptionfield changed
-
getDisplayName
public Optional<String> getDisplayName()
“The display or friendly name of the role Assignment.”- Returns:
- property displayName
-
withDisplayName
public RoleAssignment withDisplayName(String displayName)
Returns an immutable copy ofthiswith just thedisplayNamefield 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 display or friendly name of the role Assignment.”
- Parameters:
displayName- new value ofdisplayNamefield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just thedisplayNamefield changed
-
getResourceScopes
public com.github.davidmoten.odata.client.CollectionPage<String> getResourceScopes()
“List of ids of role scope member security groups. These are IDs from Azure Active Directory.”- Returns:
- property resourceScopes
-
withResourceScopes
public RoleAssignment withResourceScopes(List<String> resourceScopes)
Returns an immutable copy ofthiswith just theresourceScopesfield 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.“List of ids of role scope member security groups. These are IDs from Azure Active Directory.”
- Parameters:
resourceScopes- new value ofresourceScopesfield (as defined in service metadata)- Returns:
- immutable copy of
thiswith just theresourceScopesfield changed
-
getResourceScopes
public com.github.davidmoten.odata.client.CollectionPage<String> getResourceScopes(com.github.davidmoten.odata.client.HttpRequestOptions options)
“List of ids of role scope member security groups. These are IDs from Azure Active Directory.”- Parameters:
options- specify connect and read timeouts- Returns:
- property resourceScopes
-
withUnmappedField
public RoleAssignment withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classEntity
-
getRoleDefinition
public RoleDefinitionRequest getRoleDefinition()
“Role definition this assignment is part of.”- Returns:
- navigational property roleDefinition
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classEntity
-
patch
public RoleAssignment patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public RoleAssignment put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
-