Class SoftDeletes.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.SoftDeletes.Builder
- All Implemented Interfaces:
CopyableBuilder<SoftDeletes.Builder,,SoftDeletes> MutableBuilder<SoftDeletes.Builder,,SoftDeletes> ObjectBuilder<SoftDeletes>
- Enclosing class:
SoftDeletes
public static class SoftDeletes.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SoftDeletes.Builder,SoftDeletes>
Builder for
SoftDeletes.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSoftDeletes.copy()Create a new builderCopyableBuilderthat is a copy of this one.final SoftDeletes.BuilderWhether soft deletes are enabled on the index.final SoftDeletes.BuilderAPI name:retentionfinal SoftDeletes.Builderretention(SoftDeletesRetention value) API name:retentionfinal SoftDeletes.BuilderAPI name:retention_leasefinal SoftDeletes.BuilderretentionLease(RetentionLease value) API name:retention_leaseMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<SoftDeletes.Builder,SoftDeletes> - Returns:
- a new builder instance.
-
enabled
Whether soft deletes are enabled on the index.API name:
enabled -
retention
API name:retention -
retention
@Nonnull public final SoftDeletes.Builder retention(Function<SoftDeletesRetention.Builder, ObjectBuilder<SoftDeletesRetention>> fn) API name:retention -
retentionLease
API name:retention_lease -
retentionLease
@Nonnull public final SoftDeletes.Builder retentionLease(Function<RetentionLease.Builder, ObjectBuilder<RetentionLease>> fn) API name:retention_lease -
build
Builds aSoftDeletes.- Specified by:
buildin interfaceObjectBuilder<SoftDeletes>- Throws:
NullPointerException- if some of the required fields are null.
-