Class ShardSequenceNumber.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.indices.stats.ShardSequenceNumber.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardSequenceNumber.Builder,,ShardSequenceNumber> MutableBuilder<ShardSequenceNumber.Builder,,ShardSequenceNumber> ObjectBuilder<ShardSequenceNumber>
- Enclosing class:
ShardSequenceNumber
public static class ShardSequenceNumber.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardSequenceNumber.Builder,ShardSequenceNumber>
Builder for
ShardSequenceNumber.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aShardSequenceNumber.copy()Create a new builderCopyableBuilderthat is a copy of this one.globalCheckpoint(long value) Required - The global checkpoint for the shard.localCheckpoint(long value) Required - The local checkpoint for the shard.maxSeqNo(long value) Required - API name:max_seq_noMethods 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<ShardSequenceNumber.Builder,ShardSequenceNumber> - Returns:
- a new builder instance.
-
globalCheckpoint
Required - The global checkpoint for the shard.API name:
global_checkpoint -
localCheckpoint
Required - The local checkpoint for the shard.API name:
local_checkpoint -
maxSeqNo
Required - API name:max_seq_no -
build
Builds aShardSequenceNumber.- Specified by:
buildin interfaceObjectBuilder<ShardSequenceNumber>- Throws:
NullPointerException- if some of the required fields are null.
-