Enum Class OciApiFormat
- All Implemented Interfaces:
Serializable,Comparable<OciApiFormat>,Constable
OCI Generative AI API formats currently recognized by the SDK.
This enum is used for creation and update validation. Existing database profile metadata may contain a newer format and is preserved as a string during hydration.
- See Also:
-
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 OciApiFormatParses an OCI API format value.getValue()Returns the DBMS_CLOUD_AI OCI API format value.static OciApiFormatReturns the enum constant of this class with the specified name.static OciApiFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
COHERE
OCI endpoint uses Cohere-compatible request/response format. -
GENERIC
OCI endpoint uses the generic chat API format.
-
-
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
Returns the DBMS_CLOUD_AI OCI API format value.- Returns:
- OCI API format value
-
fromValue
Parses an OCI API format value.- Parameters:
value- OCI API format supplied to a creation or update builder- Returns:
- matching OCI API format, or
nullwhen input is null/blank - Throws:
IllegalArgumentException- when value is not a supported OCI API format
-