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.Builderdone(long value) Required - The number of shards that initialized, started, and finalized successfully.final ShardsStats.Builderfailed(long value) Required - The number of shards that failed to be included in the snapshot.final ShardsStats.Builderfinalizing(long value) Required - The number of shards that are finalizing but are not done.final ShardsStats.Builderinitializing(long value) Required - The number of shards that are still initializing.protected ShardsStats.Builderself()final ShardsStats.Builderstarted(long value) Required - The number of shards that have started but are not finalized.final ShardsStats.Buildertotal(long value) Required - The total number of shards included in the snapshot.Methods 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
-
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:
selfin classWithJsonObjectBuilderBase<ShardsStats.Builder>
-
build
Builds aShardsStats.- Specified by:
buildin interfaceObjectBuilder<ShardsStats>- Throws:
NullPointerException- if some of the required fields are null.
-