Class ClusterIndicesShardsIndex.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.cluster.stats.ClusterIndicesShardsIndex.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ClusterIndicesShardsIndex>
- Enclosing class:
- ClusterIndicesShardsIndex
public static class ClusterIndicesShardsIndex.Builder extends ObjectBuilderBase implements ObjectBuilder<ClusterIndicesShardsIndex>
Builder forClusterIndicesShardsIndex.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClusterIndicesShardsIndexbuild()Builds aClusterIndicesShardsIndex.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.Builderprimaries(ClusterShardMetrics value)Required - Contains statistics about the number of primary 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.ClusterIndicesShardsIndex.Builderreplication(ClusterShardMetrics value)Required - Contains statistics about the number of replication 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.ClusterIndicesShardsIndex.Buildershards(ClusterShardMetrics value)Required - Contains statistics about the number of shards assigned to selected nodes.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
primaries
public final ClusterIndicesShardsIndex.Builder primaries(ClusterShardMetrics value)
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
public final ClusterIndicesShardsIndex.Builder replication(ClusterShardMetrics value)
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
public final ClusterIndicesShardsIndex.Builder shards(ClusterShardMetrics value)
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
-
build
public ClusterIndicesShardsIndex build()
Builds aClusterIndicesShardsIndex.- Specified by:
buildin interfaceObjectBuilder<ClusterIndicesShardsIndex>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-