Class SnapshotShardsStatus.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotShardsStatus.Builder>
co.elastic.clients.elasticsearch.snapshot.SnapshotShardsStatus.Builder
- All Implemented Interfaces:
WithJson<SnapshotShardsStatus.Builder>
,ObjectBuilder<SnapshotShardsStatus>
- Enclosing class:
- SnapshotShardsStatus
public static class SnapshotShardsStatus.Builder
extends WithJsonObjectBuilderBase<SnapshotShardsStatus.Builder>
implements ObjectBuilder<SnapshotShardsStatus>
Builder for
SnapshotShardsStatus
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aSnapshotShardsStatus
.protected SnapshotShardsStatus.Builder
self()
stage
(ShardsStatsStage value) Required - API name:stage
stats
(ShardsStatsSummary value) Required - API name:stats
Required - API name:stats
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
-
stage
Required - API name:stage
-
stats
Required - API name:stats
-
stats
public final SnapshotShardsStatus.Builder stats(Function<ShardsStatsSummary.Builder, ObjectBuilder<ShardsStatsSummary>> fn) Required - API name:stats
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SnapshotShardsStatus.Builder>
-
build
Builds aSnapshotShardsStatus
.- Specified by:
build
in interfaceObjectBuilder<SnapshotShardsStatus>
- Throws:
NullPointerException
- if some of the required fields are null.
-