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 -
Method Summary
Modifier and TypeMethodDescriptionfinal WatcherActions.Builderactions(String key, WatcherActionTotals value) Required - API name:actionsfinal WatcherActions.BuilderRequired - API name:actionsfinal WatcherActions.Builderactions(Map<String, WatcherActionTotals> map) Required - API name:actionsbuild()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, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
actions
Required - API name:actionsAdds all entries of
maptoactions. -
actions
Required - API name:actionsAdds an entry to
actions. -
actions
public final WatcherActions.Builder actions(String key, 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:
NullPointerException- if some of the required fields are null.
-