Class CompareDocumentsOptions.Builder
java.lang.Object
com.ibm.watson.compare_comply.v1.model.CompareDocumentsOptions.Builder
- Enclosing class:
- CompareDocumentsOptions
public static class CompareDocumentsOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(InputStream file1, InputStream file2)Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description CompareDocumentsOptionsbuild()Builds a CompareDocumentsOptions.CompareDocumentsOptions.Builderfile1(File file1)Set the file1.CompareDocumentsOptions.Builderfile1(InputStream file1)Set the file1.CompareDocumentsOptions.Builderfile1ContentType(String file1ContentType)Set the file1ContentType.CompareDocumentsOptions.Builderfile1Label(String file1Label)Set the file1Label.CompareDocumentsOptions.Builderfile2(File file2)Set the file2.CompareDocumentsOptions.Builderfile2(InputStream file2)Set the file2.CompareDocumentsOptions.Builderfile2ContentType(String file2ContentType)Set the file2ContentType.CompareDocumentsOptions.Builderfile2Label(String file2Label)Set the file2Label.CompareDocumentsOptions.Buildermodel(String model)Set the model.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
file1- the file1file2- the file2
-
-
Method Details
-
build
Builds a CompareDocumentsOptions.- Returns:
- the new CompareDocumentsOptions instance
-
file1
Set the file1.- Parameters:
file1- the file1- Returns:
- the CompareDocumentsOptions builder
-
file2
Set the file2.- Parameters:
file2- the file2- Returns:
- the CompareDocumentsOptions builder
-
file1ContentType
Set the file1ContentType.- Parameters:
file1ContentType- the file1ContentType- Returns:
- the CompareDocumentsOptions builder
-
file2ContentType
Set the file2ContentType.- Parameters:
file2ContentType- the file2ContentType- Returns:
- the CompareDocumentsOptions builder
-
file1Label
Set the file1Label.- Parameters:
file1Label- the file1Label- Returns:
- the CompareDocumentsOptions builder
-
file2Label
Set the file2Label.- Parameters:
file2Label- the file2Label- Returns:
- the CompareDocumentsOptions builder
-
model
Set the model.- Parameters:
model- the model- Returns:
- the CompareDocumentsOptions builder
-
file1
Set the file1.- Parameters:
file1- the file1- Returns:
- the CompareDocumentsOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-
file2
Set the file2.- Parameters:
file2- the file2- Returns:
- the CompareDocumentsOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-