Class RolloverRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.RolloverRequest
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class RolloverRequest extends RequestBase implements 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:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRolloverRequest.BuilderBuilder forRolloverRequest.Nested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RolloverRequest>_DESERIALIZERJson deserializer forRolloverRequeststatic Endpoint<RolloverRequest,RolloverResponse,ErrorResponse>_ENDPOINTEndpoint "indices.rollover". -
Method Summary
Modifier and Type Method Description java.lang.Stringalias()Required - The name of the alias to rolloverjava.util.Map<java.lang.String,Alias>aliases()API name:aliasesRolloverConditionsconditions()API name:conditionsjava.lang.BooleandryRun()If set to true the rollover action will only be validated but not actually performed even if a condition matches.TypeMappingmappings()API name:mappingsTimemasterTimeout()Specify timeout for connection to masterjava.lang.StringnewIndex()The name of the rollover indexstatic RolloverRequestof(java.util.function.Function<RolloverRequest.Builder,ObjectBuilder<RolloverRequest>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)java.util.Map<java.lang.String,JsonData>settings()API name:settingsprotected static voidsetupRolloverRequestDeserializer(ObjectDeserializer<RolloverRequest.Builder> op)Timetimeout()Explicit operation timeoutWaitForActiveShardswaitForActiveShards()Set 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
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRolloverRequest -
_ENDPOINT
Endpoint "indices.rollover".
-
-
Method Details
-
of
public static RolloverRequest of(java.util.function.Function<RolloverRequest.Builder,ObjectBuilder<RolloverRequest>> fn) -
alias
public final java.lang.String alias()Required - The name of the alias to rolloverAPI name:
alias -
aliases
API name:aliases -
conditions
API name:conditions -
dryRun
@Nullable public final java.lang.Boolean 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
@Nullable public final java.lang.String 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)
-