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