Class ShrinkRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<ShrinkRequest.Builder>
org.opensearch.client.opensearch.indices.ShrinkRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<ShrinkRequest.Builder,,ShrinkRequest> MutableBuilder<ShrinkRequest.Builder,,ShrinkRequest> ObjectBuilder<ShrinkRequest>
- Enclosing class:
ShrinkRequest
public static class ShrinkRequest.Builder
extends RequestBase.AbstractBuilder<ShrinkRequest.Builder>
implements CopyableBuilder<ShrinkRequest.Builder,ShrinkRequest>
Builder for
ShrinkRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ShrinkRequest.Builderaliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) The key is the alias name.final ShrinkRequest.BuilderThe key is the alias name.final ShrinkRequest.BuilderThe key is the alias name.build()Builds aShrinkRequest.final ShrinkRequest.BuilderOperation timeout for connection to cluster-manager node.final ShrinkRequest.BuilderclusterManagerTimeout(Time value) Operation timeout for connection to cluster-manager node.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ShrinkRequest.BuildercopySettings(Boolean value) whether or not to copy settings from the source index.final ShrinkRequest.BuilderRequired - Name of the source index to shrink.final ShrinkRequest.BuilderDeprecated.final ShrinkRequest.BuildermasterTimeout(Time value) Deprecated.protected ShrinkRequest.Builderself()final ShrinkRequest.BuilderConfiguration options for the target index.final ShrinkRequest.BuilderConfiguration options for the target index.final ShrinkRequest.BuilderRequired - Name of the target index to create.final ShrinkRequest.BuilderExplicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.final ShrinkRequest.BuildertaskExecutionTimeout(Time value) Explicit task execution timeout, only useful whenwait_for_completionis false, defaults to1h.final ShrinkRequest.BuilderPeriod to wait for a response.final ShrinkRequest.BuilderPeriod to wait for a response.final ShrinkRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.final ShrinkRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.final ShrinkRequest.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<ShrinkRequest.Builder,ShrinkRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<ShrinkRequest.Builder>
-
aliases
The key is the alias name. Index alias names support date math.API name:
aliasesAdds all elements of
maptoaliases. -
aliases
The key is the alias name. Index alias names support date math.API name:
aliasesAdds an entry to
aliases. -
aliases
@Nonnull public final ShrinkRequest.Builder aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) The key is the alias name. Index alias names support date math.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 ShrinkRequest.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 shrink.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 ShrinkRequest.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 ShrinkRequest.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
@Nonnull public final ShrinkRequest.Builder waitForActiveShards(@Nullable WaitForActiveShards value) 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 ShrinkRequest.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 aShrinkRequest.- Specified by:
buildin interfaceObjectBuilder<ShrinkRequest>- Throws:
NullPointerException- if some of the required fields are null.
-