Class IndicesStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndicesStats.Builder>
co.elastic.clients.elasticsearch.indices.stats.IndicesStats.Builder
- All Implemented Interfaces:
WithJson<IndicesStats.Builder>,ObjectBuilder<IndicesStats>
- Enclosing class:
- IndicesStats
public static class IndicesStats.Builder
extends WithJsonObjectBuilderBase<IndicesStats.Builder>
implements ObjectBuilder<IndicesStats>
Builder for
IndicesStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aIndicesStats.final IndicesStats.Builderhealth(HealthStatus value) API name:healthfinal IndicesStats.Builderprimaries(IndexStats value) API name:primariesfinal IndicesStats.BuilderAPI name:primariesprotected IndicesStats.Builderself()final IndicesStats.Buildershards(String key, List<ShardStats> value) API name:shardsfinal IndicesStats.Buildershards(Map<String, List<ShardStats>> map) API name:shardsfinal IndicesStats.Builderstatus(IndexMetadataState value) API name:statusfinal IndicesStats.Buildertotal(IndexStats value) API name:totalfinal IndicesStats.BuilderAPI name:totalfinal IndicesStats.BuilderAPI name:uuidMethods 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
-
primaries
API name:primaries -
primaries
public final IndicesStats.Builder primaries(Function<IndexStats.Builder, ObjectBuilder<IndexStats>> fn) API name:primaries -
shards
API name:shardsAdds all entries of
maptoshards. -
shards
API name:shardsAdds an entry to
shards. -
total
API name:total -
total
API name:total -
uuid
API name:uuid -
health
API name:health -
status
API name:status -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndicesStats.Builder>
-
build
Builds aIndicesStats.- Specified by:
buildin interfaceObjectBuilder<IndicesStats>- Throws:
NullPointerException- if some of the required fields are null.
-