Class TranslogStats.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.TranslogStats.Builder
- All Implemented Interfaces:
CopyableBuilder<TranslogStats.Builder,,TranslogStats> MutableBuilder<TranslogStats.Builder,,TranslogStats> ObjectBuilder<TranslogStats>
- Enclosing class:
TranslogStats
public static class TranslogStats.Builder
extends ObjectBuilderBase
implements CopyableBuilder<TranslogStats.Builder,TranslogStats>
Builder for
TranslogStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aTranslogStats.copy()Create a new builderCopyableBuilderthat is a copy of this one.final TranslogStats.BuilderearliestLastModifiedAge(long value) Required - The age of the oldest translog entry.final TranslogStats.Builderoperations(int value) Required - The number of operations in the translog.final TranslogStats.BuilderAPI name:remote_storefinal TranslogStats.BuilderAPI name:remote_storefinal TranslogStats.BuilderThe size of the translog in a human-readable format.final TranslogStats.BuildersizeInBytes(long value) Required - The size of the translog in bytes.final TranslogStats.BuilderuncommittedOperations(int value) Required - The number of uncommitted operations in the translog.final TranslogStats.BuilderuncommittedSize(String value) The size of uncommitted operations in a human-readable format.final TranslogStats.BuilderuncommittedSizeInBytes(long value) Required - The size of uncommitted operations in bytes.Methods 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<TranslogStats.Builder,TranslogStats> - Returns:
- a new builder instance.
-
earliestLastModifiedAge
Required - The age of the oldest translog entry.API name:
earliest_last_modified_age -
operations
Required - The number of operations in the translog.API name:
operations -
remoteStore
API name:remote_store -
remoteStore
@Nonnull public final TranslogStats.Builder remoteStore(Function<RemoteStoreTranslogStats.Builder, ObjectBuilder<RemoteStoreTranslogStats>> fn) API name:remote_store -
size
The size of the translog in a human-readable format.API name:
size -
sizeInBytes
Required - The size of the translog in bytes.API name:
size_in_bytes -
uncommittedOperations
Required - The number of uncommitted operations in the translog.API name:
uncommitted_operations -
uncommittedSize
The size of uncommitted operations in a human-readable format.API name:
uncommitted_size -
uncommittedSizeInBytes
Required - The size of uncommitted operations in bytes.API name:
uncommitted_size_in_bytes -
build
Builds aTranslogStats.- Specified by:
buildin interfaceObjectBuilder<TranslogStats>- Throws:
NullPointerException- if some of the required fields are null.
-