public static class AddGrammarOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String customizationId,
String grammarName,
InputStream grammarFile,
String contentType)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddGrammarOptions.Builder |
allowOverwrite(Boolean allowOverwrite)
Set the allowOverwrite.
|
AddGrammarOptions |
build()
Builds a AddGrammarOptions.
|
AddGrammarOptions.Builder |
contentType(String contentType)
Set the contentType.
|
AddGrammarOptions.Builder |
customizationId(String customizationId)
Set the customizationId.
|
AddGrammarOptions.Builder |
grammarFile(File grammarFile)
Set the grammarFile.
|
AddGrammarOptions.Builder |
grammarFile(InputStream grammarFile)
Set the grammarFile.
|
AddGrammarOptions.Builder |
grammarName(String grammarName)
Set the grammarName.
|
public Builder()
public Builder(String customizationId, String grammarName, InputStream grammarFile, String contentType)
customizationId
- the customizationIdgrammarName
- the grammarNamegrammarFile
- the grammarFilecontentType
- the contentTypepublic AddGrammarOptions build()
public AddGrammarOptions.Builder customizationId(String customizationId)
customizationId
- the customizationIdpublic AddGrammarOptions.Builder grammarName(String grammarName)
grammarName
- the grammarNamepublic AddGrammarOptions.Builder grammarFile(InputStream grammarFile)
grammarFile
- the grammarFilepublic AddGrammarOptions.Builder contentType(String contentType)
contentType
- the contentTypepublic AddGrammarOptions.Builder allowOverwrite(Boolean allowOverwrite)
allowOverwrite
- the allowOverwritepublic AddGrammarOptions.Builder grammarFile(File grammarFile) throws FileNotFoundException
grammarFile
- the grammarFileFileNotFoundException
- if the file could not be foundCopyright © 2024 IBM Cloud. All rights reserved.