Class ClusterIndicesShards.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.cluster.stats.ClusterIndicesShards.Builder
- All Implemented Interfaces:
CopyableBuilder<ClusterIndicesShards.Builder,,ClusterIndicesShards> MutableBuilder<ClusterIndicesShards.Builder,,ClusterIndicesShards> ObjectBuilder<ClusterIndicesShards>
- Enclosing class:
ClusterIndicesShards
public static class ClusterIndicesShards.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ClusterIndicesShards.Builder,ClusterIndicesShards>
Builder for
ClusterIndicesShards.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aClusterIndicesShards.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:indexindex(ClusterIndicesShardsIndex value) API name:indexNumber of primary shards assigned to selected nodes.replication(Integer value) Ratio of replica shards to primary shards across all selected nodes.Total 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<ClusterIndicesShards.Builder,ClusterIndicesShards> - Returns:
- a new builder instance.
-
index
API name:index -
index
@Nonnull public final ClusterIndicesShards.Builder index(Function<ClusterIndicesShardsIndex.Builder, ObjectBuilder<ClusterIndicesShardsIndex>> fn) 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:
NullPointerException- if some of the required fields are null.
-