Class Transform
java.lang.Object
co.elastic.clients.elasticsearch._types.Transform
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<Transform.Kind,java.lang.Object>
@JsonpDeserializable public class Transform extends java.lang.Object implements TaggedUnion<Transform.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransform.Builderstatic classTransform.KindTransformvariant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Transform>_DESERIALIZER -
Constructor Summary
Constructors Constructor Description Transform(TransformVariant value) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()Transform.Kind_kind()Get the of the kind of variant held by this object.java.util.List<Transform>chain()Get thechainvariant value.booleanisChain()Is this variant instance of kindchain?booleanisScript()Is this variant instance of kindscript?booleanisSearch()Is this variant instance of kindsearch?static Transformof(java.util.function.Function<Transform.Builder,ObjectBuilder<Transform>> fn)ScriptTransformscript()Get thescriptvariant value.SearchTransformsearch()Get thesearchvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTransformDeserializer(ObjectDeserializer<Transform.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Transform
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Transform.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<Transform.Kind,java.lang.Object>
-
of
public static Transform of(java.util.function.Function<Transform.Builder,ObjectBuilder<Transform>> fn) -
isChain
public boolean isChain()Is this variant instance of kindchain? -
chain
Get thechainvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thechainkind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
isSearch
public boolean isSearch()Is this variant instance of kindsearch? -
search
Get thesearchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesearchkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupTransformDeserializer
-