Class MlFilter.Builder
java.lang.Object
org.elasticsearch.client.ml.job.config.MlFilter.Builder
- Enclosing class:
- MlFilter
public static class MlFilter.Builder
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description MlFilterbuild()java.lang.StringgetId()MlFilter.BuildersetDescription(java.lang.String description)Set the description of the filterMlFilter.BuildersetId(java.lang.String id)Set the ID of the filterMlFilter.BuildersetItems(java.lang.String... items)The items of the filter.MlFilter.BuildersetItems(java.util.List<java.lang.String> items)MlFilter.BuildersetItems(java.util.SortedSet<java.lang.String> items)
-
Method Details
-
setId
Set the ID of the filter- Parameters:
id- The id desired
-
getId
@Nullable public java.lang.String getId() -
setDescription
Set the description of the filter- Parameters:
description- The description desired
-
setItems
-
setItems
-
setItems
The items of the filter. A wildcard * can be used at the beginning or the end of an item. Up to 10000 items are allowed in each filter.- Parameters:
items- String list of items to be applied in the filter
-
build
-