Class Script
java.lang.Object
co.elastic.clients.elasticsearch._types.Script
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Script.Kind,Object>
@JsonpDeserializable
public class Script
extends Object
implements TaggedUnion<Script.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final Script.Kind_kind()Get the of the kind of variant held by this object.inline()Get theinlinevariant value.booleanisInline()Is this variant instance of kindinline?booleanisStored()Is this variant instance of kindstored?static Scriptvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) stored()Get thestoredvariant value.toString()
-
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,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Script.Kind,Object>
-
of
-
isInline
public boolean isInline()Is this variant instance of kindinline? -
inline
Get theinlinevariant value.- Throws:
IllegalStateException- if the current variant is not of theinlinekind.
-
isStored
public boolean isStored()Is this variant instance of kindstored? -
stored
Get thestoredvariant value.- Throws:
IllegalStateException- if the current variant is not of thestoredkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-