Class RolloverRequest
java.lang.Object
org.opensearch.client.opensearch._types.RequestBase
org.opensearch.client.opensearch.indices.RolloverRequest
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RolloverRequest.Builder,RolloverRequest>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public final class RolloverRequest
extends RequestBase
implements PlainJsonSerializable, ToCopyableBuilder<RolloverRequest.Builder,RolloverRequest>
Updates an alias to point to a new index when the existing index is considered to be too large or too old.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RolloverRequest> Json deserializer forRolloverRequeststatic final Endpoint<RolloverRequest, RolloverResponse, ErrorResponse> Endpoint "indices.rollover". -
Method Summary
Modifier and TypeMethodDescriptionfinal Stringalias()Required - Name of the data stream or index alias to roll over.aliases()Aliases for the target index.protected voidapplyQueryParameters(Map<String, String> params) static RolloverRequest.Builderbuilder()final TimeOperation timeout for connection to cluster-manager node.final RolloverConditionsAPI name:conditionsfinal BooleandryRun()Iftrue, checks whether the current index satisfies the specified conditions but does not perform a rollover.booleaninthashCode()final TypeMappingmappings()API name:mappingsfinal TimeDeprecated.final StringnewIndex()Name of the index to create.static RolloverRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()Configuration options for the index.protected static voidfinal Timetimeout()Period to wait for a response.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final WaitForActiveShardsThe number of shard copies that must be active before proceeding with the operation.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRolloverRequest -
_ENDPOINT
Endpoint "indices.rollover".
-
-
Method Details
-
of
public static RolloverRequest of(Function<RolloverRequest.Builder, ObjectBuilder<RolloverRequest>> fn) -
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:
aliases -
clusterManagerTimeout
Operation timeout for connection to cluster-manager node.API name:
cluster_manager_timeout -
conditions
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 -
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 -
newIndex
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:
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 -
waitForActiveShards
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 -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RolloverRequest.Builder,RolloverRequest> - Returns:
- a new builder instance.
-
builder
-
setupRolloverRequestDeserializer
protected static void setupRolloverRequestDeserializer(ObjectDeserializer<RolloverRequest.Builder> op) -
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-