Class GrantType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<GrantType>
com.azure.resourcemanager.apimanagement.models.GrantType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
Defines values for GrantType.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GrantTypeStatic value authorizationCode for GrantType.static final GrantTypeStatic value clientCredentials for GrantType.static final GrantTypeStatic value implicit for GrantType.static final GrantTypeStatic value resourceOwnerPassword for GrantType. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GrantTypefromString(String name) Creates or finds a GrantType from its string representation.static Collection<GrantType> values()Gets known GrantType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
AUTHORIZATION_CODE
Static value authorizationCode for GrantType. -
IMPLICIT
Static value implicit for GrantType. -
RESOURCE_OWNER_PASSWORD
Static value resourceOwnerPassword for GrantType. -
CLIENT_CREDENTIALS
Static value clientCredentials for GrantType.
-
-
Constructor Details
-
GrantType
Deprecated.Use thefromString(String)factory method.Creates a new instance of GrantType value.
-
-
Method Details
-
fromString
Creates or finds a GrantType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding GrantType.
-
values
Gets known GrantType values.- Returns:
- known GrantType values.
-
fromString(String)factory method.