Class GsonJsonSerializerBuilder
java.lang.Object
com.azure.core.serializer.json.gson.GsonJsonSerializerBuilder
Fluent builder class that configures and instantiates instances of
GsonJsonSerializer
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Constructs a new instance ofGsonJsonSerializer
with the configurations set in this builder.serializer
(com.google.gson.Gson gson) Sets theGson
that will be used during serialization.
-
Constructor Details
-
GsonJsonSerializerBuilder
public GsonJsonSerializerBuilder()
-
-
Method Details
-
build
Constructs a new instance ofGsonJsonSerializer
with the configurations set in this builder.- Returns:
- A new instance of
GsonJsonSerializer
.
-
serializer
Sets theGson
that will be used during serialization.If this is set to
null
the defaultGson
will be used.- Parameters:
gson
-Gson
that will be used during serialization.- Returns:
- The updated GsonJsonSerializerBuilder class.
-