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 Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description SegmentSettings.Builder
addAnnotatedFields(String annotatedFields)
Adds an annotatedFields to annotatedFields.SegmentSettings.Builder
addSelectorTags(String selectorTags)
Adds an selectorTags to selectorTags.SegmentSettings.Builder
annotatedFields(List<String> annotatedFields)
Set the annotatedFields.SegmentSettings
build()
Builds a SegmentSettings.SegmentSettings.Builder
enabled(Boolean enabled)
Set the enabled.SegmentSettings.Builder
selectorTags(List<String> selectorTags)
Set the selectorTags.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a SegmentSettings.- Returns:
- the new SegmentSettings instance
-
addSelectorTags
Adds an selectorTags to selectorTags.- Parameters:
selectorTags
- the new selectorTags- Returns:
- the SegmentSettings builder
-
addAnnotatedFields
Adds an annotatedFields to annotatedFields.- Parameters:
annotatedFields
- the new annotatedFields- Returns:
- the SegmentSettings builder
-
enabled
Set the enabled.- Parameters:
enabled
- the enabled- Returns:
- the SegmentSettings builder
-
selectorTags
Set the selectorTags. Existing selectorTags will be replaced.- Parameters:
selectorTags
- the selectorTags- Returns:
- the SegmentSettings builder
-
annotatedFields
Set the annotatedFields. Existing annotatedFields will be replaced.- Parameters:
annotatedFields
- the annotatedFields- Returns:
- the SegmentSettings builder
-