Class ContextMethod.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.core.get_script_context.ContextMethod.Builder
- All Implemented Interfaces:
CopyableBuilder<ContextMethod.Builder,,ContextMethod> MutableBuilder<ContextMethod.Builder,,ContextMethod> ObjectBuilder<ContextMethod>
- Enclosing class:
ContextMethod
public static class ContextMethod.Builder
extends ObjectBuilderBase
implements CopyableBuilder<ContextMethod.Builder,ContextMethod>
Builder for
ContextMethod.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aContextMethod.copy()Create a new builderCopyableBuilderthat is a copy of this one.final ContextMethod.BuilderRequired - API name:namefinal ContextMethod.BuilderRequired - API name:paramsfinal ContextMethod.Builderparams(List<ContextMethodParam> list) Required - API name:paramsfinal ContextMethod.Builderparams(ContextMethodParam value, ContextMethodParam... values) Required - API name:paramsfinal ContextMethod.BuilderreturnType(String value) Required - API name:return_typeMethods 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<ContextMethod.Builder,ContextMethod> - Returns:
- a new builder instance.
-
name
Required - API name:name -
params
Required - API name:paramsAdds all elements of
listtoparams. -
params
@Nonnull public final ContextMethod.Builder params(ContextMethodParam value, ContextMethodParam... values) Required - API name:paramsAdds one or more values to
params. -
params
@Nonnull public final ContextMethod.Builder params(Function<ContextMethodParam.Builder, ObjectBuilder<ContextMethodParam>> fn) Required - API name:paramsAdds a value to
paramsusing a builder lambda. -
returnType
Required - API name:return_type -
build
Builds aContextMethod.- Specified by:
buildin interfaceObjectBuilder<ContextMethod>- Throws:
NullPointerException- if some of the required fields are null.
-