Class DataStreamLifecycleGlobalRetentionStats.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamLifecycleGlobalRetentionStats.Builder>
co.elastic.clients.elasticsearch.xpack.usage.DataStreamLifecycleGlobalRetentionStats.Builder
- All Implemented Interfaces:
WithJson<DataStreamLifecycleGlobalRetentionStats.Builder>,ObjectBuilder<DataStreamLifecycleGlobalRetentionStats>
- Enclosing class:
- DataStreamLifecycleGlobalRetentionStats
public static class DataStreamLifecycleGlobalRetentionStats.Builder
extends WithJsonObjectBuilderBase<DataStreamLifecycleGlobalRetentionStats.Builder>
implements ObjectBuilder<DataStreamLifecycleGlobalRetentionStats>
Builder for
DataStreamLifecycleGlobalRetentionStats.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaffectedDataStreams(Long value) The number of data streams affected by this global retention.build()Builds aDataStreamLifecycleGlobalRetentionStats.defined(boolean value) Required - Whether this global retention is defined for the cluster.retentionMillis(Long value) The global retention period in milliseconds.self()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
-
defined
Required - Whether this global retention is defined for the cluster.API name:
defined -
affectedDataStreams
public final DataStreamLifecycleGlobalRetentionStats.Builder affectedDataStreams(@Nullable Long value) The number of data streams affected by this global retention.API name:
affected_data_streams -
retentionMillis
The global retention period in milliseconds.API name:
retention_millis -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<DataStreamLifecycleGlobalRetentionStats.Builder>
-
build
Builds aDataStreamLifecycleGlobalRetentionStats.- Specified by:
buildin interfaceObjectBuilder<DataStreamLifecycleGlobalRetentionStats>- Throws:
NullPointerException- if some of the required fields are null.
-