Class ExecuteWatchRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<ExecuteWatchRequest.Builder>
co.elastic.clients.elasticsearch.watcher.ExecuteWatchRequest.Builder
- All Implemented Interfaces:
WithJson<ExecuteWatchRequest.Builder>,ObjectBuilder<ExecuteWatchRequest>
- Enclosing class:
- ExecuteWatchRequest
public static class ExecuteWatchRequest.Builder
extends RequestBase.AbstractBuilder<ExecuteWatchRequest.Builder>
implements ObjectBuilder<ExecuteWatchRequest>
Builder for
ExecuteWatchRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactionModes(String key, ActionExecutionMode value) Determines how to handle the watch actions as part of the watch execution.Determines how to handle the watch actions as part of the watch execution.alternativeInput(String key, JsonData value) When present, the watch uses this object as a payload instead of executing its own input.alternativeInput(Map<String, JsonData> map) When present, the watch uses this object as a payload instead of executing its own input.build()Builds aExecuteWatchRequest.Defines whether the watch runs in debug mode.The watch identifier.ignoreCondition(Boolean value) When set totrue, the watch execution uses the always condition.recordExecution(Boolean value) When set totrue, the watch record representing the watch execution result is persisted to the.watcher-historyindex for the current time.protected ExecuteWatchRequest.Builderself()simulatedActions(SimulatedActions value) API name:simulated_actionsAPI name:simulated_actionstriggerData(ScheduleTriggerEvent value) This structure is parsed as the data of the trigger event that will be used during the watch execution.This structure is parsed as the data of the trigger event that will be used during the watch execution.When present, this watch is used instead of the one specified in the request.When present, this watch is used instead of the one specified in the request.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
-
actionModes
Determines how to handle the watch actions as part of the watch execution.API name:
action_modesAdds all entries of
maptoactionModes. -
actionModes
Determines how to handle the watch actions as part of the watch execution.API name:
action_modesAdds an entry to
actionModes. -
alternativeInput
When present, the watch uses this object as a payload instead of executing its own input.API name:
alternative_inputAdds all entries of
maptoalternativeInput. -
alternativeInput
When present, the watch uses this object as a payload instead of executing its own input.API name:
alternative_inputAdds an entry to
alternativeInput. -
debug
Defines whether the watch runs in debug mode.API name:
debug -
id
The watch identifier.API name:
id -
ignoreCondition
When set totrue, the watch execution uses the always condition. This can also be specified as an HTTP parameter.API name:
ignore_condition -
recordExecution
When set totrue, the watch record representing the watch execution result is persisted to the.watcher-historyindex for the current time. In addition, the status of the watch is updated, possibly throttling subsequent runs. This can also be specified as an HTTP parameter.API name:
record_execution -
simulatedActions
API name:simulated_actions -
simulatedActions
public final ExecuteWatchRequest.Builder simulatedActions(Function<SimulatedActions.Builder, ObjectBuilder<SimulatedActions>> fn) API name:simulated_actions -
triggerData
This structure is parsed as the data of the trigger event that will be used during the watch execution.API name:
trigger_data -
triggerData
public final ExecuteWatchRequest.Builder triggerData(Function<ScheduleTriggerEvent.Builder, ObjectBuilder<ScheduleTriggerEvent>> fn) This structure is parsed as the data of the trigger event that will be used during the watch execution.API name:
trigger_data -
watch
When present, this watch is used instead of the one specified in the request. This watch is not persisted to the index andrecord_executioncannot be set.API name:
watch -
watch
When present, this watch is used instead of the one specified in the request. This watch is not persisted to the index andrecord_executioncannot be set.API name:
watch -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ExecuteWatchRequest.Builder>
-
build
Builds aExecuteWatchRequest.- Specified by:
buildin interfaceObjectBuilder<ExecuteWatchRequest>- Throws:
NullPointerException- if some of the required fields are null.
-