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