Class RolloverRequest.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.RequestBase.AbstractBuilder<RolloverRequest.Builder>
org.opensearch.client.opensearch.indices.RolloverRequest.Builder
- All Implemented Interfaces:
CopyableBuilder<RolloverRequest.Builder,,RolloverRequest> MutableBuilder<RolloverRequest.Builder,,RolloverRequest> ObjectBuilder<RolloverRequest>
- Enclosing class:
RolloverRequest
public static class RolloverRequest.Builder
extends RequestBase.AbstractBuilder<RolloverRequest.Builder>
implements CopyableBuilder<RolloverRequest.Builder,RolloverRequest>
Builder for
RolloverRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RolloverRequest.BuilderRequired - Name of the data stream or index alias to roll over.final RolloverRequest.Builderaliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases for the target index.final RolloverRequest.BuilderAliases for the target index.final RolloverRequest.BuilderAliases for the target index.build()Builds aRolloverRequest.final RolloverRequest.BuilderOperation timeout for connection to cluster-manager node.final RolloverRequest.BuilderclusterManagerTimeout(Time value) Operation timeout for connection to cluster-manager node.final RolloverRequest.BuilderAPI name:conditionsfinal RolloverRequest.Builderconditions(RolloverConditions value) API name:conditionscopy()Create a new builderCopyableBuilderthat is a copy of this one.final RolloverRequest.BuilderIftrue, checks whether the current index satisfies the specified conditions but does not perform a rollover.final RolloverRequest.BuilderAPI name:mappingsfinal RolloverRequest.Buildermappings(TypeMapping value) API name:mappingsfinal RolloverRequest.BuilderDeprecated.final RolloverRequest.BuildermasterTimeout(Time value) Deprecated.final RolloverRequest.BuilderThe name of the index to create.protected RolloverRequest.Builderself()final RolloverRequest.BuilderConfiguration options for the index.final RolloverRequest.BuilderConfiguration options for the index.final RolloverRequest.BuilderPeriod to wait for a response.final RolloverRequest.BuilderPeriod to wait for a response.final RolloverRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.final RolloverRequest.BuilderThe number of shard copies that must be active before proceeding with the operation.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<RolloverRequest.Builder,RolloverRequest> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classRequestBase.AbstractBuilder<RolloverRequest.Builder>
-
alias
Required - Name of the data stream or index alias to roll over.API name:
alias -
aliases
Aliases for the target index. Data streams do not support this parameter.API name:
aliasesAdds all elements of
maptoaliases. -
aliases
Aliases for the target index. Data streams do not support this parameter.API name:
aliasesAdds an entry to
aliases. -
aliases
@Nonnull public final RolloverRequest.Builder aliases(String key, Function<Alias.Builder, ObjectBuilder<Alias>> fn) Aliases for the target index. Data streams do not support this parameter.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 RolloverRequest.Builder clusterManagerTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
conditions
API name:conditions -
conditions
@Nonnull public final RolloverRequest.Builder conditions(Function<RolloverConditions.Builder, ObjectBuilder<RolloverConditions>> fn) API name:conditions -
dryRun
Iftrue, checks whether the current index satisfies the specified conditions but does not perform a rollover.API name:
dry_run -
mappings
API name:mappings -
mappings
@Nonnull public final RolloverRequest.Builder mappings(Function<TypeMapping.Builder, ObjectBuilder<TypeMapping>> fn) API name:mappings -
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 RolloverRequest.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 -
newIndex
The name of the index to create. Supports date math. Data streams do not support this parameter.API name:
new_index -
settings
Configuration options for the index. Data streams do not support this parameter.API name:
settingsAdds all elements of
maptosettings. -
settings
Configuration options for the index. Data streams do not support this parameter.API name:
settingsAdds an entry to
settings. -
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
@Nonnull public final RolloverRequest.Builder timeout(Function<Time.Builder, ObjectBuilder<Time>> fn) 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 RolloverRequest.Builder waitForActiveShards(@Nullable WaitForActiveShards value) The number of shard copies that must be active before proceeding with the operation. Set to all or 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 RolloverRequest.Builder waitForActiveShards(Function<WaitForActiveShards.Builder, ObjectBuilder<WaitForActiveShards>> fn) The number of shard copies that must be active before proceeding with the operation. Set to all or any positive integer up to the total number of shards in the index (number_of_replicas+1).API name:
wait_for_active_shards -
build
Builds aRolloverRequest.- Specified by:
buildin interfaceObjectBuilder<RolloverRequest>- Throws:
NullPointerException- if some of the required fields are null.
-