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.BuilderaddAnnotatedFields(String annotatedFields)Adds an annotatedFields to annotatedFields.SegmentSettings.BuilderaddSelectorTags(String selectorTags)Adds an selectorTags to selectorTags.SegmentSettings.BuilderannotatedFields(List<String> annotatedFields)Set the annotatedFields.SegmentSettingsbuild()Builds a SegmentSettings.SegmentSettings.Builderenabled(Boolean enabled)Set the enabled.SegmentSettings.BuilderselectorTags(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
-