Class WatcherActions.Builder
java.lang.Object
co.elastic.clients.elasticsearch.xpack.usage.WatcherActions.Builder
- All Implemented Interfaces:
ObjectBuilder<WatcherActions>
- Enclosing class:
- WatcherActions
public static class WatcherActions.Builder extends java.lang.Object 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, java.util.function.Function<WatcherActionTotals.Builder,ObjectBuilder<WatcherActionTotals>> fn)Setactions(Map)to a singleton map.WatcherActions.Builderactions(java.util.Map<java.lang.String,WatcherActionTotals> value)API name:actionsWatcherActionsbuild()Builds aWatcherActions.WatcherActions.BuilderputActions(java.lang.String key, WatcherActionTotals value)Add a key/value toactions(Map), creating the map if needed.WatcherActions.BuilderputActions(java.lang.String key, java.util.function.Function<WatcherActionTotals.Builder,ObjectBuilder<WatcherActionTotals>> fn)Add a key/value toactions(Map), creating the map if needed.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
API name:actions -
putActions
Add a key/value toactions(Map), creating the map if needed. -
actions
public WatcherActions.Builder actions(java.lang.String key, java.util.function.Function<WatcherActionTotals.Builder,ObjectBuilder<WatcherActionTotals>> fn)Setactions(Map)to a singleton map. -
putActions
public WatcherActions.Builder putActions(java.lang.String key, java.util.function.Function<WatcherActionTotals.Builder,ObjectBuilder<WatcherActionTotals>> fn)Add a key/value toactions(Map), creating the map if needed. -
build
Builds aWatcherActions.- Specified by:
buildin interfaceObjectBuilder<WatcherActions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-