Class MicrosoftGraphScopedRoleMembership

java.lang.Object
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphEntity
com.azure.resourcemanager.authorization.fluent.models.MicrosoftGraphScopedRoleMembership

public final class MicrosoftGraphScopedRoleMembership extends MicrosoftGraphEntity
scopedRoleMembership.
  • Constructor Details

    • MicrosoftGraphScopedRoleMembership

      public MicrosoftGraphScopedRoleMembership()
      Creates an instance of MicrosoftGraphScopedRoleMembership class.
  • Method Details

    • administrativeUnitId

      public String administrativeUnitId()
      Get the administrativeUnitId property: Unique identifier for the administrative unit that the directory role is scoped to.
      Returns:
      the administrativeUnitId value.
    • withAdministrativeUnitId

      public MicrosoftGraphScopedRoleMembership withAdministrativeUnitId(String administrativeUnitId)
      Set the administrativeUnitId property: Unique identifier for the administrative unit that the directory role is scoped to.
      Parameters:
      administrativeUnitId - the administrativeUnitId value to set.
      Returns:
      the MicrosoftGraphScopedRoleMembership object itself.
    • roleId

      public String roleId()
      Get the roleId property: Unique identifier for the directory role that the member is in.
      Returns:
      the roleId value.
    • withRoleId

      public MicrosoftGraphScopedRoleMembership withRoleId(String roleId)
      Set the roleId property: Unique identifier for the directory role that the member is in.
      Parameters:
      roleId - the roleId value to set.
      Returns:
      the MicrosoftGraphScopedRoleMembership object itself.
    • roleMemberInfo

      public MicrosoftGraphIdentity roleMemberInfo()
      Get the roleMemberInfo property: identity.
      Returns:
      the roleMemberInfo value.
    • withRoleMemberInfo

      public MicrosoftGraphScopedRoleMembership withRoleMemberInfo(MicrosoftGraphIdentity roleMemberInfo)
      Set the roleMemberInfo property: identity.
      Parameters:
      roleMemberInfo - the roleMemberInfo value to set.
      Returns:
      the MicrosoftGraphScopedRoleMembership object itself.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: scopedRoleMembership.
      Overrides:
      additionalProperties in class MicrosoftGraphEntity
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public MicrosoftGraphScopedRoleMembership withAdditionalProperties(Map<String,Object> additionalProperties)
      Set the additionalProperties property: scopedRoleMembership.
      Overrides:
      withAdditionalProperties in class MicrosoftGraphEntity
      Parameters:
      additionalProperties - the additionalProperties value to set.
      Returns:
      the MicrosoftGraphScopedRoleMembership object itself.
    • withId

      Set the id property: Read-only.
      Overrides:
      withId in class MicrosoftGraphEntity
      Parameters:
      id - the id value to set.
      Returns:
      the MicrosoftGraphEntity object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class MicrosoftGraphEntity
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.