Class ClusterIndicesShards.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.cluster.stats.ClusterIndicesShards.Builder
- All Implemented Interfaces:
ObjectBuilder<ClusterIndicesShards>
- Enclosing class:
- ClusterIndicesShards
public static class ClusterIndicesShards.Builder extends ObjectBuilderBase implements ObjectBuilder<ClusterIndicesShards>
Builder for
ClusterIndicesShards.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ClusterIndicesShardsbuild()Builds aClusterIndicesShards.ClusterIndicesShards.Builderindex(ClusterIndicesShardsIndex value)Contains statistics about shards assigned to selected nodes.ClusterIndicesShards.Builderindex(java.util.function.Function<ClusterIndicesShardsIndex.Builder,ObjectBuilder<ClusterIndicesShardsIndex>> fn)Contains statistics about shards assigned to selected nodes.ClusterIndicesShards.Builderprimaries(java.lang.Double value)Number of primary shards assigned to selected nodes.ClusterIndicesShards.Builderreplication(java.lang.Double value)Ratio of replica shards to primary shards across all selected nodes.ClusterIndicesShards.Buildertotal(java.lang.Double value)Total number of shards assigned to selected nodes.Methods 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
-
index
Contains statistics about shards assigned to selected nodes.API name:
index -
index
public final ClusterIndicesShards.Builder index(java.util.function.Function<ClusterIndicesShardsIndex.Builder,ObjectBuilder<ClusterIndicesShardsIndex>> fn)Contains statistics about shards assigned to selected nodes.API name:
index -
primaries
Number of primary shards assigned to selected nodes.API name:
primaries -
replication
Ratio of replica shards to primary shards across all selected nodes.API name:
replication -
total
Total number of shards assigned to selected nodes.API name:
total -
build
Builds aClusterIndicesShards.- Specified by:
buildin interfaceObjectBuilder<ClusterIndicesShards>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-