Class SoftDeletes.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SoftDeletes.Builder>
co.elastic.clients.elasticsearch.indices.SoftDeletes.Builder
- All Implemented Interfaces:
WithJson<SoftDeletes.Builder>,ObjectBuilder<SoftDeletes>
- Enclosing class:
- SoftDeletes
public static class SoftDeletes.Builder extends WithJsonObjectBuilderBase<SoftDeletes.Builder> implements ObjectBuilder<SoftDeletes>
Builder for
SoftDeletes.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SoftDeletesbuild()Builds aSoftDeletes.SoftDeletes.Builderenabled(boolean value)Required - API name:enabledSoftDeletes.BuilderretentionLeasePeriod(Time value)API name:retention_lease.periodSoftDeletes.BuilderretentionLeasePeriod(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:retention_lease.periodprotected SoftDeletes.Builderself()Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
enabled
Required - API name:enabled -
retentionLeasePeriod
API name:retention_lease.period -
retentionLeasePeriod
public final SoftDeletes.Builder retentionLeasePeriod(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)API name:retention_lease.period -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SoftDeletes.Builder>
-
build
Builds aSoftDeletes.- Specified by:
buildin interfaceObjectBuilder<SoftDeletes>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-