Class Script
java.lang.Object
co.elastic.clients.elasticsearch._types.Script
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Script.Kind,java.lang.Object>
@JsonpDeserializable public class Script extends java.lang.Object implements TaggedUnion<Script.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classScript.Builderstatic classScript.Kind -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Script>_DESERIALIZER -
Method Summary
Modifier and Type Method Description java.lang.Object_get()Script.Kind_kind()Get the of the kind of variant held by this object.InlineScriptinline()Get theinlinevariant value.booleanisInline()Is this variant instance of kindinline?booleanisStored()Is this variant instance of kindstored?static Scriptof(java.util.function.Function<Script.Builder,ObjectBuilder<Script>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)StoredScriptIdstored()Get thestoredvariant value.java.lang.StringtoString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Script.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<Script.Kind,java.lang.Object>
-
of
-
isInline
public boolean isInline()Is this variant instance of kindinline? -
inline
Get theinlinevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of theinlinekind.
-
isStored
public boolean isStored()Is this variant instance of kindstored? -
stored
Get thestoredvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thestoredkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-