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
-
Method Summary
Modifier and TypeMethodDescriptionfinal IndexRouting.Builder
allocation
(IndexRoutingAllocation value) API name:allocation
final IndexRouting.Builder
API name:allocation
build()
Builds aIndexRouting
.final IndexRouting.Builder
rebalance
(IndexRoutingRebalance value) API name:rebalance
final IndexRouting.Builder
API name:rebalance
protected IndexRouting.Builder
self()
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:
self
in classWithJsonObjectBuilderBase<IndexRouting.Builder>
-
build
Builds aIndexRouting
.- Specified by:
build
in interfaceObjectBuilder<IndexRouting>
- Throws:
NullPointerException
- if some of the required fields are null.
-