Class IndicesStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<IndicesStatsResponse.Builder>
co.elastic.clients.elasticsearch.indices.IndicesStatsResponse.Builder
- All Implemented Interfaces:
WithJson<IndicesStatsResponse.Builder>,ObjectBuilder<IndicesStatsResponse>
- Enclosing class:
- IndicesStatsResponse
public static class IndicesStatsResponse.Builder
extends WithJsonObjectBuilderBase<IndicesStatsResponse.Builder>
implements ObjectBuilder<IndicesStatsResponse>
Builder for
IndicesStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionall(IndicesStats value) Required - API name:_allRequired - API name:_allbuild()Builds aIndicesStatsResponse.indices(String key, IndicesStats value) API name:indicesAPI name:indicesindices(Map<String, IndicesStats> map) API name:indicesprotected IndicesStatsResponse.Builderself()shards(ShardStatistics value) Required - API name:_shardsRequired - API name:_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
-
indices
API name:indicesAdds all entries of
maptoindices. -
indices
API name:indicesAdds an entry to
indices. -
indices
public final IndicesStatsResponse.Builder indices(String key, Function<IndicesStats.Builder, ObjectBuilder<IndicesStats>> fn) API name:indicesAdds an entry to
indicesusing a builder lambda. -
shards
Required - API name:_shards -
shards
public final IndicesStatsResponse.Builder shards(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) Required - API name:_shards -
all
Required - API name:_all -
all
public final IndicesStatsResponse.Builder all(Function<IndicesStats.Builder, ObjectBuilder<IndicesStats>> fn) Required - API name:_all -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<IndicesStatsResponse.Builder>
-
build
Builds aIndicesStatsResponse.- Specified by:
buildin interfaceObjectBuilder<IndicesStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-