Class PreviewDatafeedRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.PreviewDatafeedRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<PreviewDatafeedRequest>
- Enclosing class:
- PreviewDatafeedRequest
public static class PreviewDatafeedRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<PreviewDatafeedRequest>
Builder for
PreviewDatafeedRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PreviewDatafeedRequestbuild()Builds aPreviewDatafeedRequest.PreviewDatafeedRequest.BuilderdatafeedConfig(DatafeedConfig value)The datafeed definition to preview.PreviewDatafeedRequest.BuilderdatafeedConfig(java.util.function.Function<DatafeedConfig.Builder,ObjectBuilder<DatafeedConfig>> fn)The datafeed definition to preview.PreviewDatafeedRequest.BuilderdatafeedId(java.lang.String value)A numerical character string that uniquely identifies the datafeed.PreviewDatafeedRequest.BuilderjobConfig(JobConfig value)The configuration details for the anomaly detection job that is associated with the datafeed.PreviewDatafeedRequest.BuilderjobConfig(java.util.function.Function<JobConfig.Builder,ObjectBuilder<JobConfig>> fn)The configuration details for the anomaly detection job that is associated with the datafeed.Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datafeedConfig
The datafeed definition to preview.API name:
datafeed_config -
datafeedConfig
public final PreviewDatafeedRequest.Builder datafeedConfig(java.util.function.Function<DatafeedConfig.Builder,ObjectBuilder<DatafeedConfig>> fn)The datafeed definition to preview.API name:
datafeed_config -
datafeedId
A 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 -
jobConfig
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 -
jobConfig
public final PreviewDatafeedRequest.Builder jobConfig(java.util.function.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 -
build
Builds aPreviewDatafeedRequest.- Specified by:
buildin interfaceObjectBuilder<PreviewDatafeedRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-