Class ContextMethod.Builder
java.lang.Object
org.opensearch.client.opensearch._global.get_script_context.ContextMethod.Builder
- All Implemented Interfaces:
ObjectBuilder<ContextMethod>
- Enclosing class:
- ContextMethod
public static class ContextMethod.Builder extends java.lang.Object implements ObjectBuilder<ContextMethod>
Builder for
ContextMethod.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ContextMethod.BuilderaddParams(java.util.function.Function<ContextMethodParam.Builder,ObjectBuilder<ContextMethodParam>> fn)Add a value toparams(List), creating the list if needed.ContextMethod.BuilderaddParams(ContextMethodParam value)Add a value toparams(List), creating the list if needed.ContextMethodbuild()Builds aContextMethod.ContextMethod.Buildername(java.lang.String value)API name:nameContextMethod.Builderparams(java.util.function.Function<ContextMethodParam.Builder,ObjectBuilder<ContextMethodParam>> fn)Setparams(List)to a singleton list.ContextMethod.Builderparams(java.util.List<ContextMethodParam> value)API name:paramsContextMethod.Builderparams(ContextMethodParam... value)API name:paramsContextMethod.BuilderreturnType(java.lang.String value)API name:return_type
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
API name:name -
returnType
API name:return_type -
params
API name:params -
params
API name:params -
addParams
Add a value toparams(List), creating the list if needed. -
params
public ContextMethod.Builder params(java.util.function.Function<ContextMethodParam.Builder,ObjectBuilder<ContextMethodParam>> fn)Setparams(List)to a singleton list. -
addParams
public ContextMethod.Builder addParams(java.util.function.Function<ContextMethodParam.Builder,ObjectBuilder<ContextMethodParam>> fn)Add a value toparams(List), creating the list if needed. -
build
Builds aContextMethod.- Specified by:
buildin interfaceObjectBuilder<ContextMethod>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-