Enum Class ApiKeyLocation

java.lang.Object
java.lang.Enum<ApiKeyLocation>
com.mulesoft.connectors.a2a.api.model.card.security.ApiKeyLocation
All Implemented Interfaces:
Serializable, Comparable<ApiKeyLocation>, Constable

public enum ApiKeyLocation extends Enum<ApiKeyLocation>
Enumeration of API key locations in HTTP requests.

These values define where the API key can be placed in the request as specified in OpenAPI 3.0 specification.

Since:
1.0.0
  • Enum Constant Details

    • QUERY

      public static final ApiKeyLocation QUERY
      API key is passed as a query parameter.
  • Method Details

    • values

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

      public static ApiKeyLocation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
      Gets the string value of the API key location.
      Returns:
      The string value
    • fromValue

      public static ApiKeyLocation fromValue(String value)
      Gets the ApiKeyLocation from a string value.
      Parameters:
      value - The string value to convert
      Returns:
      The corresponding ApiKeyLocation, or null if not found
    • toString

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