Class Translog.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.Translog.Builder
- All Implemented Interfaces:
CopyableBuilder<Translog.Builder,,Translog> MutableBuilder<Translog.Builder,,Translog> ObjectBuilder<Translog>
- Enclosing class:
Translog
public static class Translog.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Translog.Builder,Translog>
Builder for
Translog.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTranslog.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Translog.Builderdurability(TranslogDurability value) API name:durabilityfinal Translog.BuilderflushThresholdSize(String value) API name:flush_threshold_sizefinal Translog.BuildergenerationThresholdSize(String value) API name:generation_threshold_sizefinal Translog.BuilderAPI name:retentionfinal Translog.Builderretention(TranslogRetention value) API name:retentionfinal Translog.BuilderAPI name:sync_intervalfinal Translog.BuildersyncInterval(Time value) API name:sync_intervalMethods 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<Translog.Builder,Translog> - Returns:
- a new builder instance.
-
durability
API name:durability -
flushThresholdSize
API name:flush_threshold_size -
generationThresholdSize
API name:generation_threshold_size -
retention
API name:retention -
retention
@Nonnull public final Translog.Builder retention(Function<TranslogRetention.Builder, ObjectBuilder<TranslogRetention>> fn) API name:retention -
syncInterval
API name:sync_interval -
syncInterval
API name:sync_interval -
build
Builds aTranslog.- Specified by:
buildin interfaceObjectBuilder<Translog>- Throws:
NullPointerException- if some of the required fields are null.
-