Class SnapshotShardsStatsSummary.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.SnapshotShardsStatsSummary.Builder
- All Implemented Interfaces:
CopyableBuilder<SnapshotShardsStatsSummary.Builder,,SnapshotShardsStatsSummary> MutableBuilder<SnapshotShardsStatsSummary.Builder,,SnapshotShardsStatsSummary> ObjectBuilder<SnapshotShardsStatsSummary>
- Enclosing class:
SnapshotShardsStatsSummary
public static class SnapshotShardsStatsSummary.Builder
extends ObjectBuilderBase
implements CopyableBuilder<SnapshotShardsStatsSummary.Builder,SnapshotShardsStatsSummary>
Builder for
SnapshotShardsStatsSummary.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotShardsStatsSummary.copy()Create a new builderCopyableBuilderthat is a copy of this one.incremental(Function<SnapshotShardsStatsSummaryItem.Builder, ObjectBuilder<SnapshotShardsStatsSummaryItem>> fn) The incremental statistics for the shard snapshot.The incremental statistics for the shard snapshot.processed(Function<SnapshotShardsStatsSummaryItem.Builder, ObjectBuilder<SnapshotShardsStatsSummaryItem>> fn) The processed statistics for the shard snapshot.The processed statistics for the shard snapshot.startTimeInMillis(Long value) When the shard snapshot started in milliseconds.The total time taken for the shard snapshot.The total time taken for the shard snapshot.timeInMillis(Long value) The total time taken for the shard snapshot in milliseconds.total(Function<SnapshotShardsStatsSummaryItem.Builder, ObjectBuilder<SnapshotShardsStatsSummaryItem>> fn) The total statistics for the shard snapshot.The total statistics for 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<SnapshotShardsStatsSummary.Builder,SnapshotShardsStatsSummary> - Returns:
- a new builder instance.
-
incremental
@Nonnull public final SnapshotShardsStatsSummary.Builder incremental(@Nullable SnapshotShardsStatsSummaryItem value) The incremental statistics for the shard snapshot.API name:
incremental -
incremental
@Nonnull public final SnapshotShardsStatsSummary.Builder incremental(Function<SnapshotShardsStatsSummaryItem.Builder, ObjectBuilder<SnapshotShardsStatsSummaryItem>> fn) The incremental statistics for the shard snapshot.API name:
incremental -
processed
@Nonnull public final SnapshotShardsStatsSummary.Builder processed(@Nullable SnapshotShardsStatsSummaryItem value) The processed statistics for the shard snapshot.API name:
processed -
processed
@Nonnull public final SnapshotShardsStatsSummary.Builder processed(Function<SnapshotShardsStatsSummaryItem.Builder, ObjectBuilder<SnapshotShardsStatsSummaryItem>> fn) The processed statistics for the shard snapshot.API name:
processed -
startTimeInMillis
When the shard snapshot started in milliseconds.API name:
start_time_in_millis -
time
The total time taken for the shard snapshot.API name:
time -
time
@Nonnull public final SnapshotShardsStatsSummary.Builder time(Function<Time.Builder, ObjectBuilder<Time>> fn) The total time taken for the shard snapshot.API name:
time -
timeInMillis
The total time taken for the shard snapshot in milliseconds.API name:
time_in_millis -
total
@Nonnull public final SnapshotShardsStatsSummary.Builder total(@Nullable SnapshotShardsStatsSummaryItem value) The total statistics for the shard snapshot.API name:
total -
total
@Nonnull public final SnapshotShardsStatsSummary.Builder total(Function<SnapshotShardsStatsSummaryItem.Builder, ObjectBuilder<SnapshotShardsStatsSummaryItem>> fn) The total statistics for the shard snapshot.API name:
total -
build
Builds aSnapshotShardsStatsSummary.- Specified by:
buildin interfaceObjectBuilder<SnapshotShardsStatsSummary>- Throws:
NullPointerException- if some of the required fields are null.
-