Class ClusterIndicesShardsIndex.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ClusterIndicesShardsIndex.Builder>
co.elastic.clients.elasticsearch.cluster.stats.ClusterIndicesShardsIndex.Builder
- All Implemented Interfaces:
WithJson<ClusterIndicesShardsIndex.Builder>,ObjectBuilder<ClusterIndicesShardsIndex>
- Enclosing class:
- ClusterIndicesShardsIndex
public static class ClusterIndicesShardsIndex.Builder
extends WithJsonObjectBuilderBase<ClusterIndicesShardsIndex.Builder>
implements ObjectBuilder<ClusterIndicesShardsIndex>
Builder for
ClusterIndicesShardsIndex.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aClusterIndicesShardsIndex.primaries(ClusterShardMetrics value) Required - Contains statistics about the number of primary shards assigned to selected nodes.Required - Contains statistics about the number of primary shards assigned to selected nodes.replication(ClusterShardMetrics value) Required - Contains statistics about the number of replication shards assigned to selected nodes.Required - Contains statistics about the number of replication shards assigned to selected nodes.protected ClusterIndicesShardsIndex.Builderself()shards(ClusterShardMetrics value) Required - Contains statistics about the number of shards assigned to selected nodes.Required - Contains statistics about the number of shards assigned to selected nodes.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
-
primaries
Required - Contains statistics about the number of primary shards assigned to selected nodes.API name:
primaries -
primaries
public final ClusterIndicesShardsIndex.Builder primaries(Function<ClusterShardMetrics.Builder, ObjectBuilder<ClusterShardMetrics>> fn) Required - Contains statistics about the number of primary shards assigned to selected nodes.API name:
primaries -
replication
Required - Contains statistics about the number of replication shards assigned to selected nodes.API name:
replication -
replication
public final ClusterIndicesShardsIndex.Builder replication(Function<ClusterShardMetrics.Builder, ObjectBuilder<ClusterShardMetrics>> fn) Required - Contains statistics about the number of replication shards assigned to selected nodes.API name:
replication -
shards
Required - Contains statistics about the number of shards assigned to selected nodes.API name:
shards -
shards
public final ClusterIndicesShardsIndex.Builder shards(Function<ClusterShardMetrics.Builder, ObjectBuilder<ClusterShardMetrics>> fn) Required - Contains statistics about the number of shards assigned to selected nodes.API name:
shards -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<ClusterIndicesShardsIndex.Builder>
-
build
Builds aClusterIndicesShardsIndex.- Specified by:
buildin interfaceObjectBuilder<ClusterIndicesShardsIndex>- Throws:
NullPointerException- if some of the required fields are null.
-