Class GrantType
- java.lang.Object
-
- com.azure.core.util.ExpandableStringEnum<GrantType>
-
- com.azure.resourcemanager.apimanagement.models.GrantType
-
public final class GrantType extends com.azure.core.util.ExpandableStringEnum<GrantType>
Defines values for GrantType.
-
-
Field Summary
Fields Modifier and Type Field Description static GrantType
AUTHORIZATION_CODE
Static value authorizationCode for GrantType.static GrantType
CLIENT_CREDENTIALS
Static value clientCredentials for GrantType.static GrantType
IMPLICIT
Static value implicit for GrantType.static GrantType
RESOURCE_OWNER_PASSWORD
Static value resourceOwnerPassword for GrantType.
-
Constructor Summary
Constructors Constructor Description GrantType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static GrantType
fromString(String name)
Creates or finds a GrantType from its string representation.static Collection<GrantType>
values()
-
-
-
Field Detail
-
AUTHORIZATION_CODE
public static final GrantType AUTHORIZATION_CODE
Static value authorizationCode for GrantType.
-
IMPLICIT
public static final GrantType IMPLICIT
Static value implicit for GrantType.
-
RESOURCE_OWNER_PASSWORD
public static final GrantType RESOURCE_OWNER_PASSWORD
Static value resourceOwnerPassword for GrantType.
-
CLIENT_CREDENTIALS
public static final GrantType CLIENT_CREDENTIALS
Static value clientCredentials for GrantType.
-
-
Method Detail
-
fromString
public static GrantType fromString(String name)
Creates or finds a GrantType from its string representation.- Parameters:
name
- a name to look for.- Returns:
- the corresponding GrantType.
-
values
public static Collection<GrantType> values()
- Returns:
- known GrantType values.
-
-