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 ClassifyElementsOptionsbuild()Builds a ClassifyElementsOptions.ClassifyElementsOptions.Builderfile(File file)Set the file.ClassifyElementsOptions.Builderfile(InputStream file)Set the file.ClassifyElementsOptions.BuilderfileContentType(String fileContentType)Set the fileContentType.ClassifyElementsOptions.Buildermodel(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
-