Class DataStreamLifecycleDownsampling.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DataStreamLifecycleDownsampling.Builder>
co.elastic.clients.elasticsearch.indices.DataStreamLifecycleDownsampling.Builder
- All Implemented Interfaces:
WithJson<DataStreamLifecycleDownsampling.Builder>
,ObjectBuilder<DataStreamLifecycleDownsampling>
- Enclosing class:
- DataStreamLifecycleDownsampling
public static class DataStreamLifecycleDownsampling.Builder
extends WithJsonObjectBuilderBase<DataStreamLifecycleDownsampling.Builder>
implements ObjectBuilder<DataStreamLifecycleDownsampling>
Builder for
DataStreamLifecycleDownsampling
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aDataStreamLifecycleDownsampling
.rounds
(DownsamplingRound value, DownsamplingRound... values) Required - The list of downsampling rounds to execute as part of this downsampling configurationRequired - The list of downsampling rounds to execute as part of this downsampling configurationrounds
(List<DownsamplingRound> list) Required - The list of downsampling rounds to execute as part of this downsampling configurationprotected DataStreamLifecycleDownsampling.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
-
rounds
Required - The list of downsampling rounds to execute as part of this downsampling configurationAPI name:
rounds
Adds all elements of
list
torounds
. -
rounds
public final DataStreamLifecycleDownsampling.Builder rounds(DownsamplingRound value, DownsamplingRound... values) Required - The list of downsampling rounds to execute as part of this downsampling configurationAPI name:
rounds
Adds one or more values to
rounds
. -
rounds
public final DataStreamLifecycleDownsampling.Builder rounds(Function<DownsamplingRound.Builder, ObjectBuilder<DownsamplingRound>> fn) Required - The list of downsampling rounds to execute as part of this downsampling configurationAPI name:
rounds
Adds a value to
rounds
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DataStreamLifecycleDownsampling.Builder>
-
build
Builds aDataStreamLifecycleDownsampling
.- Specified by:
build
in interfaceObjectBuilder<DataStreamLifecycleDownsampling>
- Throws:
NullPointerException
- if some of the required fields are null.
-