Class ShardsStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ShardsStats.Builder>
co.elastic.clients.elasticsearch.indices.field_usage_stats.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
-
Method Summary
Modifier and TypeMethodDescriptionfinal ShardsStats.Builder
allFields
(FieldSummary value) Required - API name:all_fields
final ShardsStats.Builder
Required - API name:all_fields
build()
Builds aShardsStats
.final ShardsStats.Builder
fields
(String key, FieldSummary value) Required - API name:fields
final ShardsStats.Builder
Required - API name:fields
final ShardsStats.Builder
fields
(Map<String, FieldSummary> map) Required - API name:fields
protected ShardsStats.Builder
self()
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
-
allFields
Required - API name:all_fields
-
allFields
public final ShardsStats.Builder allFields(Function<FieldSummary.Builder, ObjectBuilder<FieldSummary>> fn) Required - API name:all_fields
-
fields
Required - API name:fields
Adds all entries of
map
tofields
. -
fields
Required - API name:fields
Adds an entry to
fields
. -
fields
public final ShardsStats.Builder fields(String key, Function<FieldSummary.Builder, ObjectBuilder<FieldSummary>> fn) Required - API name:fields
Adds an entry to
fields
using a builder lambda. -
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.
-