Class CreateEnrichmentOptions.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.CreateEnrichmentOptions.Builder
- Enclosing class:
- CreateEnrichmentOptions
public static class CreateEnrichmentOptions.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()Instantiates a new builder.Builder(String projectId, CreateEnrichment enrichment)Instantiates a new builder with required properties. -
Method Summary
Modifier and Type Method Description CreateEnrichmentOptionsbuild()Builds a CreateEnrichmentOptions.CreateEnrichmentOptions.Builderenrichment(CreateEnrichment enrichment)Set the enrichment.CreateEnrichmentOptions.Builderfile(File file)Set the file.CreateEnrichmentOptions.Builderfile(InputStream file)Set the file.CreateEnrichmentOptions.BuilderprojectId(String projectId)Set the projectId.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
projectId- the projectIdenrichment- the enrichment
-
-
Method Details
-
build
Builds a CreateEnrichmentOptions.- Returns:
- the new CreateEnrichmentOptions instance
-
projectId
Set the projectId.- Parameters:
projectId- the projectId- Returns:
- the CreateEnrichmentOptions builder
-
enrichment
Set the enrichment.- Parameters:
enrichment- the enrichment- Returns:
- the CreateEnrichmentOptions builder
-
file
Set the file.- Parameters:
file- the file- Returns:
- the CreateEnrichmentOptions builder
-
file
Set the file.- Parameters:
file- the file- Returns:
- the CreateEnrichmentOptions builder
- Throws:
FileNotFoundException- if the file could not be found
-