Class ShardsStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardsStats.Builder>
co.elastic.clients.elasticsearch.snapshot.ShardsStats.Builder
- All Implemented Interfaces:
WithJson<ShardsStats.Builder>
,ObjectBuilder<ShardsStats>
- Enclosing class:
- ShardsStats
public static class ShardsStats.Builder
extends WithJsonObjectBuilderBase<ShardsStats.Builder>
implements ObjectBuilder<ShardsStats>
Builder for
ShardsStats
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aShardsStats
.final ShardsStats.Builder
done
(long value) Required - The number of shards that initialized, started, and finalized successfully.final ShardsStats.Builder
failed
(long value) Required - The number of shards that failed to be included in the snapshot.final ShardsStats.Builder
finalizing
(long value) Required - The number of shards that are finalizing but are not done.final ShardsStats.Builder
initializing
(long value) Required - The number of shards that are still initializing.protected ShardsStats.Builder
self()
final ShardsStats.Builder
started
(long value) Required - The number of shards that have started but are not finalized.final ShardsStats.Builder
total
(long value) Required - The total number of shards included in 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
-
done
Required - The number of shards that initialized, started, and finalized successfully.API name:
done
-
failed
Required - The number of shards that failed to be included in the snapshot.API name:
failed
-
finalizing
Required - The number of shards that are finalizing but are not done.API name:
finalizing
-
initializing
Required - The number of shards that are still initializing.API name:
initializing
-
started
Required - The number of shards that have started but are not finalized.API name:
started
-
total
Required - The total number of shards included in the snapshot.API name:
total
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ShardsStats.Builder>
-
build
Builds aShardsStats
.- Specified by:
build
in interfaceObjectBuilder<ShardsStats>
- Throws:
NullPointerException
- if some of the required fields are null.
-