Class ClassifyElementsOptions.Builder
java.lang.Object
com.ibm.watson.compare_comply.v1.model.ClassifyElementsOptions.Builder
- Enclosing class:
- ClassifyElementsOptions
public static class ClassifyElementsOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder.Builder(InputStream file)
Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description ClassifyElementsOptions
build()
Builds a ClassifyElementsOptions.ClassifyElementsOptions.Builder
file(File file)
Set the file.ClassifyElementsOptions.Builder
file(InputStream file)
Set the file.ClassifyElementsOptions.Builder
fileContentType(String fileContentType)
Set the fileContentType.ClassifyElementsOptions.Builder
model(String model)
Set the model.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
file
- the file
-
-
Method Details
-
build
Builds a ClassifyElementsOptions.- Returns:
- the new ClassifyElementsOptions instance
-
file
Set the file.- Parameters:
file
- the file- Returns:
- the ClassifyElementsOptions builder
-
fileContentType
Set the fileContentType.- Parameters:
fileContentType
- the fileContentType- Returns:
- the ClassifyElementsOptions builder
-
model
Set the model.- Parameters:
model
- the model- Returns:
- the ClassifyElementsOptions builder
-
file
Set the file.- Parameters:
file
- the file- Returns:
- the ClassifyElementsOptions builder
- Throws:
FileNotFoundException
- if the file could not be found
-