Class IndexRouting.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.indices.IndexRouting.Builder
- All Implemented Interfaces:
ObjectBuilder<IndexRouting>
- Enclosing class:
- IndexRouting
public static class IndexRouting.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexRouting>
Builder for
IndexRouting
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description IndexRouting.Builder
allocation(IndexRoutingAllocation value)
API name:allocation
IndexRouting.Builder
allocation(java.util.function.Function<IndexRoutingAllocation.Builder,ObjectBuilder<IndexRoutingAllocation>> fn)
API name:allocation
IndexRouting
build()
Builds aIndexRouting
.IndexRouting.Builder
rebalance(IndexRoutingRebalance value)
API name:rebalance
IndexRouting.Builder
rebalance(java.util.function.Function<IndexRoutingRebalance.Builder,ObjectBuilder<IndexRoutingRebalance>> fn)
API name:rebalance
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocation
API name:allocation
-
allocation
public final IndexRouting.Builder allocation(java.util.function.Function<IndexRoutingAllocation.Builder,ObjectBuilder<IndexRoutingAllocation>> fn)API name:allocation
-
rebalance
API name:rebalance
-
rebalance
public final IndexRouting.Builder rebalance(java.util.function.Function<IndexRoutingRebalance.Builder,ObjectBuilder<IndexRoutingRebalance>> fn)API name:rebalance
-
build
Builds aIndexRouting
.- Specified by:
build
in interfaceObjectBuilder<IndexRouting>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-