Package com.merative.acd.v1.model
Class AnalyzeOptions.Builder
- java.lang.Object
-
- com.merative.acd.v1.model.AnalyzeOptions.Builder
-
- Enclosing class:
- AnalyzeOptions
public static class AnalyzeOptions.Builder extends java.lang.Object
Builder.
-
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzeOptions.Builder
addAnnotatorFlows(AnnotatorFlow annotatorFlows)
Adds an annotatorFlows to annotatorFlows.AnalyzeOptions.Builder
addUnstructured(UnstructuredContainer unstructured)
Adds an unstructured to unstructured.AnalyzeOptions.Builder
annotatorFlows(java.util.List<AnnotatorFlow> annotatorFlows)
Set the annotatorFlows.AnalyzeOptions
build()
Builds a AnalyzeOptions.AnalyzeOptions.Builder
debug(boolean debug)
Set the debug flag.AnalyzeOptions.Builder
returnAnalyzedText(boolean returnAnalyzedText)
Set the returnAnalyzedText.AnalyzeOptions.Builder
unstructured(java.util.List<UnstructuredContainer> unstructured)
Set the unstructured.
-
-
-
Method Detail
-
build
public AnalyzeOptions build()
Builds a AnalyzeOptions.- Returns:
- the analyzeOptions
-
addUnstructured
public AnalyzeOptions.Builder addUnstructured(UnstructuredContainer unstructured)
Adds an unstructured to unstructured.- Parameters:
unstructured
- the new unstructured- Returns:
- the AnalyzeOptions builder
-
addAnnotatorFlows
public AnalyzeOptions.Builder addAnnotatorFlows(AnnotatorFlow annotatorFlows)
Adds an annotatorFlows to annotatorFlows.- Parameters:
annotatorFlows
- the new annotatorFlows- Returns:
- the AnalyzeOptions builder
-
unstructured
public AnalyzeOptions.Builder unstructured(java.util.List<UnstructuredContainer> unstructured)
Set the unstructured. Existing unstructured will be replaced.- Parameters:
unstructured
- the unstructured- Returns:
- the AnalyzeOptions builder
-
annotatorFlows
public AnalyzeOptions.Builder annotatorFlows(java.util.List<AnnotatorFlow> annotatorFlows)
Set the annotatorFlows. Existing annotatorFlows will be replaced.- Parameters:
annotatorFlows
- the annotatorFlows- Returns:
- the AnalyzeOptions builder
-
returnAnalyzedText
public AnalyzeOptions.Builder returnAnalyzedText(boolean returnAnalyzedText)
Set the returnAnalyzedText.- Parameters:
returnAnalyzedText
- whether to return the submitted text- Returns:
- the AnalyzeOptionsbuilder
-
debug
public AnalyzeOptions.Builder debug(boolean debug)
Set the debug flag.- Parameters:
debug
- enable analyze debug flag- Returns:
- the AnalyzeOptionsbuilder
-
-