Class ScriptSource
java.lang.Object
co.elastic.clients.elasticsearch._types.ScriptSource
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<ScriptSource.Kind,Object>
@JsonpDeserializable
public class ScriptSource
extends Object
implements TaggedUnion<ScriptSource.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final ScriptSource.Kind_kind()Get the of the kind of variant held by this object.booleanIs this variant instance of kindscript_string?booleanIs this variant instance of kindscript_template?static ScriptSourceGet thescript_stringvariant value.Get thescript_templatevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) 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<ScriptSource.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<ScriptSource.Kind,Object>
-
of
-
isScriptTemplate
public boolean isScriptTemplate()Is this variant instance of kindscript_template? -
scriptTemplate
Get thescript_templatevariant value.- Throws:
IllegalStateException- if the current variant is not of thescript_templatekind.
-
isScriptString
public boolean isScriptString()Is this variant instance of kindscript_string? -
scriptString
Get thescript_stringvariant value.- Throws:
IllegalStateException- if the current variant is not of thescript_stringkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-