Class SegmentSettings.Builder

java.lang.Object
com.ibm.watson.discovery.v1.model.SegmentSettings.Builder
Enclosing class:
SegmentSettings

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

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public SegmentSettings build()
      Builds a SegmentSettings.
      Returns:
      the new SegmentSettings instance
    • addSelectorTags

      public SegmentSettings.Builder addSelectorTags​(String selectorTags)
      Adds an selectorTags to selectorTags.
      Parameters:
      selectorTags - the new selectorTags
      Returns:
      the SegmentSettings builder
    • addAnnotatedFields

      public SegmentSettings.Builder addAnnotatedFields​(String annotatedFields)
      Adds an annotatedFields to annotatedFields.
      Parameters:
      annotatedFields - the new annotatedFields
      Returns:
      the SegmentSettings builder
    • enabled

      public SegmentSettings.Builder enabled​(Boolean enabled)
      Set the enabled.
      Parameters:
      enabled - the enabled
      Returns:
      the SegmentSettings builder
    • selectorTags

      public SegmentSettings.Builder selectorTags​(List<String> selectorTags)
      Set the selectorTags. Existing selectorTags will be replaced.
      Parameters:
      selectorTags - the selectorTags
      Returns:
      the SegmentSettings builder
    • annotatedFields

      public SegmentSettings.Builder annotatedFields​(List<String> annotatedFields)
      Set the annotatedFields. Existing annotatedFields will be replaced.
      Parameters:
      annotatedFields - the annotatedFields
      Returns:
      the SegmentSettings builder