Class ContextMethod
java.lang.Object
co.elastic.clients.elasticsearch.core.get_script_context.ContextMethod
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class ContextMethod extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ContextMethod.Builder
Builder forContextMethod
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ContextMethod>
_DESERIALIZER
Json deserializer forContextMethod
-
Method Summary
Modifier and Type Method Description java.lang.String
name()
Required - API name:name
static ContextMethod
of(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn)
java.util.List<ContextMethodParam>
params()
Required - API name:params
java.lang.String
returnType()
Required - API name:return_type
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupContextMethodDeserializer(ObjectDeserializer<ContextMethod.Builder> op)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forContextMethod
-
-
Method Details
-
of
public static ContextMethod of(java.util.function.Function<ContextMethod.Builder,ObjectBuilder<ContextMethod>> fn) -
name
public final java.lang.String name()Required - API name:name
-
returnType
public final java.lang.String returnType()Required - API name:return_type
-
params
Required - API name:params
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupContextMethodDeserializer
-