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.Builder
actions(java.lang.String key, WatcherActionTotals value)
Required - API name:actions
WatcherActions.Builder
actions(java.lang.String key, java.util.function.Function<WatcherActionTotals.Builder,ObjectBuilder<WatcherActionTotals>> fn)
Required - API name:actions
WatcherActions.Builder
actions(java.util.Map<java.lang.String,WatcherActionTotals> map)
Required - API name:actions
WatcherActions
build()
Builds aWatcherActions
.protected WatcherActions.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods 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:actions
Adds all entries of
map
toactions
. -
actions
Required - API name:actions
Adds 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:actions
Adds an entry to
actions
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<WatcherActions.Builder>
-
build
Builds aWatcherActions
.- Specified by:
build
in interfaceObjectBuilder<WatcherActions>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-