Class IndexRoutingAllocation.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.IndexRoutingAllocation.Builder
-
- All Implemented Interfaces:
ObjectBuilder<IndexRoutingAllocation>
- Enclosing class:
- IndexRoutingAllocation
public static class IndexRoutingAllocation.Builder extends ObjectBuilderBase implements ObjectBuilder<IndexRoutingAllocation>
Builder forIndexRoutingAllocation.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
enable
public final IndexRoutingAllocation.Builder enable(@Nullable IndexRoutingAllocationOptions value)
API name:enable
-
include
public final IndexRoutingAllocation.Builder include(@Nullable IndexRoutingAllocationInclude value)
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
public final IndexRoutingAllocation.Builder disk(@Nullable IndexRoutingAllocationDisk value)
API name:disk
-
disk
public final IndexRoutingAllocation.Builder disk(java.util.function.Function<IndexRoutingAllocationDisk.Builder,ObjectBuilder<IndexRoutingAllocationDisk>> fn)
API name:disk
-
build
public IndexRoutingAllocation build()
Builds aIndexRoutingAllocation.- Specified by:
buildin interfaceObjectBuilder<IndexRoutingAllocation>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-