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