Class Script
java.lang.Object
org.opensearch.client.opensearch._types.Script
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,IntervalsFilterVariant,ProcessorVariant,TaggedUnion<Script.Kind,Object>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class Script
extends Object
implements TaggedUnion<Script.Kind,Object>, IntervalsFilterVariant, ProcessorVariant, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()IntervalsFiltervariant kind.final Script.Kind_kind()Get the of the kind of variant held by this object.Processorvariant kind.static Script.Builderbuilder()booleaninthashCode()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.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.opensearch._types.query_dsl.IntervalsFilterVariant
toIntervalsFilterMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonStringMethods inherited from interface org.opensearch.client.opensearch.ingest.ProcessorVariant
toProcessor
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_intervalsFilterKind
IntervalsFiltervariant kind.- Specified by:
_intervalsFilterKindin interfaceIntervalsFilterVariant
-
_processorKind
Processorvariant kind.- Specified by:
_processorKindin interfaceProcessorVariant
-
_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 theinlinekind.
-
isStored
public boolean isStored()Is this variant instance of kindstored? -
stored
Get thestoredvariant value.- Throws:
IllegalStateException- if the current variant is not thestoredkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
hashCode
public int hashCode() -
equals
-