Class RollupJob.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RollupJob.Builder>
co.elastic.clients.elasticsearch.rollup.get_jobs.RollupJob.Builder
- All Implemented Interfaces:
WithJson<RollupJob.Builder>
,ObjectBuilder<RollupJob>
- Enclosing class:
- RollupJob
public static class RollupJob.Builder
extends WithJsonObjectBuilderBase<RollupJob.Builder>
implements ObjectBuilder<RollupJob>
Builder for
RollupJob
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aRollupJob
.final RollupJob.Builder
config
(RollupJobConfiguration value) Required - The rollup job configuration.final RollupJob.Builder
Required - The rollup job configuration.protected RollupJob.Builder
self()
final RollupJob.Builder
stats
(RollupJobStats value) Required - Transient statistics about the rollup job, such as how many documents have been processed and how many rollup summary docs have been indexed.final RollupJob.Builder
Required - Transient statistics about the rollup job, such as how many documents have been processed and how many rollup summary docs have been indexed.final RollupJob.Builder
status
(RollupJobStatus value) Required - The current status of the indexer for the rollup job.final RollupJob.Builder
Required - The current status of the indexer for the rollup job.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
-
config
Required - The rollup job configuration.API name:
config
-
config
public final RollupJob.Builder config(Function<RollupJobConfiguration.Builder, ObjectBuilder<RollupJobConfiguration>> fn) Required - The rollup job configuration.API name:
config
-
stats
Required - Transient statistics about the rollup job, such as how many documents have been processed and how many rollup summary docs have been indexed. These stats are not persisted. If a node is restarted, these stats are reset.API name:
stats
-
stats
public final RollupJob.Builder stats(Function<RollupJobStats.Builder, ObjectBuilder<RollupJobStats>> fn) Required - Transient statistics about the rollup job, such as how many documents have been processed and how many rollup summary docs have been indexed. These stats are not persisted. If a node is restarted, these stats are reset.API name:
stats
-
status
Required - The current status of the indexer for the rollup job.API name:
status
-
status
public final RollupJob.Builder status(Function<RollupJobStatus.Builder, ObjectBuilder<RollupJobStatus>> fn) Required - The current status of the indexer for the rollup job.API name:
status
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<RollupJob.Builder>
-
build
Builds aRollupJob
.- Specified by:
build
in interfaceObjectBuilder<RollupJob>
- Throws:
NullPointerException
- if some of the required fields are null.
-