Class ClusterIndicesShards.Builder
java.lang.Object
org.opensearch.client.opensearch.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.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ClusterIndicesShardsbuild()Builds aClusterIndicesShards.ClusterIndicesShards.Builderindex(java.util.function.Function<ClusterIndicesShardsIndex.Builder,ObjectBuilder<ClusterIndicesShardsIndex>> fn)Contains statistics about shards assigned to selected nodes.ClusterIndicesShards.Builderindex(ClusterIndicesShardsIndex value)Contains statistics about shards assigned to selected nodes.ClusterIndicesShards.Builderprimaries(java.lang.Number value)Number of primary shards assigned to selected nodes.ClusterIndicesShards.Builderreplication(java.lang.Number value)Ratio of replica shards to primary shards across all selected nodes.ClusterIndicesShards.Buildertotal(java.lang.Number value)Total number of shards assigned to selected nodes.
-
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:
buildin interfaceObjectBuilder<ClusterIndicesShards>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-