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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSnapshotStats
.final SnapshotStats.Builder
Required - API name:incremental
final SnapshotStats.Builder
Required - API name:incremental
protected SnapshotStats.Builder
self()
final SnapshotStats.Builder
startTimeInMillis
(long value) Required - API name:start_time_in_millis
final SnapshotStats.Builder
API name:time
final SnapshotStats.Builder
API name:time
final SnapshotStats.Builder
timeInMillis
(long value) Required - API name:time_in_millis
final SnapshotStats.Builder
total
(FileCountSnapshotStats value) Required - API name:total
final SnapshotStats.Builder
Required - API name:total
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 - API name:incremental
-
incremental
public final SnapshotStats.Builder incremental(Function<FileCountSnapshotStats.Builder, ObjectBuilder<FileCountSnapshotStats>> fn) Required - API name:incremental
-
startTimeInMillis
Required - API name:start_time_in_millis
-
time
API name:time
-
time
API name:time
-
timeInMillis
Required - API name:time_in_millis
-
total
Required - API name:total
-
total
public final SnapshotStats.Builder total(Function<FileCountSnapshotStats.Builder, ObjectBuilder<FileCountSnapshotStats>> fn) Required - 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.
-