public static class AnalyzeOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and 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.
|
public AnalyzeOptions build()
public AnalyzeOptions.Builder addUnstructured(UnstructuredContainer unstructured)
unstructured
- the new unstructuredpublic AnalyzeOptions.Builder addAnnotatorFlows(AnnotatorFlow annotatorFlows)
annotatorFlows
- the new annotatorFlowspublic AnalyzeOptions.Builder unstructured(java.util.List<UnstructuredContainer> unstructured)
unstructured
- the unstructuredpublic AnalyzeOptions.Builder annotatorFlows(java.util.List<AnnotatorFlow> annotatorFlows)
annotatorFlows
- the annotatorFlowspublic AnalyzeOptions.Builder returnAnalyzedText(boolean returnAnalyzedText)
returnAnalyzedText
- whether to return the submitted textpublic AnalyzeOptions.Builder debug(boolean debug)
debug
- enable analyze debug flagCopyright © 2022 IBM Cloud. All rights reserved.