Class UnstructuredContainer.Builder

  • Enclosing class:
    UnstructuredContainer

    public static class UnstructuredContainer.Builder
    extends java.lang.Object
    Builder.
    • Constructor Detail

      • Builder

        public Builder()
        Instantiates a new builder.
    • Method Detail

      • build

        public UnstructuredContainer build()
        Builds a UnstructuredContainer.
        Returns:
        the unstructuredContainer
      • text

        public UnstructuredContainer.Builder text​(java.lang.String text)
        Set the text.
        Parameters:
        text - the text
        Returns:
        the UnstructuredContainer builder
      • id

        public UnstructuredContainer.Builder id​(java.lang.String id)
        Set the id.
        Parameters:
        id - the id
        Returns:
        the UnstructuredContainer builder
      • type

        public UnstructuredContainer.Builder type​(java.lang.String type)
        Set the type.
        Parameters:
        type - the type
        Returns:
        the UnstructuredContainer builder
      • metadata

        public UnstructuredContainer.Builder metadata​(java.util.Map<java.lang.String,​java.util.Map> metadata)
        Set the metadata.
        Parameters:
        metadata - the metadata
        Returns:
        the UnstructuredContainer builder