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 Type
    Method
    Description
     
    default B
    withJson(jakarta.json.stream.JsonParser parser, JsonpMapper mapper)
    Updates object with newly provided JSON properties
    default B
    withJson(InputStream inputStream)
    Updates object with newly provided JSON properties
    default B
    withJson(Reader reader)
    Updates object with newly provided JSON properties
  • Method Details

    • 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 parser
      mapper - the JsonpMapper mapper used to deserialize values
      Returns:
      this object
    • withJson

      default B withJson(InputStream inputStream)
      Updates object with newly provided JSON properties
      Parameters:
      inputStream - the stream to read from
      Returns:
      this object
    • withJson

      default B withJson(Reader reader)
      Updates object with newly provided JSON properties
      Parameters:
      reader - the stream to read from
      Returns:
      this object