Class SnapshotShardFailure.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.SnapshotShardFailure.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotShardFailure.Builder,,SnapshotShardFailure> MutableBuilder<SnapshotShardFailure.Builder,,SnapshotShardFailure> ObjectBuilder<SnapshotShardFailure>
- Enclosing class:
SnapshotShardFailure
public static class SnapshotShardFailure.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SnapshotShardFailure.Builder,SnapshotShardFailure>
Builder for
SnapshotShardFailure.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotShardFailure.copy()Create a new builderCopyableBuilderthat is a copy of this one.The name of the index containing the failed shard.The ID of the node where the shard failure occurred.The reason for the shard failure.The ID of the failed shard.The status of the failed shard.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<SnapshotShardFailure.Builder,SnapshotShardFailure> - Returns:
- a new builder instance.
-
index
The name of the index containing the failed shard.API name:
index -
nodeId
The ID of the node where the shard failure occurred.API name:
node_id -
reason
The reason for the shard failure.API name:
reason -
shardId
The ID of the failed shard.API name:
shard_id -
status
The status of the failed shard.API name:
status -
build
Builds aSnapshotShardFailure.- Specified by:
buildin interfaceObjectBuilder<SnapshotShardFailure>- Throws:
NullPointerException- if some of the required fields are null.
-