public static class AddGrammarOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String customizationId,
java.lang.String grammarName,
java.io.InputStream grammarFile,
java.lang.String contentType)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
AddGrammarOptions.Builder |
allowOverwrite(java.lang.Boolean allowOverwrite)
Set the allowOverwrite.
|
AddGrammarOptions |
build()
Builds a AddGrammarOptions.
|
AddGrammarOptions.Builder |
contentType(java.lang.String contentType)
Set the contentType.
|
AddGrammarOptions.Builder |
customizationId(java.lang.String customizationId)
Set the customizationId.
|
AddGrammarOptions.Builder |
grammarFile(java.io.File grammarFile)
Set the grammarFile.
|
AddGrammarOptions.Builder |
grammarFile(java.io.InputStream grammarFile)
Set the grammarFile.
|
AddGrammarOptions.Builder |
grammarName(java.lang.String grammarName)
Set the grammarName.
|
public Builder()
public Builder(java.lang.String customizationId, java.lang.String grammarName, java.io.InputStream grammarFile, java.lang.String contentType)
customizationId
- the customizationIdgrammarName
- the grammarNamegrammarFile
- the grammarFilecontentType
- the contentTypepublic AddGrammarOptions build()
public AddGrammarOptions.Builder customizationId(java.lang.String customizationId)
customizationId
- the customizationIdpublic AddGrammarOptions.Builder grammarName(java.lang.String grammarName)
grammarName
- the grammarNamepublic AddGrammarOptions.Builder grammarFile(java.io.InputStream grammarFile)
grammarFile
- the grammarFilepublic AddGrammarOptions.Builder contentType(java.lang.String contentType)
contentType
- the contentTypepublic AddGrammarOptions.Builder allowOverwrite(java.lang.Boolean allowOverwrite)
allowOverwrite
- the allowOverwritepublic AddGrammarOptions.Builder grammarFile(java.io.File grammarFile) throws java.io.FileNotFoundException
grammarFile
- the grammarFilejava.io.FileNotFoundException
- if the file could not be found