Class Context.Builder
java.lang.Object
co.elastic.clients.elasticsearch.core.get_script_context.Context.Builder
- All Implemented Interfaces:
ObjectBuilder<Context>
- Enclosing class:
- Context
public static class Context.Builder extends java.lang.Object implements ObjectBuilder<Context>
Builder for
Context.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Context.BuilderaddMethods(ContextMethod value)Add a value tomethods(List), creating the list if needed.Context.BuilderaddMethods(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn)Add a value tomethods(List), creating the list if needed.Contextbuild()Builds aContext.Context.Buildermethods(ContextMethod... value)Required - API name:methodsContext.Buildermethods(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn)Setmethods(List)to a singleton list.Context.Buildermethods(java.util.List<ContextMethod> value)Required - API name:methodsContext.Buildername(java.lang.String value)Required - API name:nameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
methods
Required - API name:methods -
methods
Required - API name:methods -
addMethods
Add a value tomethods(List), creating the list if needed. -
methods
public Context.Builder methods(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn)Setmethods(List)to a singleton list. -
addMethods
public Context.Builder addMethods(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn)Add a value tomethods(List), creating the list if needed. -
name
Required - API name:name -
build
Builds aContext.- Specified by:
buildin interfaceObjectBuilder<Context>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-