Class RoleDefinition

java.lang.Object
com.microsoft.graph.models.Entity
com.microsoft.graph.models.RoleDefinition
All Implemented Interfaces:
com.microsoft.graph.serializer.IJsonBackedObject
Direct Known Subclasses:
DeviceAndAppManagementRoleDefinition

public class RoleDefinition extends Entity implements com.microsoft.graph.serializer.IJsonBackedObject
The class for the Role Definition.
  • Field Details

    • description

      @SerializedName(value="description", alternate="Description") @Expose @Nullable public String description
      The Description. Description of the Role definition.
    • displayName

      @SerializedName(value="displayName", alternate="DisplayName") @Expose @Nullable public String displayName
      The Display Name. Display Name of the Role definition.
    • isBuiltIn

      @SerializedName(value="isBuiltIn", alternate="IsBuiltIn") @Expose @Nullable public Boolean isBuiltIn
      The Is Built In. Type of Role. Set to True if it is built-in, or set to False if it is a custom role definition.
    • rolePermissions

      @SerializedName(value="rolePermissions", alternate="RolePermissions") @Expose @Nullable public List<RolePermission> rolePermissions
      The Role Permissions. List of Role Permissions this role is allowed to perform. These must match the actionName that is defined as part of the rolePermission.
    • roleAssignments

      @SerializedName(value="roleAssignments", alternate="RoleAssignments") @Expose @Nullable public RoleAssignmentCollectionPage roleAssignments
      The Role Assignments. List of Role assignments for this role definition.
  • Constructor Details

    • RoleDefinition

      public RoleDefinition()
  • Method Details

    • setRawObject

      public void setRawObject(@Nonnull com.microsoft.graph.serializer.ISerializer serializer, @Nonnull com.google.gson.JsonObject json)
      Sets the raw JSON object
      Specified by:
      setRawObject in interface com.microsoft.graph.serializer.IJsonBackedObject
      Overrides:
      setRawObject in class Entity
      Parameters:
      serializer - the serializer
      json - the JSON object to set this object to