Class SoftDeletes
java.lang.Object
org.opensearch.client.opensearch.indices.SoftDeletes
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,ToCopyableBuilder<SoftDeletes.Builder,SoftDeletes>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SoftDeletes
extends Object
implements PlainJsonSerializable, ToCopyableBuilder<SoftDeletes.Builder,SoftDeletes>
The configuration for soft deletes.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<SoftDeletes> Json deserializer forSoftDeletes -
Method Summary
Modifier and TypeMethodDescriptionstatic SoftDeletes.Builderbuilder()final Booleanenabled()Whether soft deletes are enabled on the index.booleaninthashCode()static SoftDeletesfinal SoftDeletesRetentionAPI name:retentionfinal RetentionLeaseAPI name:retention_leasevoidserialize(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 forSoftDeletes
-
-
Method Details
-
of
-
enabled
Whether soft deletes are enabled on the index.API name:
enabled -
retention
API name:retention -
retentionLease
API name:retention_lease -
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<SoftDeletes.Builder,SoftDeletes> - Returns:
- a new builder instance.
-
builder
-
setupSoftDeletesDeserializer
-
hashCode
public int hashCode() -
equals
-