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.Builder
addMethods(ContextMethod value)
Add a value tomethods(List)
, creating the list if needed.Context.Builder
addMethods(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn)
Add a value tomethods(List)
, creating the list if needed.Context
build()
Builds aContext
.Context.Builder
methods(ContextMethod... value)
Required - API name:methods
Context.Builder
methods(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn)
Setmethods(List)
to a singleton list.Context.Builder
methods(java.util.List<ContextMethod> value)
Required - API name:methods
Context.Builder
name(java.lang.String value)
Required - API name:name
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
-
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:
build
in interfaceObjectBuilder<Context>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-