Class PutWatchRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PutWatchRequest.Builder>
co.elastic.clients.elasticsearch.watcher.PutWatchRequest.Builder
- All Implemented Interfaces:
WithJson<PutWatchRequest.Builder>,ObjectBuilder<PutWatchRequest>
- Enclosing class:
- PutWatchRequest
public static class PutWatchRequest.Builder
extends RequestBase.AbstractBuilder<PutWatchRequest.Builder>
implements ObjectBuilder<PutWatchRequest>
Builder for
PutWatchRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal PutWatchRequest.BuilderThe list of actions that will be run if the condition matches.final PutWatchRequest.Builderactions(String key, Function<Action.Builder, ObjectBuilder<Action>> fn) The list of actions that will be run if the condition matches.final PutWatchRequest.BuilderThe list of actions that will be run if the condition matches.final PutWatchRequest.BuilderThe initial state of the watch.build()Builds aPutWatchRequest.final PutWatchRequest.BuilderThe condition that defines if the actions should be run.final PutWatchRequest.Buildercondition(ConditionVariant value) The condition that defines if the actions should be run.final PutWatchRequest.BuilderThe condition that defines if the actions should be run.final PutWatchRequest.BuilderRequired - The identifier for the watch.final PutWatchRequest.BuilderifPrimaryTerm(Long value) only update the watch if the last operation that has changed the watch has the specified primary termfinal PutWatchRequest.Builderonly update the watch if the last operation that has changed the watch has the specified sequence numberfinal PutWatchRequest.BuilderThe input that defines the input that loads the data for the watch.final PutWatchRequest.Builderinput(InputVariant value) The input that defines the input that loads the data for the watch.final PutWatchRequest.BuilderThe input that defines the input that loads the data for the watch.final PutWatchRequest.BuilderMetadata JSON that will be copied into the history entries.final PutWatchRequest.BuilderMetadata JSON that will be copied into the history entries.protected PutWatchRequest.Builderself()final PutWatchRequest.BuilderthrottlePeriod(Time value) The minimum time between actions being run.final PutWatchRequest.BuilderThe minimum time between actions being run.final PutWatchRequest.BuilderthrottlePeriodInMillis(Long value) Minimum time in milliseconds between actions being run.final PutWatchRequest.BuilderThe transform that processes the watch payload to prepare it for the watch actions.final PutWatchRequest.Buildertransform(TransformVariant value) The transform that processes the watch payload to prepare it for the watch actions.final PutWatchRequest.BuilderThe transform that processes the watch payload to prepare it for the watch actions.final PutWatchRequest.BuilderThe trigger that defines when the watch should run.final PutWatchRequest.Buildertrigger(TriggerVariant value) The trigger that defines when the watch should run.final PutWatchRequest.BuilderThe trigger that defines when the watch should run.final PutWatchRequest.BuilderExplicit version number for concurrency controlMethods 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
The list of actions that will be run if the condition matches.API name:
actionsAdds all entries of
maptoactions. -
actions
The list of actions that will be run if the condition matches.API name:
actionsAdds an entry to
actions. -
actions
public final PutWatchRequest.Builder actions(String key, Function<Action.Builder, ObjectBuilder<Action>> fn) The list of actions that will be run if the condition matches.API name:
actionsAdds an entry to
actionsusing a builder lambda. -
active
The initial state of the watch. The default value istrue, which means the watch is active by default.API name:
active -
condition
The condition that defines if the actions should be run.API name:
condition -
condition
public final PutWatchRequest.Builder condition(Function<Condition.Builder, ObjectBuilder<Condition>> fn) The condition that defines if the actions should be run.API name:
condition -
condition
The condition that defines if the actions should be run.API name:
condition -
id
Required - The identifier for the watch.API name:
id -
ifPrimaryTerm
only update the watch if the last operation that has changed the watch has the specified primary termAPI name:
if_primary_term -
ifSeqNo
only update the watch if the last operation that has changed the watch has the specified sequence numberAPI name:
if_seq_no -
input
The input that defines the input that loads the data for the watch.API name:
input -
input
The input that defines the input that loads the data for the watch.API name:
input -
input
The input that defines the input that loads the data for the watch.API name:
input -
metadata
Metadata JSON that will be copied into the history entries.API name:
metadataAdds all entries of
maptometadata. -
metadata
Metadata JSON that will be copied into the history entries.API name:
metadataAdds an entry to
metadata. -
throttlePeriod
The minimum time between actions being run. The default is 5 seconds. This default can be changed in the config file with the settingxpack.watcher.throttle.period.default_period. If both this value and thethrottle_period_in_millisparameter are specified, Watcher uses the last parameter included in the request.API name:
throttle_period -
throttlePeriod
The minimum time between actions being run. The default is 5 seconds. This default can be changed in the config file with the settingxpack.watcher.throttle.period.default_period. If both this value and thethrottle_period_in_millisparameter are specified, Watcher uses the last parameter included in the request.API name:
throttle_period -
throttlePeriodInMillis
Minimum time in milliseconds between actions being run. Defaults to 5000. If both this value and the throttle_period parameter are specified, Watcher uses the last parameter included in the request.API name:
throttle_period_in_millis -
transform
The transform that processes the watch payload to prepare it for the watch actions.API name:
transform -
transform
public final PutWatchRequest.Builder transform(Function<Transform.Builder, ObjectBuilder<Transform>> fn) The transform that processes the watch payload to prepare it for the watch actions.API name:
transform -
transform
The transform that processes the watch payload to prepare it for the watch actions.API name:
transform -
trigger
The trigger that defines when the watch should run.API name:
trigger -
trigger
The trigger that defines when the watch should run.API name:
trigger -
trigger
The trigger that defines when the watch should run.API name:
trigger -
version
Explicit version number for concurrency controlAPI name:
version -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PutWatchRequest.Builder>
-
build
Builds aPutWatchRequest.- Specified by:
buildin interfaceObjectBuilder<PutWatchRequest>- Throws:
NullPointerException- if some of the required fields are null.
-