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 class
Transform.Builder
static class
Transform.Kind
Transform
variant 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 thechain
variant value.boolean
isChain()
Is this variant instance of kindchain
?boolean
isScript()
Is this variant instance of kindscript
?boolean
isSearch()
Is this variant instance of kindsearch
?static Transform
of(java.util.function.Function<Transform.Builder,ObjectBuilder<Transform>> fn)
ScriptTransform
script()
Get thescript
variant value.SearchTransform
search()
Get thesearch
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupTransformDeserializer(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:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Transform.Kind,java.lang.Object>
- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_get
in 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 thechain
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thechain
kind.
-
isScript
public boolean isScript()Is this variant instance of kindscript
? -
script
Get thescript
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thescript
kind.
-
isSearch
public boolean isSearch()Is this variant instance of kindsearch
? -
search
Get thesearch
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thesearch
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupTransformDeserializer
-