Class StopTransformRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.transform.StopTransformRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<StopTransformRequest>
- Enclosing class:
- StopTransformRequest
public static class StopTransformRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<StopTransformRequest>
Builder for
StopTransformRequest
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StopTransformRequest.Builder
allowNoMatch(java.lang.Boolean value)
Whether to ignore if a wildcard expression matches no transforms.StopTransformRequest
build()
Builds aStopTransformRequest
.StopTransformRequest.Builder
force(java.lang.Boolean value)
Whether to force stop a failed transform or not.StopTransformRequest.Builder
timeout(Time value)
Controls the time to wait until the transform has stopped.StopTransformRequest.Builder
timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Controls the time to wait until the transform has stopped.StopTransformRequest.Builder
transformId(java.lang.String value)
Required - The id of the transform to stopStopTransformRequest.Builder
waitForCheckpoint(java.lang.Boolean value)
Whether to wait for the transform to reach a checkpoint before stopping.StopTransformRequest.Builder
waitForCompletion(java.lang.Boolean value)
Whether to wait for the transform to fully stop before returning or not.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
-
allowNoMatch
Whether to ignore if a wildcard expression matches no transforms. (This includes_all
string or when no transforms have been specified)API name:
allow_no_match
-
force
Whether to force stop a failed transform or not. Default to falseAPI name:
force
-
timeout
Controls the time to wait until the transform has stopped. Default to 30 secondsAPI name:
timeout
-
timeout
public final StopTransformRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Controls the time to wait until the transform has stopped. Default to 30 secondsAPI name:
timeout
-
transformId
Required - The id of the transform to stopAPI name:
transform_id
-
waitForCheckpoint
Whether to wait for the transform to reach a checkpoint before stopping. Default to falseAPI name:
wait_for_checkpoint
-
waitForCompletion
Whether to wait for the transform to fully stop before returning or not. Default to falseAPI name:
wait_for_completion
-
build
Builds aStopTransformRequest
.- Specified by:
build
in interfaceObjectBuilder<StopTransformRequest>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-