Class ClusterIngest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClusterIngest.Builder>
co.elastic.clients.elasticsearch.cluster.stats.ClusterIngest.Builder
- All Implemented Interfaces:
WithJson<ClusterIngest.Builder>
,ObjectBuilder<ClusterIngest>
- Enclosing class:
- ClusterIngest
public static class ClusterIngest.Builder
extends WithJsonObjectBuilderBase<ClusterIngest.Builder>
implements ObjectBuilder<ClusterIngest>
Builder for
ClusterIngest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aClusterIngest
.final ClusterIngest.Builder
numberOfPipelines
(int value) Required - API name:number_of_pipelines
final ClusterIngest.Builder
processorStats
(String key, ClusterProcessor value) Required - API name:processor_stats
final ClusterIngest.Builder
Required - API name:processor_stats
final ClusterIngest.Builder
Required - API name:processor_stats
protected ClusterIngest.Builder
self()
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
-
numberOfPipelines
Required - API name:number_of_pipelines
-
processorStats
Required - API name:processor_stats
Adds all entries of
map
toprocessorStats
. -
processorStats
Required - API name:processor_stats
Adds an entry to
processorStats
. -
processorStats
public final ClusterIngest.Builder processorStats(String key, Function<ClusterProcessor.Builder, ObjectBuilder<ClusterProcessor>> fn) Required - API name:processor_stats
Adds an entry to
processorStats
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ClusterIngest.Builder>
-
build
Builds aClusterIngest
.- Specified by:
build
in interfaceObjectBuilder<ClusterIngest>
- Throws:
NullPointerException
- if some of the required fields are null.
-