Class StartDatafeedRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.RequestBase.AbstractBuilder<StartDatafeedRequest.Builder>
co.elastic.clients.elasticsearch.ml.StartDatafeedRequest.Builder
- All Implemented Interfaces:
WithJson<StartDatafeedRequest.Builder>
,ObjectBuilder<StartDatafeedRequest>
- Enclosing class:
- StartDatafeedRequest
public static class StartDatafeedRequest.Builder extends RequestBase.AbstractBuilder<StartDatafeedRequest.Builder> implements ObjectBuilder<StartDatafeedRequest>
Builder for
StartDatafeedRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StartDatafeedRequest
build()
Builds aStartDatafeedRequest
.StartDatafeedRequest.Builder
datafeedId(java.lang.String value)
Required - A numerical character string that uniquely identifies the datafeed.StartDatafeedRequest.Builder
end(DateTime value)
Refer to the description for theend
query parameter.protected StartDatafeedRequest.Builder
self()
StartDatafeedRequest.Builder
start(DateTime value)
Refer to the description for thestart
query parameter.StartDatafeedRequest.Builder
timeout(Time value)
Refer to the description for thetimeout
query parameter.StartDatafeedRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Refer to the description for thetimeout
query parameter.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
datafeedId
Required - 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.API name:
datafeed_id
-
end
Refer to the description for theend
query parameter.API name:
end
-
start
Refer to the description for thestart
query parameter.API name:
start
-
timeout
Refer to the description for thetimeout
query parameter.API name:
timeout
-
timeout
public final StartDatafeedRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Refer to the description for thetimeout
query parameter.API name:
timeout
-
self
- Specified by:
self
in classRequestBase.AbstractBuilder<StartDatafeedRequest.Builder>
-
build
Builds aStartDatafeedRequest
.- Specified by:
build
in interfaceObjectBuilder<StartDatafeedRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-