Enum AuthenticationMode

java.lang.Object
java.lang.Enum<AuthenticationMode>
com.azure.resourcemanager.batch.models.AuthenticationMode
All Implemented Interfaces:
Serializable, Comparable<AuthenticationMode>, java.lang.constant.Constable

public enum AuthenticationMode extends Enum<AuthenticationMode>
The authentication mode for the Batch account.
  • Enum Constant Details

    • SHARED_KEY

      public static final AuthenticationMode SHARED_KEY
      Enum value SharedKey.
    • AAD

      public static final AuthenticationMode AAD
      Enum value AAD.
    • TASK_AUTHENTICATION_TOKEN

      public static final AuthenticationMode TASK_AUTHENTICATION_TOKEN
      Enum value TaskAuthenticationToken.
  • Method Details

    • values

      public static AuthenticationMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AuthenticationMode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • fromString

      public static AuthenticationMode fromString(String value)
      Parses a serialized value to a AuthenticationMode instance.
      Parameters:
      value - the serialized value to parse.
      Returns:
      the parsed AuthenticationMode object, or null if unable to parse.
    • toString

      public String toString()
      Overrides:
      toString in class Enum<AuthenticationMode>