Package org.opensearch.client.json
Interface PlainDeserializable<B>
-
- All Known Implementing Classes:
IndexSettings.Builder,IndexTemplateMapping.Builder,SourceField.Builder,TypeMapping.Builder
public interface PlainDeserializable<B>Base interface to set JSON properties
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Bself()default BwithJson(jakarta.json.stream.JsonParser parser, JsonpMapper mapper)Updates object with newly provided JSON propertiesdefault BwithJson(java.io.InputStream inputStream)Updates object with newly provided JSON propertiesdefault BwithJson(java.io.Reader reader)Updates object with newly provided JSON properties
-
-
-
Method Detail
-
self
B self()
-
withJson
default B withJson(jakarta.json.stream.JsonParser parser, JsonpMapper mapper)
Updates object with newly provided JSON properties- Parameters:
parser- the JsonParser parsermapper- the JsonpMapper mapper used to deserialize values- Returns:
- this object
-
withJson
default B withJson(java.io.InputStream inputStream)
Updates object with newly provided JSON properties- Parameters:
inputStream- the stream to read from- Returns:
- this object
-
withJson
default B withJson(java.io.Reader reader)
Updates object with newly provided JSON properties- Parameters:
reader- the stream to read from- Returns:
- this object
-
-