Class ClusterIndicesShardsIndex.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cluster.stats.ClusterIndicesShardsIndex.Builder
- All Implemented Interfaces:
CopyableBuilder<ClusterIndicesShardsIndex.Builder,,ClusterIndicesShardsIndex> MutableBuilder<ClusterIndicesShardsIndex.Builder,,ClusterIndicesShardsIndex> ObjectBuilder<ClusterIndicesShardsIndex>
- Enclosing class:
ClusterIndicesShardsIndex
public static class ClusterIndicesShardsIndex.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ClusterIndicesShardsIndex.Builder,ClusterIndicesShardsIndex>
Builder for
ClusterIndicesShardsIndex.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aClusterIndicesShardsIndex.copy()Create a new builderCopyableBuilderthat is a copy of this one.Required - Contains statistics about the number of primary shards assigned to selected nodes.primaries(ClusterShardMetrics value) Required - Contains statistics about the number of primary shards assigned to selected nodes.Required - Contains statistics about the number of replication shards assigned to selected nodes.replication(ClusterShardMetrics value) Required - Contains statistics about the number of replication shards assigned to selected nodes.Required - Contains statistics about the number of shards assigned to selected nodes.shards(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, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<ClusterIndicesShardsIndex.Builder,ClusterIndicesShardsIndex> - Returns:
- a new builder instance.
-
primaries
Required - Contains statistics about the number of primary shards assigned to selected nodes.API name:
primaries -
primaries
@Nonnull public final ClusterIndicesShardsIndex.Builder primaries(Function<ClusterShardMetrics.Builder, ObjectBuilder<ClusterShardMetrics>> fn) Required - Contains statistics about the number of primary shards assigned to selected nodes.API name:
primaries -
replication
Required - Contains statistics about the number of replication shards assigned to selected nodes.API name:
replication -
replication
@Nonnull public final ClusterIndicesShardsIndex.Builder replication(Function<ClusterShardMetrics.Builder, ObjectBuilder<ClusterShardMetrics>> fn) Required - Contains statistics about the number of replication shards assigned to selected nodes.API name:
replication -
shards
Required - Contains statistics about the number of shards assigned to selected nodes.API name:
shards -
shards
@Nonnull public final ClusterIndicesShardsIndex.Builder shards(Function<ClusterShardMetrics.Builder, ObjectBuilder<ClusterShardMetrics>> fn) Required - Contains statistics about the number of shards assigned to selected nodes.API name:
shards -
build
Builds aClusterIndicesShardsIndex.- Specified by:
buildin interfaceObjectBuilder<ClusterIndicesShardsIndex>- Throws:
NullPointerException- if some of the required fields are null.
-