Package com.veeva.vault.sdk.api.json
Interface JsonObjectBuilder
public interface JsonObjectBuilder
Builds
JsonObject
instances.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns a builtJsonObject
.Sets a property value on the building object.
-
Method Details
-
setValue
Sets a property value on the building object.- Parameters:
name
- the name of the property. Cannot be null.value
- the value to add; must be an instance of a type defined byJsonValueType
- Returns:
- the current builder
-
build
JsonObject build()Returns a builtJsonObject
.You may continue to use the builder after this is called, but any previously added values are cleared out.
- Returns:
- a built
JsonObject
-