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