Class DataStreamLifecycleUsage.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder<DataStreamLifecycleUsage.Builder>
co.elastic.clients.elasticsearch.xpack.usage.DataStreamLifecycleUsage.Builder
- All Implemented Interfaces:
WithJson<DataStreamLifecycleUsage.Builder>,ObjectBuilder<DataStreamLifecycleUsage>
- Enclosing class:
- DataStreamLifecycleUsage
public static class DataStreamLifecycleUsage.Builder
extends Base.AbstractBuilder<DataStreamLifecycleUsage.Builder>
implements ObjectBuilder<DataStreamLifecycleUsage>
Builder for
DataStreamLifecycleUsage.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aDataStreamLifecycleUsage.The number of data streams that have a lifecycle configured.Statistics about the explicitly configured data retention across data streams.dataRetention(Function<DataStreamLifecycleRetentionStats.Builder, ObjectBuilder<DataStreamLifecycleRetentionStats>> fn) Statistics about the explicitly configured data retention across data streams.defaultRolloverUsed(Boolean value) Whether the default rollover configuration is used by at least one data stream.Statistics about the effective retention (configured or derived from global retention) across data streams.effectiveRetention(Function<DataStreamLifecycleEffectiveRetentionStats.Builder, ObjectBuilder<DataStreamLifecycleEffectiveRetentionStats>> fn) Statistics about the effective retention (configured or derived from global retention) across data streams.Statistics about the configuredfrozen_after(searchable snapshot) tier threshold across data streams.frozenAfter(Function<DataStreamLifecycleRetentionStats.Builder, ObjectBuilder<DataStreamLifecycleRetentionStats>> fn) Statistics about the configuredfrozen_after(searchable snapshot) tier threshold across data streams.Statistics about the cluster's global default and maximum retention settings.globalRetention(Function<DataStreamLifecycleGlobalRetention.Builder, ObjectBuilder<DataStreamLifecycleGlobalRetention>> fn) Statistics about the cluster's global default and maximum retention settings.protected DataStreamLifecycleUsage.Builderself()Methods inherited from class co.elastic.clients.elasticsearch.xpack.usage.Base.AbstractBuilder
available, enabledMethods 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
-
count
The number of data streams that have a lifecycle configured.API name:
count -
defaultRolloverUsed
Whether the default rollover configuration is used by at least one data stream.API name:
default_rollover_used -
dataRetention
public final DataStreamLifecycleUsage.Builder dataRetention(@Nullable DataStreamLifecycleRetentionStats value) Statistics about the explicitly configured data retention across data streams.API name:
data_retention -
dataRetention
public final DataStreamLifecycleUsage.Builder dataRetention(Function<DataStreamLifecycleRetentionStats.Builder, ObjectBuilder<DataStreamLifecycleRetentionStats>> fn) Statistics about the explicitly configured data retention across data streams.API name:
data_retention -
effectiveRetention
public final DataStreamLifecycleUsage.Builder effectiveRetention(@Nullable DataStreamLifecycleEffectiveRetentionStats value) Statistics about the effective retention (configured or derived from global retention) across data streams.API name:
effective_retention -
effectiveRetention
public final DataStreamLifecycleUsage.Builder effectiveRetention(Function<DataStreamLifecycleEffectiveRetentionStats.Builder, ObjectBuilder<DataStreamLifecycleEffectiveRetentionStats>> fn) Statistics about the effective retention (configured or derived from global retention) across data streams.API name:
effective_retention -
frozenAfter
public final DataStreamLifecycleUsage.Builder frozenAfter(@Nullable DataStreamLifecycleRetentionStats value) Statistics about the configuredfrozen_after(searchable snapshot) tier threshold across data streams.API name:
frozen_after -
frozenAfter
public final DataStreamLifecycleUsage.Builder frozenAfter(Function<DataStreamLifecycleRetentionStats.Builder, ObjectBuilder<DataStreamLifecycleRetentionStats>> fn) Statistics about the configuredfrozen_after(searchable snapshot) tier threshold across data streams.API name:
frozen_after -
globalRetention
public final DataStreamLifecycleUsage.Builder globalRetention(@Nullable DataStreamLifecycleGlobalRetention value) Statistics about the cluster's global default and maximum retention settings.API name:
global_retention -
globalRetention
public final DataStreamLifecycleUsage.Builder globalRetention(Function<DataStreamLifecycleGlobalRetention.Builder, ObjectBuilder<DataStreamLifecycleGlobalRetention>> fn) Statistics about the cluster's global default and maximum retention settings.API name:
global_retention -
self
- Specified by:
selfin classBase.AbstractBuilder<DataStreamLifecycleUsage.Builder>
-
build
Builds aDataStreamLifecycleUsage.- Specified by:
buildin interfaceObjectBuilder<DataStreamLifecycleUsage>- Throws:
NullPointerException- if some of the required fields are null.
-