Class Action.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.ml.Action.Builder
- All Implemented Interfaces:
CopyableBuilder<Action.Builder,,Action> MutableBuilder<Action.Builder,,Action> ObjectBuilder<Action>
- Enclosing class:
Action
public static class Action.Builder
extends ObjectBuilderBase
implements CopyableBuilder<Action.Builder,Action>
Builder for
Action.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Action.BuilderactionType(String value) API name:action_typebuild()Builds aAction.copy()Create a new builderCopyableBuilderthat is a copy of this one.final Action.BuilderAPI name:headersfinal Action.BuilderAPI name:headersfinal Action.BuilderAPI name:methodfinal Action.BuilderpostProcessFunction(String value) API name:post_process_functionfinal Action.BuilderpreProcessFunction(String value) API name:pre_process_functionfinal Action.BuilderrequestBody(String value) API name:request_bodyfinal Action.BuilderAPI name:urlMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<Action.Builder,Action> - Returns:
- a new builder instance.
-
actionType
API name:action_type -
headers
API name:headers -
headers
API name:headers -
method
API name:method -
postProcessFunction
API name:post_process_function -
preProcessFunction
API name:pre_process_function -
requestBody
API name:request_body -
url
API name:url -
build
Builds aAction.- Specified by:
buildin interfaceObjectBuilder<Action>- Throws:
NullPointerException- if some of the required fields are null.
-