Class DownsamplingRound.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<DownsamplingRound.Builder>
co.elastic.clients.elasticsearch.indices.DownsamplingRound.Builder
- All Implemented Interfaces:
WithJson<DownsamplingRound.Builder>
,ObjectBuilder<DownsamplingRound>
- Enclosing class:
- DownsamplingRound
public static class DownsamplingRound.Builder
extends WithJsonObjectBuilderBase<DownsamplingRound.Builder>
implements ObjectBuilder<DownsamplingRound>
Builder for
DownsamplingRound
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRequired - The duration since rollover when this downsampling round should executeRequired - The duration since rollover when this downsampling round should executebuild()
Builds aDownsamplingRound
.config
(DownsampleConfig value) Required - The downsample configuration to execute.Required - The downsample configuration to execute.protected DownsamplingRound.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
-
after
Required - The duration since rollover when this downsampling round should executeAPI name:
after
-
after
Required - The duration since rollover when this downsampling round should executeAPI name:
after
-
config
Required - The downsample configuration to execute.API name:
config
-
config
public final DownsamplingRound.Builder config(Function<DownsampleConfig.Builder, ObjectBuilder<DownsampleConfig>> fn) Required - The downsample configuration to execute.API name:
config
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<DownsamplingRound.Builder>
-
build
Builds aDownsamplingRound
.- Specified by:
build
in interfaceObjectBuilder<DownsamplingRound>
- Throws:
NullPointerException
- if some of the required fields are null.
-