Class SnapshotsRecord.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotsRecord.Builder>
co.elastic.clients.elasticsearch.cat.snapshots.SnapshotsRecord.Builder
- All Implemented Interfaces:
WithJson<SnapshotsRecord.Builder>,ObjectBuilder<SnapshotsRecord>
- Enclosing class:
- SnapshotsRecord
public static class SnapshotsRecord.Builder
extends WithJsonObjectBuilderBase<SnapshotsRecord.Builder>
implements ObjectBuilder<SnapshotsRecord>
Builder for
SnapshotsRecord.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aSnapshotsRecord.final SnapshotsRecord.Builderdurationfinal SnapshotsRecord.Builderdurationfinal SnapshotsRecord.Builderend time in seconds since 1970-01-01 00:00:00final SnapshotsRecord.Builderend time in HH:MM:SSfinal SnapshotsRecord.BuilderfailedShards(String value) number of failed shardsfinal SnapshotsRecord.Builderunique snapshotfinal SnapshotsRecord.Buildernumber of indicesfinal SnapshotsRecord.Builderreason for failuresfinal SnapshotsRecord.Builderrepository(String value) repository nameprotected SnapshotsRecord.Builderself()final SnapshotsRecord.BuilderstartEpoch(String value) start time in seconds since 1970-01-01 00:00:00final SnapshotsRecord.Builderstart time in HH:MM:SSfinal SnapshotsRecord.Buildersnapshot namefinal SnapshotsRecord.BuildersuccessfulShards(String value) number of successful shardsfinal SnapshotsRecord.BuildertotalShards(String value) number of total shardsMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
id
unique snapshotAPI name:
id -
repository
repository nameAPI name:
repository -
status
snapshot nameAPI name:
status -
startEpoch
start time in seconds since 1970-01-01 00:00:00API name:
start_epoch -
startTime
start time in HH:MM:SSAPI name:
start_time -
endEpoch
end time in seconds since 1970-01-01 00:00:00API name:
end_epoch -
endTime
end time in HH:MM:SSAPI name:
end_time -
duration
durationAPI name:
duration -
duration
durationAPI name:
duration -
indices
number of indicesAPI name:
indices -
successfulShards
number of successful shardsAPI name:
successful_shards -
failedShards
number of failed shardsAPI name:
failed_shards -
totalShards
number of total shardsAPI name:
total_shards -
reason
reason for failuresAPI name:
reason -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<SnapshotsRecord.Builder>
-
build
Builds aSnapshotsRecord.- Specified by:
buildin interfaceObjectBuilder<SnapshotsRecord>- Throws:
NullPointerException- if some of the required fields are null.
-