Class WatcherWatchTrigger.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.xpack.usage.WatcherWatchTrigger.Builder
- All Implemented Interfaces:
ObjectBuilder<WatcherWatchTrigger>
- Enclosing class:
- WatcherWatchTrigger
public static class WatcherWatchTrigger.Builder extends ObjectBuilderBase implements ObjectBuilder<WatcherWatchTrigger>
Builder for
WatcherWatchTrigger.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description WatcherWatchTrigger.Builderall(Counter value)Required - API name:_allWatcherWatchTrigger.Builderall(java.util.function.Function<Counter.Builder,ObjectBuilder<Counter>> fn)Required - API name:_allWatcherWatchTriggerbuild()Builds aWatcherWatchTrigger.WatcherWatchTrigger.Builderschedule(WatcherWatchTriggerSchedule value)API name:scheduleWatcherWatchTrigger.Builderschedule(java.util.function.Function<WatcherWatchTriggerSchedule.Builder,ObjectBuilder<WatcherWatchTriggerSchedule>> fn)API name:scheduleMethods 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
-
schedule
API name:schedule -
schedule
public final WatcherWatchTrigger.Builder schedule(java.util.function.Function<WatcherWatchTriggerSchedule.Builder,ObjectBuilder<WatcherWatchTriggerSchedule>> fn)API name:schedule -
all
Required - API name:_all -
all
public final WatcherWatchTrigger.Builder all(java.util.function.Function<Counter.Builder,ObjectBuilder<Counter>> fn)Required - API name:_all -
build
Builds aWatcherWatchTrigger.- Specified by:
buildin interfaceObjectBuilder<WatcherWatchTrigger>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-