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.Builderconfig(RollupJobConfiguration value) Required - The rollup job configuration.final RollupJob.BuilderRequired - The rollup job configuration.protected RollupJob.Builderself()final RollupJob.Builderstats(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.BuilderRequired - 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.Builderstatus(RollupJobStatus value) Required - The current status of the indexer for the rollup job.final RollupJob.BuilderRequired - The current status of the indexer for the rollup job.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
-
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:
selfin classWithJsonObjectBuilderBase<RollupJob.Builder>
-
build
Builds aRollupJob.- Specified by:
buildin interfaceObjectBuilder<RollupJob>- Throws:
NullPointerException- if some of the required fields are null.
-