Class Transform
java.lang.Object
co.elastic.clients.elasticsearch._types.Transform
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<java.lang.Object>
@JsonpDeserializable public class Transform extends java.lang.Object implements TaggedUnion<java.lang.Object>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransform.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Transform>_DESERIALIZERstatic java.lang.StringCHAINstatic java.lang.StringSCRIPTstatic java.lang.StringSEARCH -
Constructor Summary
Constructors Constructor Description Transform(TransformVariant value)Transform(ObjectBuilder<T> builder)Transform(java.util.function.Function<Transform.Builder,Transform.Builder> fn) -
Method Summary
Modifier and Type Method Description java.lang.Object_get()java.lang.String_type()Get the of the type of the variant held by this union object.ChainTransformchain()Get thechainvariant value.ScriptTransformscript()Get thescriptvariant value.SearchTransformsearch()Get thesearchvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupTransformDeserializer(DelegatingDeserializer<Transform.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
CHAIN
public static final java.lang.String CHAIN- See Also:
- Constant Field Values
-
SCRIPT
public static final java.lang.String SCRIPT- See Also:
- Constant Field Values
-
SEARCH
public static final java.lang.String SEARCH- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
Transform
-
Transform
-
Transform
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<java.lang.Object>- Returns:
- the variant type
-
_get
public java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<java.lang.Object>
-
chain
Get thechainvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thechainkind.
-
script
Get thescriptvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thescriptkind.
-
search
Get thesearchvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thesearchkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupTransformDeserializer
-