Class WatcherActions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<WatcherActions.Builder>
co.elastic.clients.elasticsearch.xpack.usage.WatcherActions.Builder
- All Implemented Interfaces:
WithJson<WatcherActions.Builder>,ObjectBuilder<WatcherActions>
- Enclosing class:
- WatcherActions
public static class WatcherActions.Builder extends WithJsonObjectBuilderBase<WatcherActions.Builder> implements ObjectBuilder<WatcherActions>
Builder for
WatcherActions.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description WatcherActions.Builderactions(java.lang.String key, WatcherActionTotals value)Required - API name:actionsWatcherActions.Builderactions(java.lang.String key, java.util.function.Function<WatcherActionTotals.Builder,ObjectBuilder<WatcherActionTotals>> fn)Required - API name:actionsWatcherActions.Builderactions(java.util.Map<java.lang.String,WatcherActionTotals> map)Required - API name:actionsWatcherActionsbuild()Builds aWatcherActions.protected WatcherActions.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
-
actions
public final WatcherActions.Builder actions(java.util.Map<java.lang.String,WatcherActionTotals> map)Required - API name:actionsAdds all entries of
maptoactions. -
actions
Required - API name:actionsAdds an entry to
actions. -
actions
public final WatcherActions.Builder actions(java.lang.String key, java.util.function.Function<WatcherActionTotals.Builder,ObjectBuilder<WatcherActionTotals>> fn)Required - API name:actionsAdds an entry to
actionsusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<WatcherActions.Builder>
-
build
Builds aWatcherActions.- Specified by:
buildin interfaceObjectBuilder<WatcherActions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-