Class GetScriptContextResponse.Builder
java.lang.Object
org.opensearch.client.opensearch._global.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.-
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 GetScriptContextResponse.BuilderaddContexts(java.util.function.Function<Context.Builder,ObjectBuilder<Context>> fn)Add a value tocontexts(List), creating the list if needed.GetScriptContextResponse.BuilderaddContexts(Context value)Add a value tocontexts(List), creating the list if needed.GetScriptContextResponsebuild()Builds aGetScriptContextResponse.GetScriptContextResponse.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:contextsGetScriptContextResponse.Buildercontexts(Context... value)API name:contexts
-
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. -
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:
buildin interfaceObjectBuilder<GetScriptContextResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-