Class OAuth2GrantType
java.lang.Object
com.azure.core.util.ExpandableStringEnum<OAuth2GrantType>
com.azure.resourcemanager.apimanagement.models.OAuth2GrantType
- All Implemented Interfaces:
com.azure.core.util.ExpandableEnum<String>
public final class OAuth2GrantType
extends com.azure.core.util.ExpandableStringEnum<OAuth2GrantType>
OAuth2 grant type options.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final OAuth2GrantTypeStatic value AuthorizationCode for OAuth2GrantType.static final OAuth2GrantTypeStatic value ClientCredentials for OAuth2GrantType. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2GrantTypefromString(String name) Creates or finds a OAuth2GrantType from its string representation.static Collection<OAuth2GrantType> values()Gets known OAuth2GrantType values.Methods inherited from class com.azure.core.util.ExpandableStringEnum
equals, fromString, getValue, hashCode, toString, values
-
Field Details
-
AUTHORIZATION_CODE
Static value AuthorizationCode for OAuth2GrantType. -
CLIENT_CREDENTIALS
Static value ClientCredentials for OAuth2GrantType.
-
-
Constructor Details
-
OAuth2GrantType
Deprecated.Use thefromString(String)factory method.Creates a new instance of OAuth2GrantType value.
-
-
Method Details
-
fromString
Creates or finds a OAuth2GrantType from its string representation.- Parameters:
name- a name to look for.- Returns:
- the corresponding OAuth2GrantType.
-
values
Gets known OAuth2GrantType values.- Returns:
- known OAuth2GrantType values.
-
fromString(String)factory method.