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.ObjectBuilder.
-
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnalyzeOptions.BuilderaddAnnotatorFlows(AnnotatorFlow annotatorFlows)Adds an annotatorFlows to annotatorFlows.AnalyzeOptions.BuilderaddUnstructured(UnstructuredContainer unstructured)Adds an unstructured to unstructured.AnalyzeOptions.BuilderannotatorFlows(java.util.List<AnnotatorFlow> annotatorFlows)Set the annotatorFlows.AnalyzeOptionsbuild()Builds a AnalyzeOptions.AnalyzeOptions.Builderdebug(boolean debug)Set the debug flag.AnalyzeOptions.BuilderreturnAnalyzedText(boolean returnAnalyzedText)Set the returnAnalyzedText.AnalyzeOptions.Builderunstructured(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
-
-