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>
Defines values for PrincipalType.
-
-
Field Summary
Fields Modifier and Type Field Description static PrincipalTypeFOREIGN_GROUPStatic value ForeignGroup for PrincipalType.static PrincipalTypeGROUPStatic value Group for PrincipalType.static PrincipalTypeSERVICE_PRINCIPALStatic value ServicePrincipal for PrincipalType.static PrincipalTypeUSERStatic value User for PrincipalType.
-
Constructor Summary
Constructors Constructor Description PrincipalType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrincipalTypefromString(String name)Creates or finds a PrincipalType from its string representation.static Collection<PrincipalType>values()
-
-
-
Field Detail
-
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.
-
-
Method Detail
-
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()
- Returns:
- known PrincipalType values.
-
-