Class RolloverConditions
java.lang.Object
org.opensearch.client.opensearch.indices.rollover.RolloverConditions
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<RolloverConditions.Builder,RolloverConditions>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RolloverConditions
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<RolloverConditions.Builder,RolloverConditions>
The conditions that trigger an index rollover.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<RolloverConditions> Json deserializer forRolloverConditions -
Method Summary
Modifier and TypeMethodDescriptionstatic RolloverConditions.Builderbuilder()booleaninthashCode()final TimemaxAge()The maximum age of the index before rollover.final LongThe maximum age in milliseconds of the index before rollover.final LongmaxDocs()The maximum number of documents in the index before rollover.final LongThe maximum number of documents in any primary shard before rollover.final StringThe maximum size of any primary shard in the index before rollover.final LongThe maximum size in bytes of any primary shard in the index before rollover.final StringmaxSize()The maximum size of the index before rollover.final LongThe maximum size in bytes of the index before rollover.final TimeminAge()The minimum age of the index before rollover.final LongminDocs()The minimum number of documents in the index before rollover.final LongThe minimum number of documents in any primary shard before rollover.final StringThe minimum size of any primary shard in the index before rollover.final LongThe minimum size in bytes of any primary shard in the index before rollover.final StringminSize()The minimum size of the index before rollover.final LongThe minimum size in bytes of the index before rollover.static RolloverConditionsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_DESERIALIZER
Json deserializer forRolloverConditions
-
-
Method Details
-
of
public static RolloverConditions of(Function<RolloverConditions.Builder, ObjectBuilder<RolloverConditions>> fn) -
maxAge
The maximum age of the index before rollover.API name:
max_age -
maxAgeMillis
The maximum age in milliseconds of the index before rollover.API name:
max_age_millis -
maxDocs
The maximum number of documents in the index before rollover.API name:
max_docs -
maxPrimaryShardDocs
The maximum number of documents in any primary shard before rollover.API name:
max_primary_shard_docs -
maxPrimaryShardSize
The maximum size of any primary shard in the index before rollover.API name:
max_primary_shard_size -
maxPrimaryShardSizeBytes
The maximum size in bytes of any primary shard in the index before rollover.API name:
max_primary_shard_size_bytes -
maxSize
The maximum size of the index before rollover.API name:
max_size -
maxSizeBytes
The maximum size in bytes of the index before rollover.API name:
max_size_bytes -
minAge
The minimum age of the index before rollover.API name:
min_age -
minDocs
The minimum number of documents in the index before rollover.API name:
min_docs -
minPrimaryShardDocs
The minimum number of documents in any primary shard before rollover.API name:
min_primary_shard_docs -
minPrimaryShardSize
The minimum size of any primary shard in the index before rollover.API name:
min_primary_shard_size -
minPrimaryShardSizeBytes
The minimum size in bytes of any primary shard in the index before rollover.API name:
min_primary_shard_size_bytes -
minSize
The minimum size of the index before rollover.API name:
min_size -
minSizeBytes
The minimum size in bytes of the index before rollover.API name:
min_size_bytes -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<RolloverConditions.Builder,RolloverConditions> - Returns:
- a new builder instance.
-
builder
-
setupRolloverConditionsDeserializer
protected static void setupRolloverConditionsDeserializer(ObjectDeserializer<RolloverConditions.Builder> op) -
hashCode
public int hashCode() -
equals
-