Class SplitRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<SplitRequest.Builder>
org.opensearch.client.opensearch.indices.SplitRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<SplitRequest.Builder,,SplitRequest> MutableBuilder<SplitRequest.Builder,,SplitRequest> ObjectBuilder<SplitRequest>
- Enclosing class:
SplitRequest
public static class SplitRequest.Builder
extends RequestBase.AbstractBuilder<SplitRequest.Builder>
implements CopyableBuilder<SplitRequest.Builder,SplitRequest>
Builder for
SplitRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SplitRequest.Builderaliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases for the resulting index.final SplitRequest.BuilderAliases for the resulting index.final SplitRequest.BuilderAliases for the resulting index.build()Builds aSplitRequest.final SplitRequest.BuilderOperation timeout for connection to cluster-manager node.final SplitRequest.BuilderclusterManagerTimeout(Time value) Operation timeout for connection to cluster-manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SplitRequest.BuildercopySettings(Boolean value) whether or not to copy settings from the source index.final SplitRequest.BuilderRequired - Name of the source index to split.final SplitRequest.BuilderDeprecated.final SplitRequest.BuildermasterTimeout(Time value) Deprecated.protected SplitRequest.Builderself()final SplitRequest.BuilderConfiguration options for the target index.final SplitRequest.BuilderConfiguration options for the target index.final SplitRequest.BuilderRequired - Name of the target index to create.final SplitRequest.BuilderExplicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.final SplitRequest.BuildertaskExecutionTimeout(Time value) Explicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.final SplitRequest.BuilderPeriod to wait for a response.final SplitRequest.BuilderPeriod to wait for a response.final SplitRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.final SplitRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.final SplitRequest.BuilderwaitForCompletion(Boolean value) Should this request wait until the operation has completed before returning.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder
errorTrace, humanMethods 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<SplitRequest.Builder,SplitRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<SplitRequest.Builder>
-
aliases
Aliases for the resulting index.API name:
aliasesAdds all elements of
maptoaliases. -
aliases
Aliases for the resulting index.API name:
aliasesAdds an entry to
aliases. -
aliases
@Nonnull public final SplitRequest.Builder aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases for the resulting index.API name:
aliasesAdds a value to
aliasesusing a builder lambda. -
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
clusterManagerTimeout
@Nonnull public final SplitRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
copySettings
whether or not to copy settings from the source index.API name:
copy_settings -
index
Required - Name of the source index to split.API name:
index -
masterTimeout
Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
@Deprecated @Nonnull public final SplitRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Deprecated.Period to wait for a connection to the cluster-manager node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
settings
Configuration options for the target index.API name:
settingsAdds all elements of
maptosettings. -
settings
Configuration options for the target index.API name:
settingsAdds an entry to
settings. -
target
Required - Name of the target index to create.API name:
target -
taskExecutionTimeout
Explicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.API name:
task_execution_timeout -
taskExecutionTimeout
@Nonnull public final SplitRequest.Builder taskExecutionTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Explicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.API name:
task_execution_timeout -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
timeout
Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout -
waitForActiveShards
The number of shard copies that must be active before proceeding with the operation. Set toallor any positive integer up to the total number of shards in the index (number_of_replicas+1).API name:
wait_for_active_shards -
waitForActiveShards
@Nonnull public final SplitRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) The number of shard copies that must be active before proceeding with the operation. Set toallor any positive integer up to the total number of shards in the index (number_of_replicas+1).API name:
wait_for_active_shards -
waitForCompletion
Should this request wait until the operation has completed before returning.API name:
wait_for_completion -
build
Builds aSplitRequest.- Specified by:
buildin interfaceObjectBuilder<SplitRequest>- Throws:
NullPointerException- if some of the required fields are null.
-