Class SnapshotShardsStatus.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.SnapshotShardsStatus.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotShardsStatus.Builder,,SnapshotShardsStatus> MutableBuilder<SnapshotShardsStatus.Builder,,SnapshotShardsStatus> ObjectBuilder<SnapshotShardsStatus>
- Enclosing class:
SnapshotShardsStatus
public static class SnapshotShardsStatus.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SnapshotShardsStatus.Builder,SnapshotShardsStatus>
Builder for
SnapshotShardsStatus.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotShardsStatus.copy()Create a new builderCopyableBuilderthat is a copy of this one.The ID of the node containing the shard.The reason for the current shard status.stage(SnapshotShardsStatsStage value) Required - The current stage of the shard snapshot.Required - The statistical summary of the shard snapshot.stats(SnapshotShardsStatsSummary value) Required - The statistical summary of the shard snapshot.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<SnapshotShardsStatus.Builder,SnapshotShardsStatus> - Returns:
- a new builder instance.
-
node
The ID of the node containing the shard.API name:
node -
reason
The reason for the current shard status.API name:
reason -
stage
Required - The current stage of the shard snapshot.API name:
stage -
stats
Required - The statistical summary of the shard snapshot.API name:
stats -
stats
@Nonnull public final SnapshotShardsStatus.Builder stats(Function<SnapshotShardsStatsSummary.Builder, ObjectBuilder<SnapshotShardsStatsSummary>> fn) Required - The statistical summary of the shard snapshot.API name:
stats -
build
Builds aSnapshotShardsStatus.- Specified by:
buildin interfaceObjectBuilder<SnapshotShardsStatus>- Throws:
NullPointerException- if some of the required fields are null.
-