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 classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
Modifier and TypeFieldDescriptionstatic final JsonpDeserializer<RolloverRequest>
Json deserializer forRolloverRequest
static final Endpoint<RolloverRequest,
RolloverResponse, ErrorResponse> Endpoint "indices.rollover
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
alias()
Required - The name of the alias to rolloveraliases()
API name:aliases
final RolloverConditions
API name:conditions
final Boolean
dryRun()
If set to true the rollover action will only be validated but not actually performed even if a condition matches.final TypeMapping
mappings()
API name:mappings
final Time
Specify timeout for connection to masterfinal String
newIndex()
The name of the rollover indexstatic RolloverRequest
void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) settings()
API name:settings
protected static void
final Time
timeout()
Explicit operation timeoutfinal WaitForActiveShards
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
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:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupRolloverRequestDeserializer
protected static void setupRolloverRequestDeserializer(ObjectDeserializer<RolloverRequest.Builder> op)
-