Class GetDataLifecycleStatsResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<GetDataLifecycleStatsResponse.Builder>
co.elastic.clients.elasticsearch.indices.GetDataLifecycleStatsResponse.Builder
- All Implemented Interfaces:
WithJson<GetDataLifecycleStatsResponse.Builder>,ObjectBuilder<GetDataLifecycleStatsResponse>
- Enclosing class:
- GetDataLifecycleStatsResponse
public static class GetDataLifecycleStatsResponse.Builder
extends WithJsonObjectBuilderBase<GetDataLifecycleStatsResponse.Builder>
implements ObjectBuilder<GetDataLifecycleStatsResponse>
Builder for
GetDataLifecycleStatsResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aGetDataLifecycleStatsResponse.dataStreamCount(int value) Required - The count of data streams currently being managed by the data stream lifecycle.dataStreams(DataStreamStats value, DataStreamStats... values) Required - Information about the data streams that are managed by the data stream lifecycle.Required - Information about the data streams that are managed by the data stream lifecycle.dataStreams(List<DataStreamStats> list) Required - Information about the data streams that are managed by the data stream lifecycle.lastRunDurationInMillis(Long value) The duration of the last data stream lifecycle execution.protected GetDataLifecycleStatsResponse.Builderself()timeBetweenStartsInMillis(Long value) The time that passed between the start of the last two data stream lifecycle executions.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
-
dataStreamCount
Required - The count of data streams currently being managed by the data stream lifecycle.API name:
data_stream_count -
dataStreams
Required - Information about the data streams that are managed by the data stream lifecycle.API name:
data_streamsAdds all elements of
listtodataStreams. -
dataStreams
public final GetDataLifecycleStatsResponse.Builder dataStreams(DataStreamStats value, DataStreamStats... values) Required - Information about the data streams that are managed by the data stream lifecycle.API name:
data_streamsAdds one or more values to
dataStreams. -
dataStreams
public final GetDataLifecycleStatsResponse.Builder dataStreams(Function<DataStreamStats.Builder, ObjectBuilder<DataStreamStats>> fn) Required - Information about the data streams that are managed by the data stream lifecycle.API name:
data_streamsAdds a value to
dataStreamsusing a builder lambda. -
lastRunDurationInMillis
The duration of the last data stream lifecycle execution.API name:
last_run_duration_in_millis -
timeBetweenStartsInMillis
The time that passed between the start of the last two data stream lifecycle executions. This value should amount approximately todata_streams.lifecycle.poll_interval.API name:
time_between_starts_in_millis -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<GetDataLifecycleStatsResponse.Builder>
-
build
Builds aGetDataLifecycleStatsResponse.- Specified by:
buildin interfaceObjectBuilder<GetDataLifecycleStatsResponse>- Throws:
NullPointerException- if some of the required fields are null.
-