Class ScriptLanguage
java.lang.Object
org.opensearch.client.opensearch._types.ScriptLanguage
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<ScriptLanguage.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ScriptLanguage
extends Object
implements TaggedUnion<ScriptLanguage.Kind,Object>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final ScriptLanguage.Kind_kind()Get the of the kind of variant held by this object.static ScriptLanguage.Builderbuilder()builtin()Get thebuiltinvariant value.custom()Get thecustomvariant value.booleaninthashCode()booleanIs this variant instance of kindbuiltin?booleanisCustom()Is this variant instance of kindcustom?static ScriptLanguagevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
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<ScriptLanguage.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<ScriptLanguage.Kind,Object>
-
of
-
_toJsonString
-
isBuiltin
public boolean isBuiltin()Is this variant instance of kindbuiltin? -
builtin
Get thebuiltinvariant value.- Throws:
IllegalStateException- if the current variant is not thebuiltinkind.
-
isCustom
public boolean isCustom()Is this variant instance of kindcustom? -
custom
Get thecustomvariant value.- Throws:
IllegalStateException- if the current variant is not thecustomkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-