Class ShardIngestionState.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ingestion.ShardIngestionState.Builder
- All Implemented Interfaces:
CopyableBuilder<ShardIngestionState.Builder,,ShardIngestionState> MutableBuilder<ShardIngestionState.Builder,,ShardIngestionState> ObjectBuilder<ShardIngestionState>
- Enclosing class:
ShardIngestionState
public static class ShardIngestionState.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ShardIngestionState.Builder,ShardIngestionState>
Builder for
ShardIngestionState.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbatchStartPointer(String value) Indicates the shard pointer from where the poller will resume during shard recovery.build()Builds aShardIngestionState.copy()Create a new builderCopyableBuilderthat is a copy of this one.errorPolicy(ErrorPolicy value) Indicates the policy used to handle failed messages.pollerPaused(Boolean value) Indicates if the poller has been paused.pollerState(PollerState value) Indicates the current state of the poller.The shard number.writeBlockEnabled(Boolean value) Indicates if a write block has been created.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<ShardIngestionState.Builder,ShardIngestionState> - Returns:
- a new builder instance.
-
batchStartPointer
Indicates the shard pointer from where the poller will resume during shard recovery.API name:
batch_start_pointer -
errorPolicy
Indicates the policy used to handle failed messages.API name:
error_policy -
pollerPaused
Indicates if the poller has been paused.API name:
poller_paused -
pollerState
Indicates the current state of the poller.API name:
poller_state -
shard
The shard number.API name:
shard -
writeBlockEnabled
Indicates if a write block has been created.API name:
write_block_enabled -
build
Builds aShardIngestionState.- Specified by:
buildin interfaceObjectBuilder<ShardIngestionState>- Throws:
NullPointerException- if some of the required fields are null.
-