public static class AnalyzeWithFlowOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String flowId)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AnalyzeWithFlowOptions |
build()
Builds a AnalyzeWithFlowOptions.
|
AnalyzeWithFlowOptions.Builder |
contentType(java.lang.String contentType)
Set the flowId.
|
AnalyzeWithFlowOptions.Builder |
debug(boolean debug)
Set the debug.
|
AnalyzeWithFlowOptions.Builder |
flowId(java.lang.String flowId)
Set the flowId.
|
AnalyzeWithFlowOptions.Builder |
request(RequestContainer request)
Set the request.
|
AnalyzeWithFlowOptions.Builder |
returnAnalyzedText(boolean returnAnalyzedText)
Set the returnAnalyzedText.
|
AnalyzeWithFlowOptions.Builder |
text(java.lang.String text)
Set the text.
|
public Builder()
public Builder(java.lang.String flowId)
flowId
- the flowIdpublic AnalyzeWithFlowOptions build()
public AnalyzeWithFlowOptions.Builder contentType(java.lang.String contentType)
contentType
- the content type for requestpublic AnalyzeWithFlowOptions.Builder flowId(java.lang.String flowId)
flowId
- the flowIdpublic AnalyzeWithFlowOptions.Builder text(java.lang.String text)
text
- the textpublic AnalyzeWithFlowOptions.Builder request(RequestContainer request)
request
- the requestpublic AnalyzeWithFlowOptions.Builder returnAnalyzedText(boolean returnAnalyzedText)
returnAnalyzedText
- whether to return the submitted textpublic AnalyzeWithFlowOptions.Builder debug(boolean debug)
debug
- enable analyze debug flagCopyright © 2022 IBM Cloud. All rights reserved.