Package com.oracle.bmc.http
Enum Serialization
- java.lang.Object
-
- java.lang.Enum<Serialization>
-
- com.oracle.bmc.http.Serialization
-
- All Implemented Interfaces:
Serializable,Comparable<Serialization>
public enum Serialization extends Enum<Serialization>
Serialization gives access to the serializer/deserializer used by the OCI Java SDK.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()Returns the ObjectMapper used to handle JSON requests.static SerializationvalueOf(String name)Returns the enum constant of this type with the specified name.static Serialization[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Method Detail
-
values
public static Serialization[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Serialization c : Serialization.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Serialization 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 nameNullPointerException- if the argument is null
-
getObjectMapper
public static com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Returns the ObjectMapper used to handle JSON requests.Exposed only for internal use.
- Returns:
- The ObjectMapper used.
-
-