Class JacksonJsonSerializerBuilder
java.lang.Object
com.azure.core.serializer.json.jackson.JacksonJsonSerializerBuilder
Fluent builder class that configures and instantiates instances of
JacksonJsonSerializer.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Constructs a new instance ofJacksonJsonSerializerwith the configurations set in this builder.serializer(ObjectMapper objectMapper) Sets theObjectMapperthat will be used during serialization.
-
Constructor Details
-
JacksonJsonSerializerBuilder
public JacksonJsonSerializerBuilder()
-
-
Method Details
-
build
Constructs a new instance ofJacksonJsonSerializerwith the configurations set in this builder.- Returns:
- A new instance of
JacksonJsonSerializer.
-
serializer
Sets theObjectMapperthat will be used during serialization.If this is set to
nullJacksonAdapter.serializer()with default visibility and non-null inclusion will be used as the default.- Parameters:
objectMapper-ObjectMapperthat will be used during serialization.- Returns:
- The updated JacksonJsonSerializerBuilder class.
-