Class CollectionDetails.Builder

java.lang.Object
com.ibm.watson.discovery.v2.model.CollectionDetails.Builder
Enclosing class:
CollectionDetails

public static class CollectionDetails.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String name)
      Instantiates a new builder with required properties.
      Parameters:
      name - the name
  • Method Details

    • build

      public CollectionDetails build()
      Builds a CollectionDetails.
      Returns:
      the new CollectionDetails instance
    • addEnrichments

      public CollectionDetails.Builder addEnrichments​(CollectionEnrichment enrichments)
      Adds an enrichments to enrichments.
      Parameters:
      enrichments - the new enrichments
      Returns:
      the CollectionDetails builder
    • name

      public CollectionDetails.Builder name​(String name)
      Set the name.
      Parameters:
      name - the name
      Returns:
      the CollectionDetails builder
    • description

      public CollectionDetails.Builder description​(String description)
      Set the description.
      Parameters:
      description - the description
      Returns:
      the CollectionDetails builder
    • language

      public CollectionDetails.Builder language​(String language)
      Set the language.
      Parameters:
      language - the language
      Returns:
      the CollectionDetails builder
    • enrichments

      public CollectionDetails.Builder enrichments​(List<CollectionEnrichment> enrichments)
      Set the enrichments. Existing enrichments will be replaced.
      Parameters:
      enrichments - the enrichments
      Returns:
      the CollectionDetails builder