Class RolloverRequest
- java.lang.Object
-
- org.opensearch.client.opensearch._types.RequestBase
-
- org.opensearch.client.opensearch.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRolloverRequest.BuilderBuilder forRolloverRequest.-
Nested classes/interfaces inherited from class org.opensearch.client.opensearch._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
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 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:aliasesTimeclusterManagerTimeout()Specify timeout for connection to cluster-managerRolloverConditionsconditions()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.IndexRolloverMappingmappings()API name:mappingsTimemasterTimeout()Deprecated.java.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.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<RolloverRequest> _DESERIALIZER
Json deserializer forRolloverRequest
-
_ENDPOINT
public static final Endpoint<RolloverRequest,RolloverResponse,ErrorResponse> _ENDPOINT
Endpoint "indices.rollover".
-
-
Method Detail
-
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
public final java.util.Map<java.lang.String,Alias> aliases()
API name:aliases
-
conditions
@Nullable public final RolloverConditions 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
@Nullable public final IndexRolloverMapping mappings()
API name:mappings
-
masterTimeout
@Deprecated @Nullable public final Time masterTimeout()
Deprecated.Specify timeout for connection to masterAPI name:
master_timeout
-
clusterManagerTimeout
@Nullable public final Time clusterManagerTimeout()
Specify timeout for connection to cluster-managerAPI name:
cluster_manager_timeout
-
newIndex
@Nullable public final java.lang.String newIndex()
The name of the rollover indexAPI name:
new_index
-
settings
public final java.util.Map<java.lang.String,JsonData> settings()
API name:settings
-
timeout
@Nullable public final Time timeout()
Explicit operation timeoutAPI name:
timeout
-
waitForActiveShards
@Nullable public final WaitForActiveShards 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
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
-
setupRolloverRequestDeserializer
protected static void setupRolloverRequestDeserializer(ObjectDeserializer<RolloverRequest.Builder> op)
-
-