public static class TranslateDocumentOptions.Builder
extends java.lang.Object
| Constructor and Description | 
|---|
| Builder()Instantiates a new builder. | 
| Builder(java.io.InputStream file,
       java.lang.String filename)Instantiates a new builder with required properties. | 
| Modifier and Type | Method and Description | 
|---|---|
| TranslateDocumentOptions | build()Builds a TranslateDocumentOptions. | 
| TranslateDocumentOptions.Builder | documentId(java.lang.String documentId)Set the documentId. | 
| TranslateDocumentOptions.Builder | file(java.io.File file)Set the file. | 
| TranslateDocumentOptions.Builder | file(java.io.InputStream file)Set the file. | 
| TranslateDocumentOptions.Builder | fileContentType(java.lang.String fileContentType)Set the fileContentType. | 
| TranslateDocumentOptions.Builder | filename(java.lang.String filename)Set the filename. | 
| TranslateDocumentOptions.Builder | modelId(java.lang.String modelId)Set the modelId. | 
| TranslateDocumentOptions.Builder | source(java.lang.String source)Set the source. | 
| TranslateDocumentOptions.Builder | target(java.lang.String target)Set the target. | 
public Builder()
public Builder(java.io.InputStream file,
               java.lang.String filename)
file - the filefilename - the filenamepublic TranslateDocumentOptions build()
public TranslateDocumentOptions.Builder file(java.io.InputStream file)
file - the filepublic TranslateDocumentOptions.Builder filename(java.lang.String filename)
filename - the filenamepublic TranslateDocumentOptions.Builder fileContentType(java.lang.String fileContentType)
fileContentType - the fileContentTypepublic TranslateDocumentOptions.Builder modelId(java.lang.String modelId)
modelId - the modelIdpublic TranslateDocumentOptions.Builder source(java.lang.String source)
source - the sourcepublic TranslateDocumentOptions.Builder target(java.lang.String target)
target - the targetpublic TranslateDocumentOptions.Builder documentId(java.lang.String documentId)
documentId - the documentIdpublic TranslateDocumentOptions.Builder file(java.io.File file) throws java.io.FileNotFoundException
file - the filejava.io.FileNotFoundException - if the file could not be found