Class RequestContainer.Builder

  • Enclosing class:
    RequestContainer

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

      • Builder

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

      • build

        public RequestContainer build()
        Builds a RequestContainer.
        Returns:
        the requestContainer
      • addUnstructured

        public RequestContainer.Builder addUnstructured​(UnstructuredContainer unstructured)
        Adds an unstructured to unstructured.
        Parameters:
        unstructured - the new unstructured
        Returns:
        the RequestContainer builder
      • addAnnotatorFlows

        public RequestContainer.Builder addAnnotatorFlows​(AnnotatorFlow annotatorFlows)
        Adds an annotatorFlows to annotatorFlows.
        Parameters:
        annotatorFlows - the new annotatorFlows
        Returns:
        the RequestContainer builder
      • unstructured

        public RequestContainer.Builder unstructured​(java.util.List<UnstructuredContainer> unstructured)
        Set the unstructured. Existing unstructured will be replaced.
        Parameters:
        unstructured - the unstructured
        Returns:
        the RequestContainer builder
      • annotatorFlows

        public RequestContainer.Builder annotatorFlows​(java.util.List<AnnotatorFlow> annotatorFlows)
        Set the annotatorFlows. Existing annotatorFlows will be replaced.
        Parameters:
        annotatorFlows - the annotatorFlows
        Returns:
        the RequestContainer builder