Class FilterRef.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FilterRef.Builder>
co.elastic.clients.elasticsearch.ml.FilterRef.Builder
- All Implemented Interfaces:
WithJson<FilterRef.Builder>,ObjectBuilder<FilterRef>
- Enclosing class:
- FilterRef
public static class FilterRef.Builder extends WithJsonObjectBuilderBase<FilterRef.Builder> implements ObjectBuilder<FilterRef>
Builder for
FilterRef.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description FilterRefbuild()Builds aFilterRef.FilterRef.BuilderfilterId(java.lang.String value)Required - The identifier for the filter.FilterRef.BuilderfilterType(FilterType value)If set toinclude, the rule applies for values in the filter.protected FilterRef.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
filterId
Required - The identifier for the filter.API name:
filter_id -
filterType
If set toinclude, the rule applies for values in the filter. If set toexclude, the rule applies for values not in the filter.API name:
filter_type -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<FilterRef.Builder>
-
build
Builds aFilterRef.- Specified by:
buildin interfaceObjectBuilder<FilterRef>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-