Class ClassifyOptions.Builder

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

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

    • Builder

      public Builder()
      Instantiates a new builder.
    • Builder

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

    • build

      public ClassifyOptions build()
      Builds a ClassifyOptions.
      Returns:
      the new ClassifyOptions instance
    • classifierId

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

      public ClassifyOptions.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the ClassifyOptions builder