Class RolloverRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.RolloverRequest
- All Implemented Interfaces:
JsonpSerializable
Updates an alias to point to a new index when the existing index is
considered to be too large or too old.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._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 - The name of the alias to rolloveraliases()API name:aliasesfinal RolloverConditionsAPI name:conditionsfinal BooleandryRun()If set to true the rollover action will only be validated but not actually performed even if a condition matches.final TypeMappingmappings()API name:mappingsfinal TimeSpecify timeout for connection to masterfinal StringnewIndex()The name of the rollover indexstatic RolloverRequestvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()API name:settingsprotected static voidfinal Timetimeout()Explicit operation timeoutfinal WaitForActiveShardsSet the number of active shards to wait for on the newly created rollover index before the operation returns.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
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 - The name of the alias to rolloverAPI name:
alias -
aliases
API name:aliases -
conditions
API name:conditions -
dryRun
If set to true the rollover action will only be validated but not actually performed even if a condition matches. The default is falseAPI name:
dry_run -
mappings
API name:mappings -
masterTimeout
Specify timeout for connection to masterAPI name:
master_timeout -
newIndex
The name of the rollover indexAPI name:
new_index -
settings
API name:settings -
timeout
Explicit operation timeoutAPI name:
timeout -
waitForActiveShards
Set the number of active shards to wait for on the newly created rollover index before the operation returns.API name:
wait_for_active_shards -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupRolloverRequestDeserializer
protected static void setupRolloverRequestDeserializer(ObjectDeserializer<RolloverRequest.Builder> op)
-