Class SetUpgradeModeRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.ml.SetUpgradeModeRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<SetUpgradeModeRequest>
- Enclosing class:
- SetUpgradeModeRequest
public static class SetUpgradeModeRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<SetUpgradeModeRequest>
Builder for
SetUpgradeModeRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description SetUpgradeModeRequestbuild()Builds aSetUpgradeModeRequest.SetUpgradeModeRequest.Builderenabled(java.lang.Boolean value)Whentrue, it enablesupgrade_modewhich temporarily halts all job and datafeed tasks and prohibits new job and datafeed tasks from starting.SetUpgradeModeRequest.Buildertimeout(Time value)The time to wait for the request to be completed.SetUpgradeModeRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The time to wait for the request to be completed.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
-
enabled
Whentrue, it enablesupgrade_modewhich temporarily halts all job and datafeed tasks and prohibits new job and datafeed tasks from starting.API name:
enabled -
timeout
The time to wait for the request to be completed.API name:
timeout -
timeout
public final SetUpgradeModeRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)The time to wait for the request to be completed.API name:
timeout -
build
Builds aSetUpgradeModeRequest.- Specified by:
buildin interfaceObjectBuilder<SetUpgradeModeRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-