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 -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexRoutingAllocation.disk(IndexRoutingAllocationDisk value) API name:diskAPI name:diskAPI name:enableAPI name:includeinclude(Function<IndexRoutingAllocationInclude.Builder, ObjectBuilder<IndexRoutingAllocationInclude>> fn) API name:includeAPI name:initial_recoveryinitialRecovery(Function<IndexRoutingAllocationInitialRecovery.Builder, ObjectBuilder<IndexRoutingAllocationInitialRecovery>> fn) API name:initial_recoveryprotected IndexRoutingAllocation.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
-
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:
selfin classWithJsonObjectBuilderBase<IndexRoutingAllocation.Builder>
-
build
Builds aIndexRoutingAllocation.- Specified by:
buildin interfaceObjectBuilder<IndexRoutingAllocation>- Throws:
NullPointerException- if some of the required fields are null.
-