Class Translog.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.Translog.Builder
-
- All Implemented Interfaces:
ObjectBuilder<Translog>
- Enclosing class:
- Translog
public static class Translog.Builder extends ObjectBuilderBase implements ObjectBuilder<Translog>
Builder forTranslog
.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods 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
syncInterval(Time value)
API name:sync_interval
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
durability
public final Translog.Builder durability(@Nullable java.lang.String value)
API name:durability
-
flushThresholdSize
public final Translog.Builder flushThresholdSize(@Nullable java.lang.String value)
API name:flush_threshold_size
-
syncInterval
public final Translog.Builder syncInterval(@Nullable Time value)
API name:sync_interval
-
build
public Translog build()
Builds aTranslog
.- Specified by:
build
in interfaceObjectBuilder<Translog>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-