Class RolloverRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.indices.RolloverRequest
- All Implemented Interfaces:
ElasticsearchCommonRequest,JsonpSerializable
@JsonpDeserializable public final class RolloverRequest extends RequestBase implements JsonpSerializable
-
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,ElasticsearchError>ENDPOINTEndpoint "indices.rollover". -
Constructor Summary
Constructors Constructor Description RolloverRequest(RolloverRequest.Builder builder)RolloverRequest(java.util.function.Function<RolloverRequest.Builder,RolloverRequest.Builder> fn) -
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.java.lang.BooleanincludeTypeName()Whether a type should be included in the body of the mappings.jakarta.json.JsonValuemappings()API name:mappingsjava.lang.StringmasterTimeout()Specify timeout for connection to masterjava.lang.StringnewIndex()The name of the rollover indexvoidserialize(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(DelegatingDeserializer<RolloverRequest.Builder> op)java.lang.Stringtimeout()Explicit operation timeoutjakarta.json.JsonValuewaitForActiveShards()Set the number of active shards to wait for on the newly created rollover index before the operation returns.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRolloverRequest -
ENDPOINT
Endpoint "indices.rollover".
-
-
Constructor Details
-
RolloverRequest
-
RolloverRequest
public RolloverRequest(java.util.function.Function<RolloverRequest.Builder,RolloverRequest.Builder> fn)
-
-
Method Details
-
alias
public java.lang.String alias()Required - The name of the alias to rolloverAPI name:
alias -
newIndex
@Nullable public java.lang.String newIndex()The name of the rollover indexAPI name:
new_index -
dryRun
@Nullable public 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 -
includeTypeName
@Nullable public java.lang.Boolean includeTypeName()Whether a type should be included in the body of the mappings.API name:
include_type_name -
masterTimeout
@Nullable public java.lang.String masterTimeout()Specify timeout for connection to masterAPI name:
master_timeout -
timeout
@Nullable public java.lang.String timeout()Explicit operation timeoutAPI name:
timeout -
waitForActiveShards
@Nullable public jakarta.json.JsonValue 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 -
aliases
API name:aliases -
conditions
API name:conditions -
mappings
@Nullable public jakarta.json.JsonValue mappings()API name:mappings -
settings
API name:settings -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupRolloverRequestDeserializer
protected static void setupRolloverRequestDeserializer(DelegatingDeserializer<RolloverRequest.Builder> op)
-