Class ClusterIndicesShards.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.stats.ClusterIndicesShards.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ClusterIndicesShards>
- Enclosing class:
- ClusterIndicesShards
public static class ClusterIndicesShards.Builder extends ObjectBuilderBase implements ObjectBuilder<ClusterIndicesShards>
Builder forClusterIndicesShards.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods 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.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 org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
index
public final ClusterIndicesShards.Builder index(@Nullable ClusterIndicesShardsIndex value)
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
public final ClusterIndicesShards.Builder primaries(@Nullable java.lang.Double value)
Number of primary shards assigned to selected nodes.API name:
primaries
-
replication
public final ClusterIndicesShards.Builder replication(@Nullable java.lang.Double value)
Ratio of replica shards to primary shards across all selected nodes.API name:
replication
-
total
public final ClusterIndicesShards.Builder total(@Nullable java.lang.Double value)
Total number of shards assigned to selected nodes.API name:
total
-
build
public ClusterIndicesShards build()
Builds aClusterIndicesShards.- Specified by:
buildin interfaceObjectBuilder<ClusterIndicesShards>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-