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