Class IndexRouting.Builder
java.lang.Object
org.opensearch.client.opensearch.indices.IndexRouting.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexRouting>
- Enclosing class:
- IndexRouting
public static class IndexRouting.Builder extends java.lang.Object implements ObjectBuilder<IndexRouting>
Builder for
IndexRouting.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description IndexRouting.Builderallocation(java.util.function.Function<IndexRoutingAllocation.Builder,ObjectBuilder<IndexRoutingAllocation>> fn)API name:allocationIndexRouting.Builderallocation(IndexRoutingAllocation value)API name:allocationIndexRoutingbuild()Builds aIndexRouting.IndexRouting.Builderrebalance(java.util.function.Function<IndexRoutingRebalance.Builder,ObjectBuilder<IndexRoutingRebalance>> fn)API name:rebalanceIndexRouting.Builderrebalance(IndexRoutingRebalance value)API name:rebalance
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocation
API name:allocation -
allocation
public IndexRouting.Builder allocation(java.util.function.Function<IndexRoutingAllocation.Builder,ObjectBuilder<IndexRoutingAllocation>> fn)API name:allocation -
rebalance
API name:rebalance -
rebalance
public IndexRouting.Builder rebalance(java.util.function.Function<IndexRoutingRebalance.Builder,ObjectBuilder<IndexRoutingRebalance>> fn)API name:rebalance -
build
Builds aIndexRouting.- Specified by:
buildin interfaceObjectBuilder<IndexRouting>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-