Class IndexRouting.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexRouting.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexRouting.Builder,,IndexRouting> MutableBuilder<IndexRouting.Builder,,IndexRouting> ObjectBuilder<IndexRouting>
- Enclosing class:
IndexRouting
public static class IndexRouting.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexRouting.Builder,IndexRouting>
Builder for
IndexRouting.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IndexRouting.BuilderAPI name:allocationfinal IndexRouting.Builderallocation(IndexRoutingAllocation value) API name:allocationbuild()Builds aIndexRouting.copy()Create a new builderCopyableBuilderthat is a copy of this one.final IndexRouting.BuilderAPI name:rebalancefinal IndexRouting.Builderrebalance(IndexRoutingRebalance value) API name:rebalanceMethods 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<IndexRouting.Builder,IndexRouting> - Returns:
- a new builder instance.
-
allocation
API name:allocation -
allocation
@Nonnull public final IndexRouting.Builder allocation(Function<IndexRoutingAllocation.Builder, ObjectBuilder<IndexRoutingAllocation>> fn) API name:allocation -
rebalance
API name:rebalance -
rebalance
@Nonnull public final IndexRouting.Builder rebalance(Function<IndexRoutingRebalance.Builder, ObjectBuilder<IndexRoutingRebalance>> fn) API name:rebalance -
build
Builds aIndexRouting.- Specified by:
buildin interfaceObjectBuilder<IndexRouting>- Throws:
NullPointerException- if some of the required fields are null.
-