Class IndexSettingsLifecycle
java.lang.Object
org.opensearch.client.opensearch.indices.IndexSettingsLifecycle
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<IndexSettingsLifecycle.Builder,IndexSettingsLifecycle>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class IndexSettingsLifecycle
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<IndexSettingsLifecycle.Builder,IndexSettingsLifecycle>
The index lifecycle management configuration.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<IndexSettingsLifecycle> Json deserializer forIndexSettingsLifecycle -
Method Summary
Modifier and TypeMethodDescriptionbuilder()booleaninthashCode()final BooleanAPI name:indexing_completefinal Stringname()Required - API name:namestatic IndexSettingsLifecyclefinal LongThe timestamp used to calculate the index age for its phase transitions.final BooleanWhentrue, parses the origination date from the index name.final StringThe index alias to update when the index rolls over.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidstep()API name:stepCreate 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 forIndexSettingsLifecycle
-
-
Method Details
-
of
public static IndexSettingsLifecycle of(Function<IndexSettingsLifecycle.Builder, ObjectBuilder<IndexSettingsLifecycle>> fn) -
indexingComplete
API name:indexing_complete -
name
Required - API name:name -
originationDate
The timestamp used to calculate the index age for its phase transitions. Use this setting if you create a new index that contains old data and want to use the original creation date to calculate the index age. Specified as a Unix epoch value in milliseconds.API name:
origination_date -
parseOriginationDate
Whentrue, parses the origination date from the index name. This origination date is used to calculate the index age for its phase transitions. The index name must match the pattern^.*-{date_format}-\\d+, where thedate_formatisyyyy.MM.ddand the trailing digits are optional. An index that was rolled over would normally match the full format, for examplelogs-2016.10.31-000002). If the index name doesn't match the pattern, index creation fails.API name:
parse_origination_date -
rolloverAlias
The index alias to update when the index rolls over. Specify when using a policy that contains a rollover action. When the index rolls over, the alias is updated to reflect that the index is no longer the write index. For more information about rolling indexes, see Rollover.API name:
rollover_alias -
step
API name:step -
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<IndexSettingsLifecycle.Builder,IndexSettingsLifecycle> - Returns:
- a new builder instance.
-
builder
-
setupIndexSettingsLifecycleDeserializer
protected static void setupIndexSettingsLifecycleDeserializer(ObjectDeserializer<IndexSettingsLifecycle.Builder> op) -
hashCode
public int hashCode() -
equals
-