Class ContextMethod
java.lang.Object
co.elastic.clients.elasticsearch.core.get_script_context.ContextMethod
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public final class ContextMethod extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextMethod.BuilderBuilder forContextMethod. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<ContextMethod>_DESERIALIZERJson deserializer forContextMethod -
Constructor Summary
Constructors Constructor Description ContextMethod(ContextMethod.Builder builder)ContextMethod(java.util.function.Function<ContextMethod.Builder,ContextMethod.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Stringname()Required - API name:namejava.util.List<ContextMethodParam>params()Required - API name:paramsjava.lang.StringreturnType()Required - API name:return_typevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupContextMethodDeserializer(DelegatingDeserializer<ContextMethod.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forContextMethod
-
-
Constructor Details
-
ContextMethod
-
ContextMethod
-
-
Method Details
-
name
public java.lang.String name()Required - API name:name -
returnType
public java.lang.String returnType()Required - API name:return_type -
params
Required - API name:params -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupContextMethodDeserializer
protected static void setupContextMethodDeserializer(DelegatingDeserializer<ContextMethod.Builder> op)
-