Class IndexRouting.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexRouting.Builder>
co.elastic.clients.elasticsearch.indices.IndexRouting.Builder
- All Implemented Interfaces:
WithJson<IndexRouting.Builder>,ObjectBuilder<IndexRouting>
- Enclosing class:
- IndexRouting
public static class IndexRouting.Builder
extends WithJsonObjectBuilderBase<IndexRouting.Builder>
implements ObjectBuilder<IndexRouting>
Builder for
IndexRouting.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal IndexRouting.Builderallocation(IndexRoutingAllocation value) API name:allocationfinal IndexRouting.BuilderAPI name:allocationbuild()Builds aIndexRouting.final IndexRouting.Builderrebalance(IndexRoutingRebalance value) API name:rebalancefinal IndexRouting.BuilderAPI name:rebalanceprotected IndexRouting.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
allocation
API name:allocation -
allocation
public final IndexRouting.Builder allocation(Function<IndexRoutingAllocation.Builder, ObjectBuilder<IndexRoutingAllocation>> fn) API name:allocation -
rebalance
API name:rebalance -
rebalance
public final IndexRouting.Builder rebalance(Function<IndexRoutingRebalance.Builder, ObjectBuilder<IndexRoutingRebalance>> fn) API name:rebalance -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndexRouting.Builder>
-
build
Builds aIndexRouting.- Specified by:
buildin interfaceObjectBuilder<IndexRouting>- Throws:
NullPointerException- if some of the required fields are null.
-