Class IndexRoutingAllocation.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.IndexRoutingAllocation.Builder
- All Implemented Interfaces:
CopyableBuilder<IndexRoutingAllocation.Builder,,IndexRoutingAllocation> MutableBuilder<IndexRoutingAllocation.Builder,,IndexRoutingAllocation> ObjectBuilder<IndexRoutingAllocation>
- Enclosing class:
IndexRoutingAllocation
public static class IndexRoutingAllocation.Builder
extends ObjectBuilderBase
implements CopyableBuilder<IndexRoutingAllocation.Builder,IndexRoutingAllocation>
Builder for
IndexRoutingAllocation.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndexRoutingAllocation.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:diskdisk(IndexRoutingAllocationDisk value) API name:diskAPI name:enableinclude(Function<IndexRoutingAllocationInclude.Builder, ObjectBuilder<IndexRoutingAllocationInclude>> fn) API name:includeAPI name:includeinitialRecovery(Function<IndexRoutingAllocationInitialRecovery.Builder, ObjectBuilder<IndexRoutingAllocationInitialRecovery>> fn) API name:initial_recoveryAPI name:initial_recoverytotalPrimaryShardsPerNode(Integer value) API name:total_primary_shards_per_nodetotalShardsPerNode(Integer value) API name:total_shards_per_nodeMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<IndexRoutingAllocation.Builder,IndexRoutingAllocation> - Returns:
- a new builder instance.
-
disk
@Nonnull public final IndexRoutingAllocation.Builder disk(@Nullable IndexRoutingAllocationDisk value) API name:disk -
disk
@Nonnull public final IndexRoutingAllocation.Builder disk(Function<IndexRoutingAllocationDisk.Builder, ObjectBuilder<IndexRoutingAllocationDisk>> fn) API name:disk -
enable
@Nonnull public final IndexRoutingAllocation.Builder enable(@Nullable IndexRoutingAllocationOptions value) API name:enable -
include
@Nonnull public final IndexRoutingAllocation.Builder include(@Nullable IndexRoutingAllocationInclude value) API name:include -
include
@Nonnull public final IndexRoutingAllocation.Builder include(Function<IndexRoutingAllocationInclude.Builder, ObjectBuilder<IndexRoutingAllocationInclude>> fn) API name:include -
initialRecovery
@Nonnull public final IndexRoutingAllocation.Builder initialRecovery(@Nullable IndexRoutingAllocationInitialRecovery value) API name:initial_recovery -
initialRecovery
@Nonnull public final IndexRoutingAllocation.Builder initialRecovery(Function<IndexRoutingAllocationInitialRecovery.Builder, ObjectBuilder<IndexRoutingAllocationInitialRecovery>> fn) API name:initial_recovery -
totalPrimaryShardsPerNode
@Nonnull public final IndexRoutingAllocation.Builder totalPrimaryShardsPerNode(@Nullable Integer value) API name:total_primary_shards_per_node -
totalShardsPerNode
API name:total_shards_per_node -
build
Builds aIndexRoutingAllocation.- Specified by:
buildin interfaceObjectBuilder<IndexRoutingAllocation>- Throws:
NullPointerException- if some of the required fields are null.
-