Class ConvertToHtmlOptions.Builder
java.lang.Object
com.ibm.watson.compare_comply.v1.model.ConvertToHtmlOptions.Builder
- Enclosing class:
- ConvertToHtmlOptions
public static class ConvertToHtmlOptions.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 ConvertToHtmlOptionsbuild()Builds a ConvertToHtmlOptions.ConvertToHtmlOptions.Builderfile(File file)Set the file.ConvertToHtmlOptions.Builderfile(InputStream file)Set the file.ConvertToHtmlOptions.BuilderfileContentType(String fileContentType)Set the fileContentType.ConvertToHtmlOptions.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 ConvertToHtmlOptions.- Returns:
- the new ConvertToHtmlOptions instance
-
file
Set the file.- Parameters:
file- the file- Returns:
- the ConvertToHtmlOptions builder
-
fileContentType
Set the fileContentType.- Parameters:
fileContentType- the fileContentType- Returns:
- the ConvertToHtmlOptions builder
-
model
Set the model.- Parameters:
model- the model- Returns:
- the ConvertToHtmlOptions builder
-
file
Set the file.- Parameters:
file- the file- Returns:
- the ConvertToHtmlOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-