Class PrincipalType

java.lang.Object
com.azure.core.util.ExpandableStringEnum<PrincipalType>
com.azure.resourcemanager.authorization.models.PrincipalType

public final class PrincipalType extends com.azure.core.util.ExpandableStringEnum<PrincipalType>
The principal type of the assigned principal ID.
  • Field Details

    • USER

      public static final PrincipalType USER
      Static value User for PrincipalType.
    • GROUP

      public static final PrincipalType GROUP
      Static value Group for PrincipalType.
    • SERVICE_PRINCIPAL

      public static final PrincipalType SERVICE_PRINCIPAL
      Static value ServicePrincipal for PrincipalType.
    • FOREIGN_GROUP

      public static final PrincipalType FOREIGN_GROUP
      Static value ForeignGroup for PrincipalType.
    • DEVICE

      public static final PrincipalType DEVICE
      Static value Device for PrincipalType.
  • Constructor Details

    • PrincipalType

      @Deprecated public PrincipalType()
      Deprecated.
      Use the fromString(String) factory method.
      Creates a new instance of PrincipalType value.
  • Method Details

    • fromString

      public static PrincipalType fromString(String name)
      Creates or finds a PrincipalType from its string representation.
      Parameters:
      name - a name to look for.
      Returns:
      the corresponding PrincipalType.
    • values

      public static Collection<PrincipalType> values()
      Gets known PrincipalType values.
      Returns:
      known PrincipalType values.