Class PreviewDatafeedRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<PreviewDatafeedRequest.Builder>
co.elastic.clients.elasticsearch.ml.PreviewDatafeedRequest.Builder
- All Implemented Interfaces:
- WithJson<PreviewDatafeedRequest.Builder>,- ObjectBuilder<PreviewDatafeedRequest>
- Enclosing class:
- PreviewDatafeedRequest
public static class PreviewDatafeedRequest.Builder
extends RequestBase.AbstractBuilder<PreviewDatafeedRequest.Builder>
implements ObjectBuilder<PreviewDatafeedRequest>
Builder for 
PreviewDatafeedRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aPreviewDatafeedRequest.datafeedConfig(DatafeedConfig value) The datafeed definition to preview.The datafeed definition to preview.datafeedId(String value) A numerical character string that uniquely identifies the datafeed.The end time when the datafeed preview should stopThe configuration details for the anomaly detection job that is associated with the datafeed.The configuration details for the anomaly detection job that is associated with the datafeed.protected PreviewDatafeedRequest.Builderself()The start time from where the datafeed preview should beginMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
datafeedConfigThe datafeed definition to preview.API name: datafeed_config
- 
datafeedConfigpublic final PreviewDatafeedRequest.Builder datafeedConfig(Function<DatafeedConfig.Builder, ObjectBuilder<DatafeedConfig>> fn) The datafeed definition to preview.API name: datafeed_config
- 
datafeedIdA numerical character string that uniquely identifies the datafeed. This identifier can contain lowercase alphanumeric characters (a-z and 0-9), hyphens, and underscores. It must start and end with alphanumeric characters. NOTE: If you use this path parameter, you cannot provide datafeed or anomaly detection job configuration details in the request body.API name: datafeed_id
- 
endThe end time when the datafeed preview should stopAPI name: end
- 
jobConfigThe configuration details for the anomaly detection job that is associated with the datafeed. If thedatafeed_configobject does not include ajob_idthat references an existing anomaly detection job, you must supply thisjob_configobject. If you include both ajob_idand ajob_config, the latter information is used. You cannot specify ajob_configobject unless you also supply adatafeed_configobject.API name: job_config
- 
jobConfigpublic final PreviewDatafeedRequest.Builder jobConfig(Function<JobConfig.Builder, ObjectBuilder<JobConfig>> fn) The configuration details for the anomaly detection job that is associated with the datafeed. If thedatafeed_configobject does not include ajob_idthat references an existing anomaly detection job, you must supply thisjob_configobject. If you include both ajob_idand ajob_config, the latter information is used. You cannot specify ajob_configobject unless you also supply adatafeed_configobject.API name: job_config
- 
startThe start time from where the datafeed preview should beginAPI name: start
- 
self- Specified by:
- selfin class- RequestBase.AbstractBuilder<PreviewDatafeedRequest.Builder>
 
- 
buildBuilds aPreviewDatafeedRequest.- Specified by:
- buildin interface- ObjectBuilder<PreviewDatafeedRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-