Class GetScriptContextResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch._core.GetScriptContextResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<GetScriptContextResponse>
- Enclosing class:
- GetScriptContextResponse
public static class GetScriptContextResponse.Builder extends java.lang.Object implements ObjectBuilder<GetScriptContextResponse>
Builder for
GetScriptContextResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description GetScriptContextResponse.Builder
addContexts(Context value)
Add a value tocontexts(List)
, creating the list if needed.GetScriptContextResponse.Builder
addContexts(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)
Add a value tocontexts(List)
, creating the list if needed.GetScriptContextResponse
build()
Builds aGetScriptContextResponse
.GetScriptContextResponse.Builder
contexts(Context... value)
Required - API name:contexts
GetScriptContextResponse.Builder
contexts(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)
Setcontexts(List)
to a singleton list.GetScriptContextResponse.Builder
contexts(java.util.List<Context> value)
Required - API name:contexts
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
-
contexts
Required - API name:contexts
-
contexts
Required - API name:contexts
-
addContexts
Add a value tocontexts(List)
, creating the list if needed. -
contexts
public GetScriptContextResponse.Builder contexts(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)Setcontexts(List)
to a singleton list. -
addContexts
public GetScriptContextResponse.Builder addContexts(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)Add a value tocontexts(List)
, creating the list if needed. -
build
Builds aGetScriptContextResponse
.- Specified by:
build
in interfaceObjectBuilder<GetScriptContextResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-