java.lang.Object
com.azure.core.util.ExpandableStringEnum<TokenType>
com.azure.resourcemanager.automation.models.TokenType

public final class TokenType extends com.azure.core.util.ExpandableStringEnum<TokenType>
The token type. Must be either PersonalAccessToken or Oauth.
  • Field Details

    • PERSONAL_ACCESS_TOKEN

      public static final TokenType PERSONAL_ACCESS_TOKEN
      Static value PersonalAccessToken for TokenType.
    • OAUTH

      public static final TokenType OAUTH
      Static value Oauth for TokenType.
  • Constructor Details

    • TokenType

      public TokenType()
  • Method Details

    • fromString

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

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