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