Class ContextMethodParam.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<ContextMethodParam.Builder>
co.elastic.clients.elasticsearch.core.get_script_context.ContextMethodParam.Builder
- All Implemented Interfaces:
WithJson<ContextMethodParam.Builder>
,ObjectBuilder<ContextMethodParam>
- Enclosing class:
- ContextMethodParam
public static class ContextMethodParam.Builder extends WithJsonObjectBuilderBase<ContextMethodParam.Builder> implements ObjectBuilder<ContextMethodParam>
Builder for
ContextMethodParam
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ContextMethodParam
build()
Builds aContextMethodParam
.ContextMethodParam.Builder
name(java.lang.String value)
Required - API name:name
protected ContextMethodParam.Builder
self()
ContextMethodParam.Builder
type(java.lang.String value)
Required - API name:type
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
name
Required - API name:name
-
type
Required - API name:type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<ContextMethodParam.Builder>
-
build
Builds aContextMethodParam
.- Specified by:
build
in interfaceObjectBuilder<ContextMethodParam>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-