Class ClassifyCollectionOptions.Builder

java.lang.Object
com.ibm.watson.natural_language_classifier.v1.model.ClassifyCollectionOptions.Builder
Enclosing class:
ClassifyCollectionOptions

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

      public Builder​(String classifierId, List<ClassifyInput> collection)
      Instantiates a new builder with required properties.
      Parameters:
      classifierId - the classifierId
      collection - the collection
  • Method Details

    • build

      public ClassifyCollectionOptions build()
      Builds a ClassifyCollectionOptions.
      Returns:
      the new ClassifyCollectionOptions instance
    • addClassifyInput

      public ClassifyCollectionOptions.Builder addClassifyInput​(ClassifyInput classifyInput)
      Adds an classifyInput to collection.
      Parameters:
      classifyInput - the new classifyInput
      Returns:
      the ClassifyCollectionOptions builder
    • classifierId

      public ClassifyCollectionOptions.Builder classifierId​(String classifierId)
      Set the classifierId.
      Parameters:
      classifierId - the classifierId
      Returns:
      the ClassifyCollectionOptions builder
    • collection

      public ClassifyCollectionOptions.Builder collection​(List<ClassifyInput> collection)
      Set the collection. Existing collection will be replaced.
      Parameters:
      collection - the collection
      Returns:
      the ClassifyCollectionOptions builder