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.BuilderaddContexts(Context value)Add a value tocontexts(List), creating the list if needed.GetScriptContextResponse.BuilderaddContexts(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)Add a value tocontexts(List), creating the list if needed.GetScriptContextResponsebuild()Builds aGetScriptContextResponse.GetScriptContextResponse.Buildercontexts(Context... value)API name:contextsGetScriptContextResponse.Buildercontexts(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)Setcontexts(List)to a singleton list.GetScriptContextResponse.Buildercontexts(java.util.List<Context> value)API name:contextsMethods 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
API name:contexts -
contexts
API name:contexts -
addContexts
Add a value tocontexts(List), creating the list if needed. 4 -
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. 5 -
build
Builds aGetScriptContextResponse.- Specified by:
buildin interfaceObjectBuilder<GetScriptContextResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-