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 Summary
Constructors -
Method Summary
Modifier 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.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datafeedConfig
The datafeed definition to preview.API name:
datafeed_config -
datafeedConfig
public final PreviewDatafeedRequest.Builder datafeedConfig(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 -
end
The end time when the datafeed preview should stopAPI name:
end -
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(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 -
start
The start time from where the datafeed preview should beginAPI name:
start -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<PreviewDatafeedRequest.Builder>
-
build
Builds aPreviewDatafeedRequest.- Specified by:
buildin interfaceObjectBuilder<PreviewDatafeedRequest>- Throws:
NullPointerException- if some of the required fields are null.
-