Class Translog.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.indices.Translog.Builder
- All Implemented Interfaces:
ObjectBuilder<Translog>
- Enclosing class:
- Translog
public static class Translog.Builder extends ObjectBuilderBase implements ObjectBuilder<Translog>
Builder for
Translog
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Translog
build()
Builds aTranslog
.Translog.Builder
durability(java.lang.String value)
API name:durability
Translog.Builder
flushThresholdSize(java.lang.String value)
API name:flush_threshold_size
Translog.Builder
retention(TranslogRetention value)
API name:retention
Translog.Builder
retention(java.util.function.Function<TranslogRetention.Builder,ObjectBuilder<TranslogRetention>> fn)
API name:retention
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
durability
API name:durability
-
flushThresholdSize
API name:flush_threshold_size
-
retention
API name:retention
-
retention
public final Translog.Builder retention(java.util.function.Function<TranslogRetention.Builder,ObjectBuilder<TranslogRetention>> fn)API name:retention
-
build
Builds aTranslog
.- Specified by:
build
in interfaceObjectBuilder<Translog>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-