Class SnapshotStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotStats.Builder>
co.elastic.clients.elasticsearch.snapshot.SnapshotStats.Builder
- All Implemented Interfaces:
WithJson<SnapshotStats.Builder>
,ObjectBuilder<SnapshotStats>
- Enclosing class:
- SnapshotStats
public static class SnapshotStats.Builder
extends WithJsonObjectBuilderBase<SnapshotStats.Builder>
implements ObjectBuilder<SnapshotStats>
Builder for
SnapshotStats
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSnapshotStats
.final SnapshotStats.Builder
Required - The number and size of files that still need to be copied as part of the incremental snapshot.final SnapshotStats.Builder
Required - The number and size of files that still need to be copied as part of the incremental snapshot.protected SnapshotStats.Builder
self()
final SnapshotStats.Builder
startTimeInMillis
(long value) Required - The time, in milliseconds, when the snapshot creation process started.final SnapshotStats.Builder
API name:time
final SnapshotStats.Builder
API name:time
final SnapshotStats.Builder
timeInMillis
(long value) Required - The total time, in milliseconds, that it took for the snapshot process to complete.final SnapshotStats.Builder
total
(FileCountSnapshotStats value) Required - The total number and size of files that are referenced by the snapshot.final SnapshotStats.Builder
Required - The total number and size of files that are referenced by the snapshot.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
incremental
Required - The number and size of files that still need to be copied as part of the incremental snapshot. For completed snapshots, this property indicates the number and size of files that were not already in the repository and were copied as part of the incremental snapshot.API name:
incremental
-
incremental
public final SnapshotStats.Builder incremental(Function<FileCountSnapshotStats.Builder, ObjectBuilder<FileCountSnapshotStats>> fn) Required - The number and size of files that still need to be copied as part of the incremental snapshot. For completed snapshots, this property indicates the number and size of files that were not already in the repository and were copied as part of the incremental snapshot.API name:
incremental
-
startTimeInMillis
Required - The time, in milliseconds, when the snapshot creation process started.API name:
start_time_in_millis
-
time
API name:time
-
time
API name:time
-
timeInMillis
Required - The total time, in milliseconds, that it took for the snapshot process to complete.API name:
time_in_millis
-
total
Required - The total number and size of files that are referenced by the snapshot.API name:
total
-
total
public final SnapshotStats.Builder total(Function<FileCountSnapshotStats.Builder, ObjectBuilder<FileCountSnapshotStats>> fn) Required - The total number and size of files that are referenced by the snapshot.API name:
total
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SnapshotStats.Builder>
-
build
Builds aSnapshotStats
.- Specified by:
build
in interfaceObjectBuilder<SnapshotStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-