Class DataStreamsStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamsStatsResponse.Builder>
co.elastic.clients.elasticsearch.indices.DataStreamsStatsResponse.Builder
- All Implemented Interfaces:
WithJson<DataStreamsStatsResponse.Builder>
,ObjectBuilder<DataStreamsStatsResponse>
- Enclosing class:
- DataStreamsStatsResponse
public static class DataStreamsStatsResponse.Builder
extends WithJsonObjectBuilderBase<DataStreamsStatsResponse.Builder>
implements ObjectBuilder<DataStreamsStatsResponse>
Builder for
DataStreamsStatsResponse
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbackingIndices
(int value) Required - Total number of backing indices for the selected data streams.build()
Builds aDataStreamsStatsResponse
.dataStreamCount
(int value) Required - Total number of selected data streams.dataStreams
(DataStreamsStatsItem value, DataStreamsStatsItem... values) Required - Contains statistics for the selected data streams.Required - Contains statistics for the selected data streams.dataStreams
(List<DataStreamsStatsItem> list) Required - Contains statistics for the selected data streams.protected DataStreamsStatsResponse.Builder
self()
shards
(ShardStatistics value) Required - Contains information about shards that attempted to execute the request.Required - Contains information about shards that attempted to execute the request.totalStoreSizeBytes
(int value) Required - Total size, in bytes, of all shards for the selected data streams.totalStoreSizes
(String value) Total size of all shards for the selected data streams.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
-
shards
Required - Contains information about shards that attempted to execute the request.API name:
_shards
-
shards
public final DataStreamsStatsResponse.Builder shards(Function<ShardStatistics.Builder, ObjectBuilder<ShardStatistics>> fn) Required - Contains information about shards that attempted to execute the request.API name:
_shards
-
backingIndices
Required - Total number of backing indices for the selected data streams.API name:
backing_indices
-
dataStreamCount
Required - Total number of selected data streams.API name:
data_stream_count
-
dataStreams
Required - Contains statistics for the selected data streams.API name:
data_streams
Adds all elements of
list
todataStreams
. -
dataStreams
public final DataStreamsStatsResponse.Builder dataStreams(DataStreamsStatsItem value, DataStreamsStatsItem... values) Required - Contains statistics for the selected data streams.API name:
data_streams
Adds one or more values to
dataStreams
. -
dataStreams
public final DataStreamsStatsResponse.Builder dataStreams(Function<DataStreamsStatsItem.Builder, ObjectBuilder<DataStreamsStatsItem>> fn) Required - Contains statistics for the selected data streams.API name:
data_streams
Adds a value to
dataStreams
using a builder lambda. -
totalStoreSizes
Total size of all shards for the selected data streams. This property is included only if thehuman
query parameter istrue
API name:
total_store_sizes
-
totalStoreSizeBytes
Required - Total size, in bytes, of all shards for the selected data streams.API name:
total_store_size_bytes
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DataStreamsStatsResponse.Builder>
-
build
Builds aDataStreamsStatsResponse
.- Specified by:
build
in interfaceObjectBuilder<DataStreamsStatsResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-