public static class CompareDocumentsOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CompareDocumentsOptions.Builder()
Instantiates a new builder.
|
CompareDocumentsOptions.Builder(java.io.InputStream file1,
java.io.InputStream file2)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CompareDocumentsOptions |
build()
Builds a CompareDocumentsOptions.
|
CompareDocumentsOptions.Builder |
file1(java.io.File file1)
Set the file1.
|
CompareDocumentsOptions.Builder |
file1(java.io.InputStream file1)
Set the file1.
|
CompareDocumentsOptions.Builder |
file1ContentType(java.lang.String file1ContentType)
Set the file1ContentType.
|
CompareDocumentsOptions.Builder |
file1Filename(java.lang.String file1Filename)
Set the file1Filename.
|
CompareDocumentsOptions.Builder |
file1Label(java.lang.String file1Label)
Set the file1Label.
|
CompareDocumentsOptions.Builder |
file2(java.io.File file2)
Set the file2.
|
CompareDocumentsOptions.Builder |
file2(java.io.InputStream file2)
Set the file2.
|
CompareDocumentsOptions.Builder |
file2ContentType(java.lang.String file2ContentType)
Set the file2ContentType.
|
CompareDocumentsOptions.Builder |
file2Filename(java.lang.String file2Filename)
Set the file2Filename.
|
CompareDocumentsOptions.Builder |
file2Label(java.lang.String file2Label)
Set the file2Label.
|
CompareDocumentsOptions.Builder |
modelId(java.lang.String modelId)
Set the modelId.
|
public CompareDocumentsOptions.Builder()
public CompareDocumentsOptions.Builder(java.io.InputStream file1, java.io.InputStream file2)
file1
- the file1file2
- the file2public CompareDocumentsOptions build()
public CompareDocumentsOptions.Builder file1(java.io.InputStream file1)
file1
- the file1public CompareDocumentsOptions.Builder file1Filename(java.lang.String file1Filename)
file1Filename
- the file1Filenamepublic CompareDocumentsOptions.Builder file2(java.io.InputStream file2)
file2
- the file2public CompareDocumentsOptions.Builder file2Filename(java.lang.String file2Filename)
file2Filename
- the file2Filenamepublic CompareDocumentsOptions.Builder file1Label(java.lang.String file1Label)
file1Label
- the file1Labelpublic CompareDocumentsOptions.Builder file2Label(java.lang.String file2Label)
file2Label
- the file2Labelpublic CompareDocumentsOptions.Builder modelId(java.lang.String modelId)
modelId
- the modelIdpublic CompareDocumentsOptions.Builder file1ContentType(java.lang.String file1ContentType)
file1ContentType
- the file1ContentTypepublic CompareDocumentsOptions.Builder file2ContentType(java.lang.String file2ContentType)
file2ContentType
- the file2ContentTypepublic CompareDocumentsOptions.Builder file1(java.io.File file1) throws java.io.FileNotFoundException
file1
- the file1java.io.FileNotFoundException
- if the file could not be foundpublic CompareDocumentsOptions.Builder file2(java.io.File file2) throws java.io.FileNotFoundException
file2
- the file2java.io.FileNotFoundException
- if the file could not be found