Class Watcher.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder<Watcher.Builder>
co.elastic.clients.elasticsearch.xpack.usage.Watcher.Builder
- All Implemented Interfaces:
WithJson<Watcher.Builder>,ObjectBuilder<Watcher>
- Enclosing class:
- Watcher
public static class Watcher.Builder extends Base.AbstractBuilder<Watcher.Builder> implements ObjectBuilder<Watcher>
Builder for
Watcher.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Watcherbuild()Builds aWatcher.Watcher.Buildercount(Counter value)Required - API name:countWatcher.Buildercount(java.util.function.Function<Counter.Builder,ObjectBuilder<Counter>> fn)Required - API name:countWatcher.Builderexecution(WatcherActions value)Required - API name:executionWatcher.Builderexecution(java.util.function.Function<WatcherActions.Builder,ObjectBuilder<WatcherActions>> fn)Required - API name:executionprotected Watcher.Builderself()Watcher.Builderwatch(WatcherWatch value)Required - API name:watchWatcher.Builderwatch(java.util.function.Function<WatcherWatch.Builder,ObjectBuilder<WatcherWatch>> fn)Required - API name:watchMethods inherited from class co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder
available, enabledMethods 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
-
execution
Required - API name:execution -
execution
public final Watcher.Builder execution(java.util.function.Function<WatcherActions.Builder,ObjectBuilder<WatcherActions>> fn)Required - API name:execution -
watch
Required - API name:watch -
watch
public final Watcher.Builder watch(java.util.function.Function<WatcherWatch.Builder,ObjectBuilder<WatcherWatch>> fn)Required - API name:watch -
count
Required - API name:count -
count
public final Watcher.Builder count(java.util.function.Function<Counter.Builder,ObjectBuilder<Counter>> fn)Required - API name:count -
self
- Specified by:
selfin classBase.AbstractBuilder<Watcher.Builder>
-
build
Builds aWatcher.- Specified by:
buildin interfaceObjectBuilder<Watcher>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-