Class SplitRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.indices.SplitRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<SplitRequest>
- Enclosing class:
- SplitRequest
public static class SplitRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<SplitRequest>
Builder for
SplitRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SplitRequest.Builderaliases(java.lang.String key, Alias value)API name:aliasesSplitRequest.Builderaliases(java.lang.String key, java.util.function.Function<Alias.Builder,ObjectBuilder<Alias>> fn)API name:aliasesSplitRequest.Builderaliases(java.util.Map<java.lang.String,Alias> map)API name:aliasesSplitRequestbuild()Builds aSplitRequest.SplitRequest.Builderindex(java.lang.String value)Required - The name of the source index to splitSplitRequest.BuildermasterTimeout(Time value)Specify timeout for connection to masterSplitRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Specify timeout for connection to masterSplitRequest.Buildersettings(java.lang.String key, JsonData value)API name:settingsSplitRequest.Buildersettings(java.util.Map<java.lang.String,JsonData> map)API name:settingsSplitRequest.Buildertarget(java.lang.String value)Required - The name of the target index to split intoSplitRequest.Buildertimeout(Time value)Explicit operation timeoutSplitRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutSplitRequest.BuilderwaitForActiveShards(WaitForActiveShards value)Set the number of active shards to wait for on the shrunken index before the operation returns.SplitRequest.BuilderwaitForActiveShards(java.util.function.Function<WaitForActiveShards.Builder,ObjectBuilder<WaitForActiveShards>> fn)Set the number of active shards to wait for on the shrunken index before the operation returns.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aliases
API name:aliasesAdds all entries of
maptoaliases. -
aliases
API name:aliasesAdds an entry to
aliases. -
aliases
public final SplitRequest.Builder aliases(java.lang.String key, java.util.function.Function<Alias.Builder,ObjectBuilder<Alias>> fn)API name:aliasesAdds an entry to
aliasesusing a builder lambda. -
index
Required - The name of the source index to splitAPI name:
index -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout -
masterTimeout
public final SplitRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Specify timeout for connection to masterAPI name:
master_timeout -
settings
API name:settingsAdds all entries of
maptosettings. -
settings
API name:settingsAdds an entry to
settings. -
target
Required - The name of the target index to split intoAPI name:
target -
timeout
Explicit operation timeoutAPI name:
timeout -
timeout
public final SplitRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutAPI name:
timeout -
waitForActiveShards
Set the number of active shards to wait for on the shrunken index before the operation returns.API name:
wait_for_active_shards -
waitForActiveShards
public final SplitRequest.Builder waitForActiveShards(java.util.function.Function<WaitForActiveShards.Builder,ObjectBuilder<WaitForActiveShards>> fn)Set the number of active shards to wait for on the shrunken index before the operation returns.API name:
wait_for_active_shards -
build
Builds aSplitRequest.- Specified by:
buildin interfaceObjectBuilder<SplitRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-