Class IndexRoutingAllocation.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndexRoutingAllocation.Builder>
co.elastic.clients.elasticsearch.indices.IndexRoutingAllocation.Builder
- All Implemented Interfaces:
WithJson<IndexRoutingAllocation.Builder>
,ObjectBuilder<IndexRoutingAllocation>
- Enclosing class:
- IndexRoutingAllocation
public static class IndexRoutingAllocation.Builder extends WithJsonObjectBuilderBase<IndexRoutingAllocation.Builder> implements ObjectBuilder<IndexRoutingAllocation>
Builder for
IndexRoutingAllocation
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
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
-
enable
API name:enable
-
include
API name:include
-
include
public final IndexRoutingAllocation.Builder include(java.util.function.Function<IndexRoutingAllocationInclude.Builder,ObjectBuilder<IndexRoutingAllocationInclude>> fn)API name:include
-
initialRecovery
public final IndexRoutingAllocation.Builder initialRecovery(@Nullable IndexRoutingAllocationInitialRecovery value)API name:initial_recovery
-
initialRecovery
public final IndexRoutingAllocation.Builder initialRecovery(java.util.function.Function<IndexRoutingAllocationInitialRecovery.Builder,ObjectBuilder<IndexRoutingAllocationInitialRecovery>> fn)API name:initial_recovery
-
disk
API name:disk
-
disk
public final IndexRoutingAllocation.Builder disk(java.util.function.Function<IndexRoutingAllocationDisk.Builder,ObjectBuilder<IndexRoutingAllocationDisk>> fn)API name:disk
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<IndexRoutingAllocation.Builder>
-
build
Builds aIndexRoutingAllocation
.- Specified by:
build
in interfaceObjectBuilder<IndexRoutingAllocation>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-