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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aIndexRoutingAllocation
.disk
(IndexRoutingAllocationDisk value) API name:disk
API name:disk
API name:enable
API name:include
include
(Function<IndexRoutingAllocationInclude.Builder, ObjectBuilder<IndexRoutingAllocationInclude>> fn) API name:include
API name:initial_recovery
initialRecovery
(Function<IndexRoutingAllocationInitialRecovery.Builder, ObjectBuilder<IndexRoutingAllocationInitialRecovery>> fn) API name:initial_recovery
protected IndexRoutingAllocation.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
-
enable
API name:enable
-
include
API name:include
-
include
public final IndexRoutingAllocation.Builder include(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(Function<IndexRoutingAllocationInitialRecovery.Builder, ObjectBuilder<IndexRoutingAllocationInitialRecovery>> fn) API name:initial_recovery
-
disk
API name:disk
-
disk
public final IndexRoutingAllocation.Builder disk(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:
NullPointerException
- if some of the required fields are null.
-