public static class CompareDocumentsOptions.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(InputStream file1,
InputStream file2)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
CompareDocumentsOptions |
build()
Builds a CompareDocumentsOptions.
|
CompareDocumentsOptions.Builder |
file1(File file1)
Set the file1.
|
CompareDocumentsOptions.Builder |
file1(InputStream file1)
Set the file1.
|
CompareDocumentsOptions.Builder |
file1ContentType(String file1ContentType)
Set the file1ContentType.
|
CompareDocumentsOptions.Builder |
file1Label(String file1Label)
Set the file1Label.
|
CompareDocumentsOptions.Builder |
file2(File file2)
Set the file2.
|
CompareDocumentsOptions.Builder |
file2(InputStream file2)
Set the file2.
|
CompareDocumentsOptions.Builder |
file2ContentType(String file2ContentType)
Set the file2ContentType.
|
CompareDocumentsOptions.Builder |
file2Label(String file2Label)
Set the file2Label.
|
CompareDocumentsOptions.Builder |
model(String model)
Set the model.
|
public Builder()
public Builder(InputStream file1, InputStream file2)
file1
- the file1file2
- the file2public CompareDocumentsOptions build()
public CompareDocumentsOptions.Builder file1(InputStream file1)
file1
- the file1public CompareDocumentsOptions.Builder file2(InputStream file2)
file2
- the file2public CompareDocumentsOptions.Builder file1ContentType(String file1ContentType)
file1ContentType
- the file1ContentTypepublic CompareDocumentsOptions.Builder file2ContentType(String file2ContentType)
file2ContentType
- the file2ContentTypepublic CompareDocumentsOptions.Builder file1Label(String file1Label)
file1Label
- the file1Labelpublic CompareDocumentsOptions.Builder file2Label(String file2Label)
file2Label
- the file2Labelpublic CompareDocumentsOptions.Builder model(String model)
model
- the modelpublic CompareDocumentsOptions.Builder file1(File file1) throws FileNotFoundException
file1
- the file1FileNotFoundException
- if the file could not be foundpublic CompareDocumentsOptions.Builder file2(File file2) throws FileNotFoundException
file2
- the file2FileNotFoundException
- if the file could not be foundCopyright © 2021 IBM Cloud. All rights reserved.