Class WatchRecordStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.watcher.stats.WatchRecordQueuedStats.AbstractBuilder<WatchRecordStats.Builder>
co.elastic.clients.elasticsearch.watcher.stats.WatchRecordStats.Builder
- All Implemented Interfaces:
WithJson<WatchRecordStats.Builder>
,ObjectBuilder<WatchRecordStats>
- Enclosing class:
- WatchRecordStats
public static class WatchRecordStats.Builder
extends WatchRecordQueuedStats.AbstractBuilder<WatchRecordStats.Builder>
implements ObjectBuilder<WatchRecordStats>
Builder for
WatchRecordStats
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aWatchRecordStats
.final WatchRecordStats.Builder
executedActions
(String value, String... values) API name:executed_actions
final WatchRecordStats.Builder
executedActions
(List<String> list) API name:executed_actions
final WatchRecordStats.Builder
executionPhase
(ExecutionPhase value) Required - API name:execution_phase
protected WatchRecordStats.Builder
self()
final WatchRecordStats.Builder
triggeredTime
(DateTime value) Required - API name:triggered_time
final WatchRecordStats.Builder
Required - API name:watch_id
final WatchRecordStats.Builder
watchRecordId
(String value) Required - API name:watch_record_id
Methods inherited from class co.elastic.clients.elasticsearch.watcher.stats.WatchRecordQueuedStats.AbstractBuilder
executionTime
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
executionPhase
Required - API name:execution_phase
-
triggeredTime
Required - API name:triggered_time
-
executedActions
API name:executed_actions
Adds all elements of
list
toexecutedActions
. -
executedActions
API name:executed_actions
Adds one or more values to
executedActions
. -
watchId
Required - API name:watch_id
-
watchRecordId
Required - API name:watch_record_id
-
self
- Specified by:
self
in classWatchRecordQueuedStats.AbstractBuilder<WatchRecordStats.Builder>
-
build
Builds aWatchRecordStats
.- Specified by:
build
in interfaceObjectBuilder<WatchRecordStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-