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 Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ClusterIndicesShardsIndexbuild()Builds aClusterIndicesShardsIndex.ClusterIndicesShardsIndex.Builderprimaries(ClusterShardMetrics value)Required - Contains statistics about the number of primary shards assigned to selected nodes.ClusterIndicesShardsIndex.Builderprimaries(java.util.function.Function<ClusterShardMetrics.Builder,ObjectBuilder<ClusterShardMetrics>> fn)Required - Contains statistics about the number of primary shards assigned to selected nodes.ClusterIndicesShardsIndex.Builderreplication(ClusterShardMetrics value)Required - Contains statistics about the number of replication shards assigned to selected nodes.ClusterIndicesShardsIndex.Builderreplication(java.util.function.Function<ClusterShardMetrics.Builder,ObjectBuilder<ClusterShardMetrics>> fn)Required - Contains statistics about the number of replication shards assigned to selected nodes.protected ClusterIndicesShardsIndex.Builderself()ClusterIndicesShardsIndex.Buildershards(ClusterShardMetrics value)Required - Contains statistics about the number of shards assigned to selected nodes.ClusterIndicesShardsIndex.Buildershards(java.util.function.Function<ClusterShardMetrics.Builder,ObjectBuilder<ClusterShardMetrics>> fn)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, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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(java.util.function.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(java.util.function.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(java.util.function.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:
java.lang.NullPointerException- if some of the required fields are null.
-