Class IndexRouting.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.IndexRouting.Builder
-
- All Implemented Interfaces:
ObjectBuilder<IndexRouting>
- Enclosing class:
- IndexRouting
public static class IndexRouting.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexRouting>
Builder forIndexRouting.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods 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-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
allocation
public final IndexRouting.Builder allocation(@Nullable IndexRoutingAllocation value)
API name:allocation
-
allocation
public final IndexRouting.Builder allocation(java.util.function.Function<IndexRoutingAllocation.Builder,ObjectBuilder<IndexRoutingAllocation>> fn)
API name:allocation
-
rebalance
public final IndexRouting.Builder rebalance(@Nullable IndexRoutingRebalance value)
API name:rebalance
-
rebalance
public final IndexRouting.Builder rebalance(java.util.function.Function<IndexRoutingRebalance.Builder,ObjectBuilder<IndexRoutingRebalance>> fn)
API name:rebalance
-
build
public IndexRouting build()
Builds aIndexRouting.- Specified by:
buildin interfaceObjectBuilder<IndexRouting>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-