Enum Class ApiKeyLocation
- All Implemented Interfaces:
Serializable,Comparable<ApiKeyLocation>,Constable
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
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ApiKeyLocationGets the ApiKeyLocation from a string value.getValue()Gets the string value of the API key location.toString()static ApiKeyLocationReturns the enum constant of this class with the specified name.static ApiKeyLocation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
QUERY
API key is passed as a query parameter. -
HEADER
API key is passed as a header parameter. -
COOKIE
API key is passed as a cookie parameter.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getValue
Gets the string value of the API key location.- Returns:
- The string value
-
fromValue
Gets the ApiKeyLocation from a string value.- Parameters:
value- The string value to convert- Returns:
- The corresponding ApiKeyLocation, or null if not found
-
toString
- Overrides:
toStringin classEnum<ApiKeyLocation>
-